	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi5_bind
_hdmi5_bind:                            ## @hdmi5_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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, %rbx
	movq	%r14, 16(%rax)
	movl	12(%rax), %esi
	leaq	8(%rax), %rcx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hdmi_pll_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_hdmi_audio_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DSSERR
	movq	%rbx, %rdi
	callq	_hdmi_pll_uninit
	jmp	LBB0_4
LBB0_3:
	movq	_hdmi_dump_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_dss_debugfs_create_file
	movl	%eax, 4(%rbx)
	xorl	%r15d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registering HDMI audio failed %d\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi5_bind
_hdmi5_bind:                            ; @hdmi5_bind
	.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
	mov	x0, x1
	bl	_dss_get_device
	mov	x20, x0
	mov	x0, x19
	bl	_dev_get_drvdata
	mov	x19, x0
	str	x20, [x0, #16]
	ldr	w1, [x0, #12]
	add	x3, x0, #8
	mov	x0, x20
	mov	x2, x19
	bl	_hdmi_pll_init
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_hdmi_audio_register
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DSSERR
	mov	x0, x19
	bl	_hdmi_pll_uninit
	b	LBB0_4
LBB0_3:
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, #4]
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
	ret
	.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 %d\n"

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

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