	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hdmi_pre_enable
_sti_hdmi_pre_enable:                   ## @sti_hdmi_pre_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	32(%rbx), %edi
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_3:
	movl	28(%rbx), %edi
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_5:
	movl	24(%rbx), %edi
	callq	_clk_prepare_enable
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_ERROR
LBB0_7:
	movl	$1, (%rbx)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	callq	_hdmi_active_area
	movq	_HDMI_WORKING_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_write
	movq	%rbx, %rdi
	callq	_hdmi_config
	movq	%rbx, %rdi
	callq	_hdmi_avi_infoframe_config
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_ERROR
LBB0_10:
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_hdmi_audio_configure
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_14
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_13:
	movq	%rbx, %rdi
	callq	_hdmi_audio_infoframe_config
LBB0_14:
	movq	%rbx, %rdi
	callq	_hdmi_vendor_infoframe_config
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	callq	_DRM_ERROR
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hdmi_swreset                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to prepare/enable hdmi_pix clk\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to prepare/enable hdmi_tmds clk\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to prepare/enable hdmi_rejec_pll clk\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to start hdmi phy\n"

	.comm	_HDMI_WORKING_INT,4,2           ## @HDMI_WORKING_INT
	.comm	_HDMI_INT_EN,4,2                ## @HDMI_INT_EN
L_.str.5:                               ## @.str.5
	.asciz	"Unable to configure AVI infoframe\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to configure audio\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unable to configure VS infoframe\n"

	.no_dead_strip	_sti_hdmi_pre_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hdmi_pre_enable
_sti_hdmi_pre_enable:                   ; @sti_hdmi_pre_enable
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_clk_prepare_enable
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	ldr	w0, [x19, #28]
	bl	_clk_prepare_enable
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
	ldr	w0, [x19, #24]
	bl	_clk_prepare_enable
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_hdmi_active_area
Lloh8:
	adrp	x8, _HDMI_WORKING_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_WORKING_INT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HDMI_INT_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_INT_EN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_write
	mov	x0, x19
	bl	_hdmi_config
	mov	x0, x19
	bl	_hdmi_avi_infoframe_config
	cbz	x0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_hdmi_audio_configure
	cbz	x0, LBB0_16
; %bb.13:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_15:
	mov	x0, x19
	bl	_hdmi_audio_infoframe_config
LBB0_16:
	mov	x0, x19
	bl	_hdmi_vendor_infoframe_config
	cbz	x0, LBB0_18
; %bb.17:
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_ERROR
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_swreset
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to prepare/enable hdmi_pix clk\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to prepare/enable hdmi_tmds clk\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to prepare/enable hdmi_rejec_pll clk\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to start hdmi phy\n"

	.comm	_HDMI_WORKING_INT,4,2           ; @HDMI_WORKING_INT
	.comm	_HDMI_INT_EN,4,2                ; @HDMI_INT_EN
l_.str.5:                               ; @.str.5
	.asciz	"Unable to configure AVI infoframe\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to configure audio\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unable to configure VS infoframe\n"

	.no_dead_strip	_sti_hdmi_pre_enable
.subsections_via_symbols
