	.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	16(%rdi), %rdi
	callq	_drm_mode_config_init
	movl	$1, 36(%r15)
	movq	16(%r15), %rax
	movq	_radeon_mode_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_radeon_use_pflipirq@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rcx
	movq	_CHIP_R600@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_3
## %bb.2:
	movl	$1, (%rax)
LBB0_3:
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE5
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	16(%r15), %rcx
	movl	$16384, 4(%rcx)                 ## imm = 0x4000
	movl	$16384, %eax                    ## imm = 0x4000
	jmp	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	callq	_ASIC_IS_AVIVO
	movq	16(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$8192, 4(%rcx)                  ## imm = 0x2000
	movl	$8192, %eax                     ## imm = 0x2000
	jmp	LBB0_8
LBB0_7:
	movl	$4096, 4(%rcx)                  ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
LBB0_8:
	movl	%eax, 8(%rcx)
	movabsq	$4294967320, %rax               ## imm = 0x100000018
	movq	%rax, 12(%rcx)
	movl	32(%r15), %eax
	movl	%eax, 20(%rcx)
	movq	%r15, %rdi
	callq	_radeon_modeset_create_props
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	%r15, %rdi
	callq	_radeon_i2c_init
	cmpq	$0, 24(%r15)
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_radeon_combios_check_hardcoded_edid
LBB0_11:
	cmpl	$0, 8(%r15)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movl	%ebx, %esi
	callq	_radeon_crtc_init
	incl	%ebx
	cmpl	8(%r15), %ebx
	jl	LBB0_13
LBB0_14:
	movq	16(%r15), %rdi
	callq	_radeon_setup_enc_conn
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	cmpq	$0, 24(%r15)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_radeon_atom_encoder_init
	movq	%r15, %rdi
	callq	_radeon_atom_disp_eng_pll_init
LBB0_17:
	movq	%r15, %rdi
	callq	_radeon_hpd_init
	movq	%r15, %rdi
	callq	_radeon_afmt_init
	movq	%r15, %rdi
	callq	_radeon_fbdev_init
	movq	16(%r15), %rdi
	callq	_drm_kms_helper_poll_init
	movq	%r15, %rdi
	callq	_radeon_pm_late_init
LBB0_18:
	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
	.comm	_radeon_use_pflipirq,4,2        ## @radeon_use_pflipirq
	.comm	_CHIP_R600,8,3                  ## @CHIP_R600
.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, #16]
	bl	_drm_mode_config_init
	mov	w8, #1
	str	w8, [x19, #36]
Lloh0:
	adrp	x9, _radeon_mode_funcs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _radeon_mode_funcs@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	str	x9, [x8, #24]
Lloh2:
	adrp	x9, _radeon_use_pflipirq@GOTPAGE
Lloh3:
	ldr	x9, [x9, _radeon_use_pflipirq@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19]
Lloh5:
	adrp	x10, _CHIP_R600@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CHIP_R600@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x8]
LBB0_3:
	mov	x0, x19
	bl	_ASIC_IS_DCE5
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	mov	w9, #16384
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_ASIC_IS_AVIVO
	ldr	x8, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	mov	w9, #8192
	b	LBB0_8
LBB0_7:
	mov	w9, #4096
LBB0_8:
	stp	w9, w9, [x8, #4]
Lloh8:
	adrp	x9, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #12]
	ldr	w9, [x19, #32]
	str	w9, [x8, #20]
	mov	x0, x19
	bl	_radeon_modeset_create_props
	cbnz	w0, LBB0_18
; %bb.9:
	mov	x0, x19
	bl	_radeon_i2c_init
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_radeon_combios_check_hardcoded_edid
LBB0_11:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w20, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_radeon_crtc_init
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.lt	LBB0_13
LBB0_14:
	ldr	x0, [x19, #16]
	bl	_radeon_setup_enc_conn
	cbz	w0, LBB0_18
; %bb.15:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_radeon_atom_encoder_init
	mov	x0, x19
	bl	_radeon_atom_disp_eng_pll_init
LBB0_17:
	mov	x0, x19
	bl	_radeon_hpd_init
	mov	x0, x19
	bl	_radeon_afmt_init
	mov	x0, x19
	bl	_radeon_fbdev_init
	ldr	x0, [x19, #16]
	bl	_drm_kms_helper_poll_init
	mov	x0, x19
	bl	_radeon_pm_late_init
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_mode_funcs,4,2          ; @radeon_mode_funcs
	.comm	_radeon_use_pflipirq,4,2        ; @radeon_use_pflipirq
	.comm	_CHIP_R600,8,3                  ; @CHIP_R600
.subsections_via_symbols
