	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_hdmi_init
_imx_hdmi_init:                         ## @imx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_OF_device_from_xref
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_device_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVENTHANDLER_DEREGISTER_NOWAIT
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dwc_hdmi_init                  ## TAILCALL
LBB0_4:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
LBB0_6:
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_device_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVENTHANDLER_PRI_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_imx_hdmi_init(%rip), %rsi
	movq	%r14, %rdx
	callq	_EVENTHANDLER_REGISTER
	movq	%rax, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_device_attach,4,2              ## @device_attach
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for DDC i2c device\n"

	.comm	_EVENTHANDLER_PRI_ANY,4,2       ## @EVENTHANDLER_PRI_ANY
	.no_dead_strip	_imx_hdmi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_hdmi_init
_imx_hdmi_init:                         ; @imx_hdmi_init
	.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
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_OF_device_from_xref
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x1, [x20]
	cbz	x1, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _device_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _device_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_EVENTHANDLER_DEREGISTER_NOWAIT
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dwc_hdmi_init
LBB0_4:
Lloh3:
	adrp	x8, _bootverbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_6:
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _device_attach@GOTPAGE
Lloh9:
	ldr	x8, [x8, _device_attach@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EVENTHANDLER_PRI_ANY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVENTHANDLER_PRI_ANY@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x1, _imx_hdmi_init@PAGE
Lloh15:
	add	x1, x1, _imx_hdmi_init@PAGEOFF
	mov	x2, x19
	bl	_EVENTHANDLER_REGISTER
	str	x0, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_device_attach,4,2              ; @device_attach
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for DDC i2c device\n"

	.comm	_EVENTHANDLER_PRI_ANY,4,2       ; @EVENTHANDLER_PRI_ANY
	.no_dead_strip	_imx_hdmi_init
.subsections_via_symbols
