    .thumb
    .text
    .align 2
    .global FreeIfFlagSet
    .thumb_func
FreeIfFlagSet:
    push {lr}
    add r2, r0, #0
    mov r0, #1
    and r0, r0, r1
    cmp r0, #0
    beq skip_free
    add r0, r2, #0
    bl 0x080156A4
skip_free:
    pop {r0}
    bx r0
    .short 0
