	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi4_bind
_hdmi4_bind:                            ## @hdmi4_bind
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_dss_get_device
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movq	%rax, %rdi
	callq	_hdmi_runtime_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	16(%r15), %esi
	leaq	12(%r15), %r13
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_hdmi_pll_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	16(%r15), %edi
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_hdmi4_cec_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_hdmi_audio_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DSSERR
	movq	%r12, %rdi
	callq	_hdmi4_cec_uninit
LBB0_5:
	movq	%r15, %rdi
	callq	_hdmi_pll_uninit
LBB0_6:
	movq	%r15, %rdi
	callq	_hdmi_runtime_put
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_hdmi_dump_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_dss_debugfs_create_file
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registering HDMI audio failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"hdmi"

	.comm	_hdmi_dump_regs,4,2             ## @hdmi_dump_regs
	.no_dead_strip	_hdmi4_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi4_bind
_hdmi4_bind:                            ; @hdmi4_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	x0, x1
	bl	_dss_get_device
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_drvdata
	mov	x19, x0
	str	x20, [x0, #24]
	bl	_hdmi_runtime_get
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w1, [x19, #16]
	add	x23, x19, #12
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	bl	_hdmi_pll_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #16]
	add	x22, x19, #4
	mov	x1, x22
	mov	x2, x23
	bl	_hdmi4_cec_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_hdmi_audio_register
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSERR
	mov	x0, x22
	bl	_hdmi4_cec_uninit
LBB0_5:
	mov	x0, x19
	bl	_hdmi_pll_uninit
LBB0_6:
	mov	x0, x19
	bl	_hdmi_runtime_put
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh2:
	adrp	x8, _hdmi_dump_regs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hdmi_dump_regs@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dss_debugfs_create_file
	str	w0, [x19, #8]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registering HDMI audio failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"hdmi"

	.comm	_hdmi_dump_regs,4,2             ; @hdmi_dump_regs
	.no_dead_strip	_hdmi4_bind
.subsections_via_symbols
