	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_init           ## -- Begin function radeon_atombios_init
	.p2align	4, 0x90
_radeon_atombios_init:                  ## @radeon_atombios_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movl	16(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	_cail_reg_read@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 40(%rbx)
	movq	_cail_reg_write@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 32(%rbx)
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movq	_cail_ioreg_write@GOTPCREL(%rip), %r12
	movq	_cail_ioreg_read@GOTPCREL(%rip), %r15
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_5:
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	%rcx, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	_cail_mc_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_cail_mc_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_cail_pll_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_cail_pll_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_atom_parse
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	callq	_mutex_init
	movl	16(%r14), %edi
	callq	_radeon_atom_initialize_bios_scratch_regs
	movq	(%r14), %rdi
	callq	_atom_allocate_fb_scratch
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_radeon_atombios_fini
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cail_reg_read,8,3              ## @cail_reg_read
	.comm	_cail_reg_write,8,3             ## @cail_reg_write
	.comm	_cail_ioreg_read,8,3            ## @cail_ioreg_read
	.comm	_cail_ioreg_write,8,3           ## @cail_ioreg_write
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find PCI I/O BAR; using MMIO for ATOM IIO\n"

	.comm	_cail_mc_read,4,2               ## @cail_mc_read
	.comm	_cail_mc_write,4,2              ## @cail_mc_write
	.comm	_cail_pll_read,4,2              ## @cail_pll_read
	.comm	_cail_pll_write,4,2             ## @cail_pll_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_init           ; -- Begin function radeon_atombios_init
	.p2align	2
_radeon_atombios_init:                  ; @radeon_atombios_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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	ldr	w8, [x19, #16]
	str	w8, [x0, #48]
Lloh3:
	adrp	x8, _cail_reg_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cail_reg_read@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _cail_reg_write@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cail_reg_write@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x9, x8, [x0, #32]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _cail_ioreg_write@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cail_ioreg_write@GOTPAGEOFF]
Lloh11:
	adrp	x9, _cail_ioreg_read@GOTPAGE
Lloh12:
	ldr	x9, [x9, _cail_ioreg_read@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh15:
	adrp	x8, _cail_reg_write@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cail_reg_write@GOTPAGEOFF]
Lloh17:
	adrp	x9, _cail_reg_read@GOTPAGE
Lloh18:
	ldr	x9, [x9, _cail_reg_read@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	ldr	x9, [x9]
	stp	x8, x9, [x20, #16]
Lloh19:
	adrp	x8, _cail_mc_read@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cail_mc_read@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _cail_mc_write@GOTPAGE
Lloh23:
	ldr	x9, [x9, _cail_mc_write@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh25:
	adrp	x8, _cail_pll_read@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cail_pll_read@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _cail_pll_write@GOTPAGE
Lloh29:
	ldr	x9, [x9, _cail_pll_write@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_atom_parse
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mutex_init
	ldr	w0, [x19, #16]
	bl	_radeon_atom_initialize_bios_scratch_regs
	ldr	x0, [x19]
	bl	_atom_allocate_fb_scratch
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_radeon_atombios_fini
LBB0_7:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cail_reg_read,8,3              ; @cail_reg_read
	.comm	_cail_reg_write,8,3             ; @cail_reg_write
	.comm	_cail_ioreg_read,8,3            ; @cail_ioreg_read
	.comm	_cail_ioreg_write,8,3           ; @cail_ioreg_write
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find PCI I/O BAR; using MMIO for ATOM IIO\n"

	.comm	_cail_mc_read,4,2               ; @cail_mc_read
	.comm	_cail_mc_write,4,2              ; @cail_mc_write
	.comm	_cail_pll_read,4,2              ; @cail_pll_read
	.comm	_cail_pll_write,4,2             ; @cail_pll_write
.subsections_via_symbols
