	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __setup_page_dma
___setup_page_dma:                      ## @__setup_page_dma
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_I915_GFP_ALLOW_FAIL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, %esi
	callq	_vm_alloc_page
	movl	%eax, (%r15)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movq	_DMA_ATTR_NO_WARN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rax), %r9d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_dma_map_page_attrs
	movl	%eax, 4(%r15)
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_vm_free_page
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GFP_ALLOW_FAIL,4,2        ## @I915_GFP_ALLOW_FAIL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ## @DMA_ATTR_SKIP_CPU_SYNC
	.comm	_DMA_ATTR_NO_WARN,4,2           ## @DMA_ATTR_NO_WARN
	.no_dead_strip	___setup_page_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __setup_page_dma
___setup_page_dma:                      ; @__setup_page_dma
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I915_GFP_ALLOW_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GFP_ALLOW_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w2
	bl	_vm_alloc_page
	str	w0, [x20]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _DMA_ATTR_NO_WARN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMA_ATTR_NO_WARN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	w2, #0
	bl	_dma_map_page_attrs
	mov	x1, x0
	str	w0, [x20, #4]
	ldr	w0, [x19]
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vm_free_page
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GFP_ALLOW_FAIL,4,2        ; @I915_GFP_ALLOW_FAIL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,4,2     ; @DMA_ATTR_SKIP_CPU_SYNC
	.comm	_DMA_ATTR_NO_WARN,4,2           ; @DMA_ATTR_NO_WARN
	.no_dead_strip	___setup_page_dma
.subsections_via_symbols
