	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_DeleteBand
_REBAR_DeleteBand:                      ## @REBAR_DeleteBand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_REBAR_GetBand
	movq	%rax, %r15
	movq	_RBN_DELETINGBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_REBAR_Notify_NMREBAR
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_SW_HIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_4:
	movq	(%r15), %rdi
	callq	_Free
	movq	%r15, %rdi
	callq	_Free
	decl	(%rbx)
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	callq	_DPA_DeletePtr
	movq	_RBN_DELETEDBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_REBAR_Notify_NMREBAR
	cmpl	$1, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_REBAR_GetBand
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_REBAR_ValidateBand
LBB0_6:
	movq	%rbx, %rdi
	callq	_REBAR_Layout
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deleting band %u!\n"

	.comm	_RBN_DELETINGBAND,4,2           ## @RBN_DELETINGBAND
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_RBN_DELETEDBAND,4,2            ## @RBN_DELETEDBAND
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_REBAR_DeleteBand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_DeleteBand
_REBAR_DeleteBand:                      ; @REBAR_DeleteBand
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_GetBand
	mov	x21, x0
Lloh2:
	adrp	x8, _RBN_DELETINGBAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RBN_DELETINGBAND@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_Notify_NMREBAR
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_3:
	ldr	x0, [x21]
	bl	_Free
	mov	x0, x21
	bl	_Free
	ldp	w8, w0, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x1, x20
	bl	_DPA_DeletePtr
Lloh8:
	adrp	x8, _RBN_DELETEDBAND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RBN_DELETEDBAND@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_REBAR_Notify_NMREBAR
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_REBAR_GetBand
	mov	x1, x0
	mov	x0, x19
	bl	_REBAR_ValidateBand
LBB0_5:
	mov	x0, x19
	bl	_REBAR_Layout
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deleting band %u!\n"

	.comm	_RBN_DELETINGBAND,4,2           ; @RBN_DELETINGBAND
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_RBN_DELETEDBAND,4,2            ; @RBN_DELETEDBAND
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_REBAR_DeleteBand
.subsections_via_symbols
