	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt1_alloc_page
_pt1_alloc_page:                        ## @pt1_alloc_page
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rdi
	movq	_PT1_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %rdx
	callq	_dma_alloc_coherent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	decl	%edi
	andl	-36(%rbp), %edi
	callq	_BUG_ON
	movl	-36(%rbp), %edi
	sarl	$31, %edi
	callq	_BUG_ON
	movl	-36(%rbp), %eax
	movl	%eax, (%r15)
	movq	_PT1_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
LBB0_2:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT1_PAGE_SIZE,4,2              ## @PT1_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PT1_PAGE_SHIFT,4,2             ## @PT1_PAGE_SHIFT
	.no_dead_strip	_pt1_alloc_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt1_alloc_page
_pt1_alloc_page:                        ; @pt1_alloc_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x0, [x0]
Lloh0:
	adrp	x22, _PT1_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PT1_PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x2, sp, #12
	bl	_dma_alloc_coherent
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	sub	w9, w9, #1
	and	w0, w9, w8
	bl	_BUG_ON
	ldr	w8, [sp, #12]
	asr	w0, w8, #31
	bl	_BUG_ON
	ldr	w8, [sp, #12]
	str	w8, [x20]
Lloh5:
	adrp	x9, _PT1_PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PT1_PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
LBB0_2:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PT1_PAGE_SIZE,4,2              ; @PT1_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PT1_PAGE_SHIFT,4,2             ; @PT1_PAGE_SHIFT
	.no_dead_strip	_pt1_alloc_page
.subsections_via_symbols
