	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dummy_page_init         ## -- Begin function radeon_dummy_page_init
	.p2align	4, 0x90
_radeon_dummy_page_init:                ## @radeon_dummy_page_init
	.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
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	_GFP_DMA32@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%r14), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_pci_map_page
	movl	%eax, 8(%r14)
	movq	16(%r14), %rdi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	(%r14), %rdi
	callq	___free_page
	movq	$0, (%r14)
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to DMA MAP the dummy page\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dummy_page_init         ; -- Begin function radeon_dummy_page_init
	.p2align	2
_radeon_dummy_page_init:                ; @radeon_dummy_page_init
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_DMA32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_DMA32@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_alloc_page
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	w2, #0
	bl	_pci_map_page
	mov	x1, x0
	str	w0, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
	bl	___free_page
	str	xzr, [x19]
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to DMA MAP the dummy page\n"

.subsections_via_symbols
