	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function agp_remove_from_pool
_agp_remove_from_pool:                  ## @agp_remove_from_pool
	.cfi_startproc
## %bb.0:
	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
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DBG
	movl	16(%rbx), %edi
	callq	_agp_find_mem_by_key
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rcx, (%rax)
	jmp	LBB0_7
LBB0_4:
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, (%rax)
LBB0_6:
	movq	_agp_fe@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mem=%p"

	.comm	_agp_fe,8,3                     ## @agp_fe
	.no_dead_strip	_agp_remove_from_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function agp_remove_from_pool
_agp_remove_from_pool:                  ; @agp_remove_from_pool
	.cfi_startproc
; %bb.0:
	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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DBG
	ldr	w0, [x19, #16]
	bl	_agp_find_mem_by_key
	cbz	x0, LBB0_7
; %bb.1:
	ldp	x9, x8, [x19]
	cbz	x9, LBB0_4
; %bb.2:
	str	x8, [x9, #8]
	cbz	x8, LBB0_7
; %bb.3:
	str	x9, [x8]
	b	LBB0_7
LBB0_4:
	cbz	x8, LBB0_6
; %bb.5:
	str	xzr, [x8]
LBB0_6:
Lloh2:
	adrp	x9, _agp_fe@GOTPAGE
Lloh3:
	ldr	x9, [x9, _agp_fe@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	x8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mem=%p"

	.comm	_agp_fe,8,3                     ; @agp_fe
	.no_dead_strip	_agp_remove_from_pool
.subsections_via_symbols
