	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_crtc_init
_mga_crtc_init:                         ## @mga_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MGAG200FB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(,%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
	movl	8(%r14), %edi
	movq	_mga_crtc_funcs@GOTPCREL(%rip), %rdx
	movq	%rax, %rsi
	callq	_drm_crtc_init
	movq	_MGAG200_LUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_mode_crtc_set_gamma_size
	movq	%rbx, (%r14)
	movq	_mga_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_crtc_helper_add            ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGAG200FB_CONN_LIMIT,4,2       ## @MGAG200FB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mga_crtc_funcs,4,2             ## @mga_crtc_funcs
	.comm	_MGAG200_LUT_SIZE,4,2           ## @MGAG200_LUT_SIZE
	.comm	_mga_helper_funcs,4,2           ## @mga_helper_funcs
	.no_dead_strip	_mga_crtc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mga_crtc_init
_mga_crtc_init:                         ; @mga_crtc_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
Lloh0:
	adrp	x8, _MGAG200FB_CONN_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MGAG200FB_CONN_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w0, #4
	bfi	w0, w8, #3, #29
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	w0, [x19, #8]
Lloh6:
	adrp	x2, _mga_crtc_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _mga_crtc_funcs@GOTPAGEOFF]
	mov	x1, x20
	bl	_drm_crtc_init
Lloh8:
	adrp	x8, _MGAG200_LUT_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MGAG200_LUT_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_mode_crtc_set_gamma_size
	str	x20, [x19]
Lloh11:
	adrp	x1, _mga_helper_funcs@GOTPAGE
Lloh12:
	ldr	x1, [x1, _mga_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_crtc_helper_add
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MGAG200FB_CONN_LIMIT,4,2       ; @MGAG200FB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mga_crtc_funcs,4,2             ; @mga_crtc_funcs
	.comm	_MGAG200_LUT_SIZE,4,2           ; @MGAG200_LUT_SIZE
	.comm	_mga_helper_funcs,4,2           ; @mga_helper_funcs
	.no_dead_strip	_mga_crtc_init
.subsections_via_symbols
