	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_modeset_init            ## -- Begin function radeon_modeset_init
	.p2align	4, 0x90
_radeon_modeset_init:                   ## @radeon_modeset_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_drm_mode_config_init
	movl	$1, 28(%r15)
	movq	8(%r15), %rax
	movq	_radeon_mode_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE5
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rcx
	movl	$16384, (%rcx)                  ## imm = 0x4000
	movl	$16384, %eax                    ## imm = 0x4000
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_ASIC_IS_AVIVO
	movq	8(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$8192, (%rcx)                   ## imm = 0x2000
	movl	$8192, %eax                     ## imm = 0x2000
	jmp	LBB0_5
LBB0_4:
	movl	$4096, (%rcx)                   ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
LBB0_5:
	movl	%eax, 4(%rcx)
	movabsq	$4294967320, %rax               ## imm = 0x100000018
	movq	%rax, 8(%rcx)
	movl	24(%r15), %eax
	movl	%eax, 16(%rcx)
	movq	%r15, %rdi
	callq	_radeon_modeset_create_props
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	%r15, %rdi
	callq	_radeon_i2c_init
	cmpq	$0, 16(%r15)
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_radeon_combios_check_hardcoded_edid
LBB0_8:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_radeon_crtc_init
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_10
LBB0_11:
	movq	8(%r15), %rdi
	callq	_radeon_setup_enc_conn
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	cmpq	$0, 16(%r15)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_radeon_atom_encoder_init
	movq	%r15, %rdi
	callq	_radeon_atom_disp_eng_pll_init
LBB0_14:
	movq	%r15, %rdi
	callq	_radeon_hpd_init
	movq	%r15, %rdi
	callq	_radeon_afmt_init
	movq	%r15, %rdi
	callq	_radeon_pm_init
	movq	%r15, %rdi
	callq	_radeon_fbdev_init
	movq	8(%r15), %rdi
	callq	_drm_kms_helper_poll_init
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radeon_mode_funcs,4,2          ## @radeon_mode_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function radeon_modeset_init
lCPI0_0:
	.long	24                              ; 0x18
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_modeset_init
	.p2align	2
_radeon_modeset_init:                   ; @radeon_modeset_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
	ldr	x0, [x0, #8]
	bl	_drm_mode_config_init
	mov	w8, #1
	str	w8, [x19, #28]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _radeon_mode_funcs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _radeon_mode_funcs@GOTPAGEOFF]
	str	x9, [x8, #24]
	mov	x0, x19
	bl	_ASIC_IS_DCE5
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	mov	w9, #16384
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ASIC_IS_AVIVO
	ldr	x8, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w9, #8192
	b	LBB0_5
LBB0_4:
	mov	w9, #4096
LBB0_5:
	stp	w9, w9, [x8]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #8]
	ldr	w9, [x19, #24]
	str	w9, [x8, #16]
	mov	x0, x19
	bl	_radeon_modeset_create_props
	cbnz	w0, LBB0_15
; %bb.6:
	mov	x0, x19
	bl	_radeon_i2c_init
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_radeon_combios_check_hardcoded_edid
LBB0_8:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_radeon_crtc_init
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_10
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_radeon_setup_enc_conn
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_radeon_atom_encoder_init
	mov	x0, x19
	bl	_radeon_atom_disp_eng_pll_init
LBB0_14:
	mov	x0, x19
	bl	_radeon_hpd_init
	mov	x0, x19
	bl	_radeon_afmt_init
	mov	x0, x19
	bl	_radeon_pm_init
	mov	x0, x19
	bl	_radeon_fbdev_init
	ldr	x0, [x19, #8]
	bl	_drm_kms_helper_poll_init
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_mode_funcs,4,2          ; @radeon_mode_funcs
.subsections_via_symbols
