	.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	8(%rdi), %r15
	movq	_RADEONFB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	72(,%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	_WQ_HIGHPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 68(%r13)
	movq	16(%r15), %rax
	movslq	%r12d, %rcx
	movq	%r13, (%rax,%rcx,8)
	movq	(%r15), %rax
	movq	_CHIP_BONAIRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_CIK_CURSOR_HEIGHT@GOTPCREL(%rip), %rax
	cmovlq	_CURSOR_HEIGHT@GOTPCREL(%rip), %rax
	movq	_CIK_CURSOR_WIDTH@GOTPCREL(%rip), %rcx
	cmovlq	_CURSOR_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 64(%r13)
	movl	%eax, 60(%r13)
	movl	%ecx, 4(%r14)
	movl	%eax, (%r14)
	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, 8(%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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radeon-crtc"

	.comm	_WQ_HIGHPRI,4,2                 ## @WQ_HIGHPRI
	.comm	_CHIP_BONAIRE,8,3               ## @CHIP_BONAIRE
	.comm	_CIK_CURSOR_WIDTH,4,2           ## @CIK_CURSOR_WIDTH
	.comm	_CIK_CURSOR_HEIGHT,4,2          ## @CIK_CURSOR_HEIGHT
	.comm	_CURSOR_WIDTH,4,2               ## @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,4,2              ## @CURSOR_HEIGHT
	.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, #8]
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, #72
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
	str	w22, [x20]
Lloh8:
	adrp	x8, _WQ_HIGHPRI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WQ_HIGHPRI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x20, #68]
	ldr	x8, [x21, #16]
	str	x20, [x8, w22, sxtw #3]
Lloh13:
	adrp	x8, _CHIP_BONAIRE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHIP_BONAIRE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _CURSOR_HEIGHT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CURSOR_HEIGHT@GOTPAGEOFF]
Lloh18:
	adrp	x11, _CIK_CURSOR_HEIGHT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CIK_CURSOR_HEIGHT@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, lt
Lloh20:
	adrp	x9, _CURSOR_WIDTH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CURSOR_WIDTH@GOTPAGEOFF]
Lloh22:
	adrp	x10, _CIK_CURSOR_WIDTH@GOTPAGE
Lloh23:
	ldr	x10, [x10, _CIK_CURSOR_WIDTH@GOTPAGEOFF]
	ldr	w8, [x8]
	csel	x9, x9, x10, lt
	ldr	w9, [x9]
	stp	w8, w9, [x20, #60]
	stp	w8, w9, [x19]
	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
Lloh24:
	adrp	x12, lCPI0_0@PAGE
Lloh25:
	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, #8]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_ASIC_IS_AVIVO
Lloh26:
	adrp	x8, _radeon_r4xx_atom@GOTPAGE
Lloh27:
	ldr	x8, [x8, _radeon_r4xx_atom@GOTPAGEOFF]
Lloh28:
	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	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radeon-crtc"

	.comm	_WQ_HIGHPRI,4,2                 ; @WQ_HIGHPRI
	.comm	_CHIP_BONAIRE,8,3               ; @CHIP_BONAIRE
	.comm	_CIK_CURSOR_WIDTH,4,2           ; @CIK_CURSOR_WIDTH
	.comm	_CIK_CURSOR_HEIGHT,4,2          ; @CIK_CURSOR_HEIGHT
	.comm	_CURSOR_WIDTH,4,2               ; @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,4,2              ; @CURSOR_HEIGHT
	.comm	_radeon_r4xx_atom,8,3           ; @radeon_r4xx_atom
	.no_dead_strip	_radeon_crtc_init
.subsections_via_symbols
