	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exported_ap_free
_exported_ap_free:                      ## @exported_ap_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_exported_ap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	(%rdi), %rax
	movq	$0, (%rcx,%rax,8)
	movq	_last_used_map@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rdx,%rax,8)
	leaq	-1(%rax), %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
LBB0_5:
	movq	_first_free_map@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_7
## %bb.6:
	movq	%rax, (%rcx)
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_XFREE                          ## TAILCALL
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exported_ap,8,3                ## @exported_ap
	.comm	_last_used_map,8,3              ## @last_used_map
	.comm	_first_free_map,8,3             ## @first_free_map
	.no_dead_strip	_exported_ap_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exported_ap_free
_exported_ap_free:                      ; @exported_ap_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x10, _exported_ap@GOTPAGE
Lloh1:
	ldr	x10, [x10, _exported_ap@GOTPAGEOFF]
	ldr	x9, [x10]
	ldr	x8, [x0]
	str	xzr, [x9, x8, lsl #3]
Lloh2:
	adrp	x9, _last_used_map@GOTPAGE
Lloh3:
	ldr	x9, [x9, _last_used_map@GOTPAGEOFF]
	ldr	x11, [x9]
	cmp	x8, x11
	b.ne	LBB0_6
; %bb.2:
	ldr	x10, [x10]
	ldr	x11, [x10, x8, lsl #3]
	cbnz	x11, LBB0_6
; %bb.3:
	sub	x10, x10, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	sub	x8, x8, #1
	cbz	x11, LBB0_4
; %bb.5:
	str	x8, [x9]
	ldr	x8, [x19]
LBB0_6:
Lloh4:
	adrp	x9, _first_free_map@GOTPAGE
Lloh5:
	ldr	x9, [x9, _first_free_map@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x8
	b.ls	LBB0_8
; %bb.7:
	str	x8, [x9]
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_XFREE
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_exported_ap,8,3                ; @exported_ap
	.comm	_last_used_map,8,3              ; @last_used_map
	.comm	_first_free_map,8,3             ; @first_free_map
	.no_dead_strip	_exported_ap_free
.subsections_via_symbols
