	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8xx_alloc_pages
_i8xx_alloc_pages:                      ## @i8xx_alloc_pages
	.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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	_GFP_DMA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	$2, %esi
	callq	_alloc_pages
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_set_pages_uc
	movq	%rbx, %rdi
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	callq	_get_page
	movq	_agp_bridge@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atomic_inc
	jmp	LBB0_6
LBB0_4:
	movl	$4, %esi
	callq	_set_pages_wb
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	___free_pages
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.no_dead_strip	_i8xx_alloc_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8xx_alloc_pages
_i8xx_alloc_pages:                      ; @i8xx_alloc_pages
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GFP_DMA32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_DMA32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	w1, #2
	bl	_alloc_pages
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #4
	bl	_set_pages_uc
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_get_page
Lloh6:
	adrp	x8, _agp_bridge@GOTPAGE
Lloh7:
	ldr	x8, [x8, _agp_bridge@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_atomic_inc
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #4
	bl	_set_pages_wb
	mov	x0, x19
	mov	w1, #2
	bl	___free_pages
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.no_dead_strip	_i8xx_alloc_pages
.subsections_via_symbols
