	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_Destroy
_REBAR_Destroy:                         ## @REBAR_Destroy
	.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
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_REBAR_GetBand
	movq	%rax, %r15
	movq	56(%rax), %rdi
	callq	_Free
	movq	$0, 56(%r15)
	movl	48(%r15), %edi
	callq	_DestroyWindow
	movq	%r15, %rdi
	callq	_Free
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_2
LBB0_3:
	movq	40(%r14), %rdi
	callq	_DPA_Destroy
	movq	$0, 40(%r14)
	movl	36(%r14), %edi
	callq	_DestroyCursor
	movl	32(%r14), %edi
	callq	_DestroyCursor
	movl	28(%r14), %edi
	callq	_DestroyCursor
	movl	24(%r14), %edi
	callq	_DestroyCursor
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_DeleteObject
LBB0_5:
	movl	8(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SetWindowLongPtrW
	movl	8(%r14), %edi
	callq	_GetWindowTheme
	movl	%eax, %edi
	callq	_CloseThemeData
	movq	%r14, %rdi
	callq	_Free
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroyed!\n"

	.no_dead_strip	_REBAR_Destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_Destroy
_REBAR_Destroy:                         ; @REBAR_Destroy
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_GetBand
	mov	x21, x0
	ldr	x0, [x0, #56]
	bl	_Free
	str	xzr, [x21, #56]
	ldr	w0, [x21, #48]
	bl	_DestroyWindow
	mov	x0, x21
	bl	_Free
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x19, #40]
	bl	_DPA_Destroy
	str	xzr, [x19, #40]
	ldr	w0, [x19, #36]
	bl	_DestroyCursor
	ldr	w0, [x19, #32]
	bl	_DestroyCursor
	ldr	w0, [x19, #28]
	bl	_DestroyCursor
	ldr	w0, [x19, #24]
	bl	_DestroyCursor
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_DeleteObject
LBB0_5:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_SetWindowLongPtrW
	ldr	w0, [x19, #8]
	bl	_GetWindowTheme
	bl	_CloseThemeData
	mov	x0, x19
	bl	_Free
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroyed!\n"

	.no_dead_strip	_REBAR_Destroy
.subsections_via_symbols
