	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_attach
_hdmi_attach:                           ## @hdmi_attach
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r14d, 88(%rax)
	movl	%r14d, 104(%rax)
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %r15d
	movq	_SOURCE_SELECT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movabsq	$8589978692, %rax               ## imm = 0x20000AC44
	movq	%rax, (%rbx)
	movl	$0, 8(%rbx)
	movq	_tegra124_tmds_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 96(%rbx)
	callq	_nitems
	movl	%eax, 92(%rbx)
	movl	$0, -44(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_hdmi_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rcx
	addq	$80, %rcx
	movq	%rcx, (%rsp)
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_get_fdt_resources
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	%rbx, %rdi
	callq	_enable_fdt_resources
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movl	88(%rbx), %edi
	callq	_device_get_parent
	movl	88(%rbx), %esi
	movl	%eax, %edi
	callq	_TEGRA_DRM_REGISTER_CLIENT
	testl	%eax, %eax
	je	LBB0_32
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movl	%r14d, %edi
	callq	_device_printf
	movl	88(%rbx), %edi
	callq	_device_get_parent
	movl	88(%rbx), %esi
	movl	%eax, %edi
	callq	_TEGRA_DRM_DEREGISTER_CLIENT
	movq	80(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movq	24(%rbx), %rsi
	movl	%r14d, %edi
	callq	_bus_teardown_intr
LBB0_14:
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_clk_release
LBB0_16:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_clk_release
LBB0_18:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_hwreset_release
LBB0_20:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_regulator_release
LBB0_22:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_regulator_release
LBB0_24:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_regulator_release
LBB0_26:
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.27:
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bus_release_resource
LBB0_28:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.29:
	movl	(%r12), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bus_release_resource
LBB0_30:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	%r14d, %edi
	callq	_bus_generic_attach
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_SOURCE_SELECT_AUTO,4,2         ## @SOURCE_SELECT_AUTO
	.comm	_tegra124_tmds_config,4,2       ## @tegra124_tmds_config
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate memory resources\n"

	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate IRQ resources\n"

	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_hdmi_intr,4,2                  ## @hdmi_intr
L_.str.2:                               ## @.str.2
	.asciz	"WARNING: unable to register interrupt handler\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot parse FDT resources\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot enable FDT resources\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot register DRM device\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_hdmi_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function hdmi_attach
lCPI0_0:
	.long	44100                           ; 0xac44
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hdmi_attach:                           ; @hdmi_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #88]
	str	w19, [x0, #104]
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x21, x0
Lloh0:
	adrp	x8, _SOURCE_SELECT_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOURCE_SELECT_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	str	wzr, [x20, #8]
Lloh5:
	adrp	x9, _tegra124_tmds_config@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tegra124_tmds_config@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #96]
	bl	_nitems
	str	w0, [x20, #92]
	str	wzr, [sp, #12]
Lloh8:
	adrp	x22, _SYS_RES_MEMORY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	adrp	x24, _RF_ACTIVE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _RF_ACTIVE@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #16]
Lloh12:
	adrp	x23, _SYS_RES_IRQ@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SYS_RES_IRQ@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	str	wzr, [sp, #12]
	ldr	w1, [x23]
	ldr	w3, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #24]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
Lloh14:
	adrp	x8, _INTR_TYPE_MISC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh20:
	adrp	x8, _hdmi_intr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hdmi_intr@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	add	x6, x20, #80
	mov	x0, x19
	mov	x3, #0
	mov	x5, x20
	bl	_bus_setup_intr
	cbz	w0, LBB0_6
; %bb.3:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_5:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_get_fdt_resources
	cbz	w0, LBB0_8
; %bb.7:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_8:
	mov	x0, x20
	bl	_enable_fdt_resources
	cbz	w0, LBB0_10
; %bb.9:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	w0, [x20, #88]
	bl	_device_get_parent
	ldr	w1, [x20, #88]
	bl	_TEGRA_DRM_REGISTER_CLIENT
	cbz	w0, LBB0_32
; %bb.11:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_device_printf
	ldr	w0, [x20, #88]
	bl	_device_get_parent
	ldr	w1, [x20, #88]
	bl	_TEGRA_DRM_DEREGISTER_CLIENT
	ldr	x2, [x20, #80]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_bus_teardown_intr
LBB0_14:
	ldr	x0, [x20, #72]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_clk_release
LBB0_16:
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_clk_release
LBB0_18:
	ldr	x0, [x20, #56]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_hwreset_release
LBB0_20:
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_regulator_release
LBB0_22:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_regulator_release
LBB0_24:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_regulator_release
LBB0_26:
	ldr	x3, [x20, #24]
	cbz	x3, LBB0_28
; %bb.27:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_bus_release_resource
LBB0_28:
	ldr	x3, [x20, #16]
	cbz	x3, LBB0_30
; %bb.29:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_bus_release_resource
LBB0_30:
Lloh35:
	adrp	x8, _ENXIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
LBB0_31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_32:
	mov	x0, x19
	bl	_bus_generic_attach
	b	LBB0_31
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SOURCE_SELECT_AUTO,4,2         ; @SOURCE_SELECT_AUTO
	.comm	_tegra124_tmds_config,4,2       ; @tegra124_tmds_config
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory resources\n"

	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate IRQ resources\n"

	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_hdmi_intr,4,2                  ; @hdmi_intr
l_.str.2:                               ; @.str.2
	.asciz	"WARNING: unable to register interrupt handler\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot parse FDT resources\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot enable FDT resources\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot register DRM device\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_hdmi_attach
.subsections_via_symbols
