	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_u3_remove_memory               ## -- Begin function u3_remove_memory
	.p2align	4, 0x90
_u3_remove_memory:                      ## @u3_remove_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	_agp_bridge@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rsi
	addq	(%rax), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rsi,%rax,8)
	incq	%rax
	cmpq	8(%r14), %rax
	jb	LBB0_5
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mb
	movq	%r14, %rdi
	callq	_uninorth_tlbflush
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_agp_bridge,8,3                 ## @agp_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_u3_remove_memory               ; -- Begin function u3_remove_memory
	.p2align	2
_u3_remove_memory:                      ; @u3_remove_memory
	.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
	cbnz	w2, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x8, #0
Lloh3:
	adrp	x9, _agp_bridge@GOTPAGE
Lloh4:
	ldr	x9, [x9, _agp_bridge@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x9, x1, lsl #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9, x8, lsl #3]
	add	x8, x8, #1
	ldr	x10, [x19, #8]
	cmp	x8, x10
	b.lo	LBB0_6
LBB0_7:
	bl	_mb
	mov	x0, x19
	bl	_uninorth_tlbflush
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_agp_bridge,8,3                 ; @agp_bridge
.subsections_via_symbols
