	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_crtc_init
_dce_v6_0_crtc_init:                    ## @dce_v6_0_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_AMDGPUFB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	48(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r14), %rdi
	movq	%rax, %r15
	addq	$4, %r15
	movq	_dce_v6_0_crtc_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_drm_crtc_init
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_drm_mode_crtc_set_gamma_size
	movl	%r12d, (%rbx)
	movq	8(%r14), %rax
	movslq	%r12d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	_CURSOR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_CURSOR_HEIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 40(%rbx)
	movq	(%r14), %rsi
	movl	%eax, 4(%rsi)
	movl	%edx, (%rsi)
	movq	_crtc_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 36(%rbx)
	movq	_ATOM_PPLL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	_dce_v6_0_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_crtc_helper_add
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPUFB_CONN_LIMIT,4,2        ## @AMDGPUFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dce_v6_0_crtc_funcs,4,2        ## @dce_v6_0_crtc_funcs
	.comm	_CURSOR_WIDTH,4,2               ## @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,4,2              ## @CURSOR_HEIGHT
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_ATOM_PPLL_INVALID,4,2          ## @ATOM_PPLL_INVALID
	.comm	_dce_v6_0_crtc_helper_funcs,4,2 ## @dce_v6_0_crtc_helper_funcs
	.no_dead_strip	_dce_v6_0_crtc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_crtc_init
_dce_v6_0_crtc_init:                    ; @dce_v6_0_crtc_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _AMDGPUFB_CONN_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPUFB_CONN_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	add	w0, w8, #48
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x21]
	add	x22, x20, #4
Lloh6:
	adrp	x2, _dce_v6_0_crtc_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _dce_v6_0_crtc_funcs@GOTPAGEOFF]
	mov	x1, x22
	bl	_drm_crtc_init
	mov	x0, x22
	mov	w1, #256
	bl	_drm_mode_crtc_set_gamma_size
	str	w19, [x20]
	ldr	x8, [x21, #8]
	str	x20, [x8, w19, sxtw #3]
Lloh8:
	adrp	x8, _CURSOR_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CURSOR_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CURSOR_HEIGHT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CURSOR_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
	ldr	x10, [x21]
Lloh14:
	adrp	x11, _crtc_offsets@GOTPAGE
Lloh15:
	ldr	x11, [x11, _crtc_offsets@GOTPAGEOFF]
	stp	w9, w8, [x10]
Lloh16:
	ldr	x8, [x11]
	ldr	w8, [x8, w19, sxtw #2]
Lloh17:
	adrp	x9, _ATOM_PPLL_INVALID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATOM_PPLL_INVALID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	stp	xzr, xzr, [x20, #16]
	str	xzr, [x20, #8]
Lloh20:
	adrp	x1, _dce_v6_0_crtc_helper_funcs@GOTPAGE
Lloh21:
	ldr	x1, [x1, _dce_v6_0_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_crtc_helper_add
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPUFB_CONN_LIMIT,4,2        ; @AMDGPUFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dce_v6_0_crtc_funcs,4,2        ; @dce_v6_0_crtc_funcs
	.comm	_CURSOR_WIDTH,4,2               ; @CURSOR_WIDTH
	.comm	_CURSOR_HEIGHT,4,2              ; @CURSOR_HEIGHT
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_ATOM_PPLL_INVALID,4,2          ; @ATOM_PPLL_INVALID
	.comm	_dce_v6_0_crtc_helper_funcs,4,2 ; @dce_v6_0_crtc_helper_funcs
	.no_dead_strip	_dce_v6_0_crtc_init
.subsections_via_symbols
