	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_init
_tegra_hdmi_init:                       ## @tegra_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	%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, %r14
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_host1x_client_to_hdmi
	movq	%rax, %r12
	movl	(%r14), %eax
	leaq	16(%r12), %r13
	movl	%eax, 24(%r12)
	leaq	20(%r12), %rbx
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tegra_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_init
	movq	_tegra_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_tegra_hdmi_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_tegra_hdmi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_encoder_helper_add
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_connector_attach_encoder
	movq	%rbx, %rdi
	callq	_drm_connector_register
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_tegra_output_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	$3, 16(%r12)
	movl	12(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	8(%r12), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	4(%r12), %edi
	callq	_regulator_enable
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tegra_hdmi_connector_funcs,4,2 ## @tegra_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.comm	_tegra_hdmi_connector_helper_funcs,4,2 ## @tegra_hdmi_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
	.comm	_tegra_hdmi_encoder_funcs,4,2   ## @tegra_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_tegra_hdmi_encoder_helper_funcs,4,2 ## @tegra_hdmi_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize output: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable HDMI regulator: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to enable PLL regulator: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable VDD regulator: %d\n"

	.no_dead_strip	_tegra_hdmi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hdmi_init
_tegra_hdmi_init:                       ; @tegra_hdmi_init
	.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	x20, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	bl	_host1x_client_to_hdmi
	mov	x19, x0
	ldr	w8, [x20]
	add	x22, x0, #16
	str	w8, [x0, #24]
	add	x23, x0, #20
Lloh0:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _tegra_hdmi_connector_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _tegra_hdmi_connector_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	bl	_drm_connector_init
Lloh5:
	adrp	x1, _tegra_hdmi_connector_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _tegra_hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_connector_helper_add
Lloh7:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh10:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, _tegra_hdmi_encoder_funcs@GOTPAGE
Lloh14:
	ldr	x2, [x2, _tegra_hdmi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	x4, #0
	bl	_drm_encoder_init
Lloh15:
	adrp	x1, _tegra_hdmi_encoder_helper_funcs@GOTPAGE
Lloh16:
	ldr	x1, [x1, _tegra_hdmi_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_encoder_helper_add
	mov	x0, x23
	mov	x1, x22
	bl	_drm_connector_attach_encoder
	mov	x0, x23
	bl	_drm_connector_register
	mov	x0, x21
	mov	x1, x22
	bl	_tegra_output_init
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w8, #3
	str	w8, [x19, #16]
	ldr	w0, [x19, #12]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w21, #0
	b	LBB0_10
LBB0_5:
	mov	x21, x0
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x21, x0
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x21, x0
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x2, x21
	bl	_dev_err
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_tegra_hdmi_connector_funcs,4,2 ; @tegra_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.comm	_tegra_hdmi_connector_helper_funcs,4,2 ; @tegra_hdmi_connector_helper_funcs
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
	.comm	_tegra_hdmi_encoder_funcs,4,2   ; @tegra_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_tegra_hdmi_encoder_helper_funcs,4,2 ; @tegra_hdmi_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize output: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable HDMI regulator: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to enable PLL regulator: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable VDD regulator: %d\n"

	.no_dead_strip	_tegra_hdmi_init
.subsections_via_symbols
