	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdv_intel_crt_init             ## -- Begin function cdv_intel_crt_init
	.p2align	4, 0x90
_cdv_intel_crt_init:                    ## @cdv_intel_crt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_cdv_intel_crt_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_connector_init
	movq	_DRM_MODE_ENCODER_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_cdv_intel_crt_enc_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gma_connector_attach_encoder
	movq	_GPIOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_psb_intel_i2c_create
	movl	%eax, 28(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	_INTEL_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_cdv_intel_crt_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_encoder_helper_add
	movq	_cdv_intel_crt_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_connector_helper_add
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_connector_register         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_dev_printk
	movq	%rbx, %rdi
	callq	_drm_encoder_cleanup
	movq	%r14, %rdi
	callq	_drm_connector_cleanup
	movq	%r14, %rdi
	callq	_kfree
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_cdv_intel_crt_connector_funcs,4,2 ## @cdv_intel_crt_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
	.comm	_cdv_intel_crt_enc_funcs,4,2    ## @cdv_intel_crt_enc_funcs
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ## @DRM_MODE_ENCODER_DAC
	.comm	_GPIOA,4,2                      ## @GPIOA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTDDC_A"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"DDC bus registration failed.\n"

	.comm	_INTEL_OUTPUT_ANALOG,4,2        ## @INTEL_OUTPUT_ANALOG
	.comm	_cdv_intel_crt_helper_funcs,4,2 ## @cdv_intel_crt_helper_funcs
	.comm	_cdv_intel_crt_connector_helper_funcs,4,2 ## @cdv_intel_crt_connector_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdv_intel_crt_init             ; -- Begin function cdv_intel_crt_init
	.p2align	2
_cdv_intel_crt_init:                    ; @cdv_intel_crt_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	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _cdv_intel_crt_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _cdv_intel_crt_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_drm_connector_init
Lloh10:
	adrp	x8, _DRM_MODE_ENCODER_DAC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DAC@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, _cdv_intel_crt_enc_funcs@GOTPAGE
Lloh14:
	ldr	x2, [x2, _cdv_intel_crt_enc_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x0, x20
	mov	x1, x19
	bl	_gma_connector_attach_encoder
Lloh15:
	adrp	x8, _GPIOA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIOA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_psb_intel_i2c_create
	str	w0, [x19, #28]
	cbz	w0, LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _INTEL_OUTPUT_ANALOG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INTEL_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	stp	xzr, xzr, [x20]
Lloh23:
	adrp	x1, _cdv_intel_crt_helper_funcs@GOTPAGE
Lloh24:
	ldr	x1, [x1, _cdv_intel_crt_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
Lloh25:
	adrp	x1, _cdv_intel_crt_connector_helper_funcs@GOTPAGE
Lloh26:
	ldr	x1, [x1, _cdv_intel_crt_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_connector_helper_add
	mov	x0, x20
	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
	b	_drm_connector_register
LBB0_4:
	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
LBB0_5:
Lloh27:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x1, [x21]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_dev_printk
	mov	x0, x19
	bl	_drm_encoder_cleanup
	mov	x0, x20
	bl	_drm_connector_cleanup
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_cdv_intel_crt_connector_funcs,4,2 ; @cdv_intel_crt_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
	.comm	_cdv_intel_crt_enc_funcs,4,2    ; @cdv_intel_crt_enc_funcs
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ; @DRM_MODE_ENCODER_DAC
	.comm	_GPIOA,4,2                      ; @GPIOA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTDDC_A"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"DDC bus registration failed.\n"

	.comm	_INTEL_OUTPUT_ANALOG,4,2        ; @INTEL_OUTPUT_ANALOG
	.comm	_cdv_intel_crt_helper_funcs,4,2 ; @cdv_intel_crt_helper_funcs
	.comm	_cdv_intel_crt_connector_helper_funcs,4,2 ; @cdv_intel_crt_connector_helper_funcs
.subsections_via_symbols
