	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_init_client
_hdmi_init_client:                      ## @hdmi_init_client
	.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	%rdx, %r14
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	16(%rax), %edi
	callq	_ofw_bus_get_node
	movq	%r14, 24(%rbx)
	movq	_hdmi_setup_clock@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tegra_drm_encoder_attach
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %r15
	addq	$4, %r15
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	movq	_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_hdmi_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_encoder_init
	movq	_hdmi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_encoder_helper_add
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_connector_attach_encoder
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tegra_drm_encoder_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$3, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdmi_setup_clock,4,2           ## @hdmi_setup_clock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot attach output connector\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_hdmi_connector_funcs,4,2       ## @hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_hdmi_connector_helper_funcs,4,2 ## @hdmi_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_hdmi_encoder_funcs,4,2         ## @hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_hdmi_encoder_helper_funcs,4,2  ## @hdmi_encoder_helper_funcs
L_.str.1:                               ## @.str.1
	.asciz	"Unable to init HDMI output\n"

	.no_dead_strip	_hdmi_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_init_client
_hdmi_init_client:                      ; @hdmi_init_client
	.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	x20, x2
	mov	x21, x0
	bl	_device_get_softc
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_ofw_bus_get_node
	mov	x1, x0
	str	x20, [x19, #24]
Lloh0:
	adrp	x8, _hdmi_setup_clock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hdmi_setup_clock@GOTPAGEOFF]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_tegra_drm_encoder_attach
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_device_printf
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	add	x21, x19, #4
Lloh7:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x2, _hdmi_connector_funcs@GOTPAGE
Lloh11:
	ldr	x2, [x2, _hdmi_connector_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_drm_connector_init
Lloh12:
	adrp	x1, _hdmi_connector_helper_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_connector_helper_add
Lloh14:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh17:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x2, _hdmi_encoder_funcs@GOTPAGE
Lloh21:
	ldr	x2, [x2, _hdmi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_encoder_init
Lloh22:
	adrp	x1, _hdmi_encoder_helper_funcs@GOTPAGE
Lloh23:
	ldr	x1, [x1, _hdmi_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
	mov	x0, x21
	mov	x1, x19
	bl	_drm_mode_connector_attach_encoder
	mov	x0, x19
	mov	x1, x20
	bl	_tegra_drm_encoder_init
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w20, #0
	mov	w8, #3
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_hdmi_setup_clock,4,2           ; @hdmi_setup_clock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot attach output connector\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_hdmi_connector_funcs,4,2       ; @hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_hdmi_connector_helper_funcs,4,2 ; @hdmi_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_hdmi_encoder_funcs,4,2         ; @hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_hdmi_encoder_helper_funcs,4,2  ; @hdmi_encoder_helper_funcs
l_.str.1:                               ; @.str.1
	.asciz	"Unable to init HDMI output\n"

	.no_dead_strip	_hdmi_init_client
.subsections_via_symbols
