	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_overlay_free
_task_overlay_free:                     ## @task_overlay_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rbx
	movq	24(%r12), %r15
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	%r14, %rdi
	callq	_task_get_cancelled
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	(%rbx,%rbx,2), %rax
	shlq	$4, %rax
	cmpl	$0, 8(%r15,%rax)
	je	LBB0_6
## %bb.4:
	leaq	(%r15,%rax), %r14
	addq	$8, %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%r15, %rdi
	callq	_image_texture_free
	incq	%rbx
	movl	(%r14), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	cmpl	$0, 12(%r12)
	je	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%r14, %rdi
	callq	_input_overlay_free_overlay
	incq	%rbx
	movl	12(%r12), %eax
	addq	$48, %r14
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	movq	24(%r12), %rdi
	callq	_free
LBB0_10:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_config_file_free
LBB0_12:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_task_overlay_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_overlay_free
_task_overlay_free:                     ; @task_overlay_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x21, [x19, #24]
	ldr	x24, [x19]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
	mov	x0, x20
	bl	_task_get_cancelled
	cbz	x0, LBB0_10
; %bb.3:
	mov	w8, #48
	madd	x20, x24, x8, x21
	ldr	w8, [x20, #8]!
	cbz	w8, LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
	mov	w8, #48
	madd	x8, x24, x8, x21
	add	x21, x8, #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x22
	bl	_image_texture_free
	add	x23, x23, #1
	ldr	w8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x20, #0
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x20
	bl	_input_overlay_free_overlay
	add	x21, x21, #1
	ldr	w8, [x19, #12]
	add	x20, x20, #48
	cmp	x21, x8
	b.lo	LBB0_8
LBB0_9:
	ldr	x0, [x19, #24]
	bl	_free
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_config_file_free
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_task_overlay_free
.subsections_via_symbols
