	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_init             ## -- Begin function oaktrail_hdmi_init
	.p2align	4, 0x90
_oaktrail_hdmi_init:                    ## @oaktrail_hdmi_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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, %r12
	addq	$4, %r12
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_oaktrail_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_oaktrail_hdmi_enc_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_gma_connector_attach_encoder
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_oaktrail_hdmi_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_encoder_helper_add
	movq	_oaktrail_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movq	_SubPixelHorizontalRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	$0, (%r15)
	movq	%r15, %rdi
	callq	_drm_connector_register
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_oaktrail_hdmi_connector_funcs,4,2 ## @oaktrail_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
	.comm	_oaktrail_hdmi_enc_funcs,4,2    ## @oaktrail_hdmi_enc_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_oaktrail_hdmi_helper_funcs,4,2 ## @oaktrail_hdmi_helper_funcs
	.comm	_oaktrail_hdmi_connector_helper_funcs,4,2 ## @oaktrail_hdmi_connector_helper_funcs
	.comm	_SubPixelHorizontalRGB,4,2      ## @SubPixelHorizontalRGB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI initialised.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_hdmi_init             ; -- Begin function oaktrail_hdmi_init
	.p2align	2
_oaktrail_hdmi_init:                    ; @oaktrail_hdmi_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, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w1, [x20]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	add	x22, x21, #4
Lloh2:
	adrp	x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _oaktrail_hdmi_connector_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _oaktrail_hdmi_connector_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_drm_connector_init
Lloh7:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x2, _oaktrail_hdmi_enc_funcs@GOTPAGE
Lloh11:
	ldr	x2, [x2, _oaktrail_hdmi_enc_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x0, x20
	mov	x1, x21
	bl	_gma_connector_attach_encoder
Lloh12:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh15:
	adrp	x1, _oaktrail_hdmi_helper_funcs@GOTPAGE
Lloh16:
	ldr	x1, [x1, _oaktrail_hdmi_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_encoder_helper_add
Lloh17:
	adrp	x1, _oaktrail_hdmi_connector_helper_funcs@GOTPAGE
Lloh18:
	ldr	x1, [x1, _oaktrail_hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_connector_helper_add
Lloh19:
	adrp	x8, _SubPixelHorizontalRGB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SubPixelHorizontalRGB@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	str	xzr, [x20]
	mov	x0, x20
	bl	_drm_connector_register
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_info
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
LBB0_4:
	mov	x0, x21
	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	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_oaktrail_hdmi_connector_funcs,4,2 ; @oaktrail_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
	.comm	_oaktrail_hdmi_enc_funcs,4,2    ; @oaktrail_hdmi_enc_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_oaktrail_hdmi_helper_funcs,4,2 ; @oaktrail_hdmi_helper_funcs
	.comm	_oaktrail_hdmi_connector_helper_funcs,4,2 ; @oaktrail_hdmi_connector_helper_funcs
	.comm	_SubPixelHorizontalRGB,4,2      ; @SubPixelHorizontalRGB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI initialised.\n"

.subsections_via_symbols
