	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function radeon_crtc_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_2:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_3:
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.long	48                              ## 0x30
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_radeon_crtc_init:                      ## @radeon_crtc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_RADEONFB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	64(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rbx
	addq	$56, %rbx
	movq	_radeon_crtc_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_crtc_init
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_drm_mode_crtc_set_gamma_size
	movl	%r12d, (%r13)
	movq	8(%r15), %rax
	movslq	%r12d, %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	24(%r13), %rdx
	movq	%rcx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.2:
	movq	%rdx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.3:
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.4:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [16,16,16,16]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [32,32,32,32]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [48,48,48,48]
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm4
	pslld	$2, %xmm4
	movdqa	%xmm4, %xmm5
	paddd	%xmm1, %xmm5
	movdqu	%xmm4, (%rax,%rsi,4)
	movdqu	%xmm5, 16(%rax,%rsi,4)
	movdqu	%xmm4, (%rcx,%rsi,4)
	movdqu	%xmm5, 16(%rcx,%rsi,4)
	movdqu	%xmm4, (%rdx,%rsi,4)
	movdqu	%xmm5, 16(%rdx,%rsi,4)
	movdqa	%xmm4, %xmm5
	paddd	%xmm2, %xmm5
	paddd	%xmm3, %xmm4
	movdqu	%xmm5, 32(%rax,%rsi,4)
	movdqu	%xmm4, 48(%rax,%rsi,4)
	movdqu	%xmm5, 32(%rcx,%rsi,4)
	movdqu	%xmm4, 48(%rcx,%rsi,4)
	movdqu	%xmm5, 32(%rdx,%rsi,4)
	movdqu	%xmm4, 48(%rdx,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm1, %xmm0
	cmpq	$256, %rsi                      ## imm = 0x100
	jne	LBB0_5
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, (%rax,%rsi)
	movl	%esi, (%rcx,%rsi)
	movl	%esi, (%rdx,%rsi)
	leal	4(%rsi), %edi
	movl	%edi, 4(%rax,%rsi)
	movl	%edi, 4(%rcx,%rsi)
	movl	%edi, 4(%rdx,%rsi)
	addq	$8, %rsi
	cmpq	$1024, %rsi                     ## imm = 0x400
	jne	LBB0_7
LBB0_8:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_ASIC_IS_AVIVO
	movq	_radeon_r4xx_atom@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_10
## %bb.12:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_atombios_init_crtc      ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_legacy_init_crtc        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEONFB_CONN_LIMIT,4,2        ## @RADEONFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_radeon_crtc_funcs,4,2          ## @radeon_crtc_funcs
	.comm	_radeon_r4xx_atom,8,3           ## @radeon_r4xx_atom
	.no_dead_strip	_radeon_crtc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function radeon_crtc_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_radeon_crtc_init:                      ; @radeon_crtc_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _RADEONFB_CONN_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEONFB_CONN_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	add	w0, w8, #64
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x23, x0, #56
Lloh6:
	adrp	x2, _radeon_crtc_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _radeon_crtc_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x23
	bl	_drm_crtc_init
	mov	x0, x23
	mov	w1, #256
	bl	_drm_mode_crtc_set_gamma_size
	ldr	x8, [x21, #8]
	str	x20, [x8, w22, sxtw #3]
	str	w22, [x20]
	ldp	x11, x8, [x20, #8]
	ldr	x9, [x20, #24]
	sub	x10, x8, x11
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.2:
	sub	x10, x9, x11
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x9, x8
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	mov	x10, #0
Lloh8:
	adrp	x12, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
	add	x11, x11, #32
	movi.4s	v1, #16
	movi.4s	v2, #32
	movi.4s	v3, #48
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	shl.4s	v4, v0, #2
	add.4s	v5, v4, v1
	add	x12, x11, x10
	stp	q4, q5, [x12, #-32]
	add.4s	v6, v4, v2
	add.4s	v7, v4, v3
	stp	q6, q7, [x12]
	add	x12, x8, x10
	stp	q4, q5, [x12]
	stp	q6, q7, [x12, #32]
	add	x12, x9, x10
	stp	q4, q5, [x12]
	add.4s	v0, v0, v1
	add	x10, x10, #64
	stp	q6, q7, [x12, #32]
	cmp	x10, #1024
	b.ne	LBB0_5
	b	LBB0_9
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x10, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x11, x10]
	str	w10, [x8, x10]
	str	w10, [x9, x10]
	add	x10, x10, #4
	cmp	x10, #1024
	b.ne	LBB0_8
LBB0_9:
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_ASIC_IS_AVIVO
Lloh10:
	adrp	x8, _radeon_r4xx_atom@GOTPAGE
Lloh11:
	ldr	x8, [x8, _radeon_r4xx_atom@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	orr	x8, x0, x8
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_radeon_atombios_init_crtc
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_radeon_legacy_init_crtc
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEONFB_CONN_LIMIT,4,2        ; @RADEONFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_radeon_crtc_funcs,4,2          ; @radeon_crtc_funcs
	.comm	_radeon_r4xx_atom,8,3           ; @radeon_r4xx_atom
	.no_dead_strip	_radeon_crtc_init
.subsections_via_symbols
