	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_init_crtc      ## -- Begin function radeon_atombios_init_crtc
	.p2align	4, 0x90
_radeon_atombios_init_crtc:             ## @radeon_atombios_init_crtc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	callq	_ASIC_IS_DCE4
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	decl	%ecx
	cmpl	$4, %ecx
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	cmpl	$1, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_AVIVO_D2CRTC_H_TOTAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AVIVO_D1CRTC_H_TOTAL@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
LBB0_13:
	movq	%rax, 40(%rbx)
	movq	_ATOM_PPLL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	4(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	_atombios_helper_funcs@GOTPCREL(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_drm_crtc_helper_add            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC0_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC1_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC2_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC3_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC4_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC5_REGISTER_OFFSET
	.comm	_AVIVO_D2CRTC_H_TOTAL,8,3       ## @AVIVO_D2CRTC_H_TOTAL
	.comm	_AVIVO_D1CRTC_H_TOTAL,8,3       ## @AVIVO_D1CRTC_H_TOTAL
	.comm	_ATOM_PPLL_INVALID,4,2          ## @ATOM_PPLL_INVALID
	.comm	_atombios_helper_funcs,4,2      ## @atombios_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_init_crtc      ; -- Begin function radeon_atombios_init_crtc
	.p2align	2
_radeon_atombios_init_crtc:             ; @radeon_atombios_init_crtc
	.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, x1
	ldr	x0, [x0]
	bl	_ASIC_IS_DCE4
	ldr	w8, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	sub	w8, w8, #1
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _AVIVO_D2CRTC_H_TOTAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVIVO_D2CRTC_H_TOTAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _AVIVO_D1CRTC_H_TOTAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVIVO_D1CRTC_H_TOTAL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	sub	x8, x8, x9
	b	LBB0_13
LBB0_6:
	mov	x8, #0
	b	LBB0_13
LBB0_7:
Lloh10:
	adrp	x8, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x8, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh16:
	adrp	x8, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
LBB0_13:
	str	x8, [x19, #40]
Lloh20:
	adrp	x8, _ATOM_PPLL_INVALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATOM_PPLL_INVALID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #4
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
Lloh23:
	adrp	x1, _atombios_helper_funcs@GOTPAGE
Lloh24:
	ldr	x1, [x1, _atombios_helper_funcs@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_crtc_helper_add
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC0_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC1_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC2_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC3_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC4_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC5_REGISTER_OFFSET
	.comm	_AVIVO_D2CRTC_H_TOTAL,8,3       ; @AVIVO_D2CRTC_H_TOTAL
	.comm	_AVIVO_D1CRTC_H_TOTAL,8,3       ; @AVIVO_D1CRTC_H_TOTAL
	.comm	_ATOM_PPLL_INVALID,4,2          ; @ATOM_PPLL_INVALID
	.comm	_atombios_helper_funcs,4,2      ; @atombios_helper_funcs
.subsections_via_symbols
