	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10hdmi_set_videomode
_a10hdmi_set_videomode:                 ## @a10hdmi_set_videomode
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	callq	_device_get_softc
	movq	_VID_DBLSCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movl	4(%r14), %r15d
	movl	12(%r14), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	subl	8(%r14), %r15d
	movl	16(%r14), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	20(%r14), %r13d
	movl	%r13d, %r12d
	subl	24(%r14), %r12d
	movl	28(%r14), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	32(%r14), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	leaq	-92(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_a10hdmi_get_tcon_config
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_18
LBB0_2:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	_HDMI_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_HDMI_READ
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_HDMI_WRITE
	movq	_HDMI_PADCTRL1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_HDMI_READ
	movq	_PADCTRL1_REG_CKSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	$0, -88(%rbp)
	movq	%r14, %r15
	jne	LBB0_3
## %bb.4:
	movq	_PADCTRL1_REG_CKSS_1X@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PADCTRL1_REG_CKSS_2X@GOTPCREL(%rip), %rax
LBB0_5:
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	orl	(%rax), %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_HDMI_WRITE
	movq	_PLLCTRL0_PLL_EN@GOTPCREL(%rip), %rax
	movq	_PLLCTRL0_BWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_PLLCTRL0_HV_IS_33@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_PLLCTRL0_LDO1_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_PLLCTRL0_LDO2_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_PLLCTRL0_SDIV2@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_PLLCTRL0_VCO_GAIN@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_HDMI_PLLCTRL0@GOTPCREL(%rip), %rax
	movq	_PLLCTRL0_S@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movl	(%rax), %ebx
	movq	_PLLCTRL0_CP_S@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_PLLCTRL0_CS@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	-92(%rbp), %edi
	callq	_PLLCTRL0_PREDIV
	orl	%eax, %r13d
	movq	_PLLCTRL0_VCO_S@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_HDMI_WRITE
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	cmpq	$0, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rax, %rdx
	cmpq	$0, 8(%r12)
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_7:
	cmpq	$0, (%r12)
	movl	$0, %r8d
	je	LBB0_9
## %bb.8:
	movq	_VID_CTRL_HDMI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_9:
	movq	%r15, %r14
	movl	(%r15), %eax
	movq	_VID_INTERLACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_VID_DBLSCAN@GOTPCREL(%rip), %r9
	movl	-84(%rbp), %r10d                ## 4-byte Reload
	movl	-68(%rbp), %r11d                ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_VID_CTRL_INTERLACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_11:
	orl	%r8d, %edx
	subl	%r10d, %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	subl	%r10d, %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	subl	%r11d, %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	subl	%r11d, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	andl	(%r9), %eax
	je	LBB0_13
## %bb.12:
	movq	_VID_CTRL_REPEATER_2X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	orl	%eax, %edx
	movq	_HDMI_VID_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_HDMI_WRITE
	movq	_HDMI_VID_TIMING0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	24(%r14), %edi
	callq	_VID_ACT_V
	movl	%eax, %ebx
	movl	8(%r14), %edi
	movb	-41(%rbp), %r13b                ## 1-byte Reload
	movl	%r13d, %ecx
	shll	%cl, %edi
	callq	_VID_ACT_H
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_HDMI_WRITE
	movq	_HDMI_VID_TIMING1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_VID_VBP
	movl	%eax, %ebx
	movl	%r13d, %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	shll	%cl, %edi
	callq	_VID_HBP
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_HDMI_WRITE
	movq	_HDMI_VID_TIMING2@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_VID_VFP
	movl	%eax, %ebx
	movl	%r13d, %ecx
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	shll	%cl, %edi
	callq	_VID_HFP
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_HDMI_WRITE
	movq	_HDMI_VID_TIMING3@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_VID_VSPW
	movl	%eax, %ebx
	movl	%r13d, %ecx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	shll	%cl, %edi
	callq	_VID_HSPW
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_HDMI_WRITE
	movq	_TX_CLOCK_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	movq	_VID_PVSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_15
## %bb.14:
	movq	_VID_VSYNC_ACTSEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_15:
	orl	(%rcx), %edx
	movq	_VID_PHSYNC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_17
## %bb.16:
	movq	_VID_HSYNC_ACTSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	orl	%eax, %edx
	movq	_HDMI_VID_TIMING4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_HDMI_WRITE
	movq	_HDMI_PKTCTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PKT_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_PKTCTRL_PACKET
	movl	%eax, %r15d
	movq	_PKT_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_PKTCTRL_PACKET
	orl	%eax, %r15d
	movq	_PKT_AI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_PKTCTRL_PACKET
	movl	%eax, %ebx
	movq	_PKT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
	callq	_PKTCTRL_PACKET
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_HDMI_WRITE
	movq	_HDMI_PKTCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_HDMI_WRITE
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_a10hdmi_set_audiomode
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
LBB0_18:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VID_DBLSCAN,4,2                ## @VID_DBLSCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get tcon config: %d\n"

	.comm	_HDMI_INT_STATUS,4,2            ## @HDMI_INT_STATUS
	.comm	_HDMI_PADCTRL1,4,2              ## @HDMI_PADCTRL1
	.comm	_PADCTRL1_REG_CKSS,4,2          ## @PADCTRL1_REG_CKSS
	.comm	_PADCTRL1_REG_CKSS_2X,4,2       ## @PADCTRL1_REG_CKSS_2X
	.comm	_PADCTRL1_REG_CKSS_1X,4,2       ## @PADCTRL1_REG_CKSS_1X
	.comm	_HDMI_PLLCTRL0,4,2              ## @HDMI_PLLCTRL0
	.comm	_PLLCTRL0_PLL_EN,4,2            ## @PLLCTRL0_PLL_EN
	.comm	_PLLCTRL0_BWS,4,2               ## @PLLCTRL0_BWS
	.comm	_PLLCTRL0_HV_IS_33,4,2          ## @PLLCTRL0_HV_IS_33
	.comm	_PLLCTRL0_LDO1_EN,4,2           ## @PLLCTRL0_LDO1_EN
	.comm	_PLLCTRL0_LDO2_EN,4,2           ## @PLLCTRL0_LDO2_EN
	.comm	_PLLCTRL0_SDIV2,4,2             ## @PLLCTRL0_SDIV2
	.comm	_PLLCTRL0_VCO_GAIN,4,2          ## @PLLCTRL0_VCO_GAIN
	.comm	_PLLCTRL0_S,4,2                 ## @PLLCTRL0_S
	.comm	_PLLCTRL0_CP_S,4,2              ## @PLLCTRL0_CP_S
	.comm	_PLLCTRL0_CS,4,2                ## @PLLCTRL0_CS
	.comm	_PLLCTRL0_VCO_S,4,2             ## @PLLCTRL0_VCO_S
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"HDMI: %s, Audio: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"yes"

L_.str.3:                               ## @.str.3
	.asciz	"no"

	.comm	_VID_CTRL_HDMI_MODE,4,2         ## @VID_CTRL_HDMI_MODE
	.comm	_VID_INTERLACE,4,2              ## @VID_INTERLACE
	.comm	_VID_CTRL_INTERLACE,4,2         ## @VID_CTRL_INTERLACE
	.comm	_VID_CTRL_REPEATER_2X,4,2       ## @VID_CTRL_REPEATER_2X
	.comm	_HDMI_VID_CTRL,4,2              ## @HDMI_VID_CTRL
	.comm	_HDMI_VID_TIMING0,4,2           ## @HDMI_VID_TIMING0
	.comm	_HDMI_VID_TIMING1,4,2           ## @HDMI_VID_TIMING1
	.comm	_HDMI_VID_TIMING2,4,2           ## @HDMI_VID_TIMING2
	.comm	_HDMI_VID_TIMING3,4,2           ## @HDMI_VID_TIMING3
	.comm	_TX_CLOCK_NORMAL,4,2            ## @TX_CLOCK_NORMAL
	.comm	_VID_PVSYNC,4,2                 ## @VID_PVSYNC
	.comm	_VID_VSYNC_ACTSEL,4,2           ## @VID_VSYNC_ACTSEL
	.comm	_VID_PHSYNC,4,2                 ## @VID_PHSYNC
	.comm	_VID_HSYNC_ACTSEL,4,2           ## @VID_HSYNC_ACTSEL
	.comm	_HDMI_VID_TIMING4,4,2           ## @HDMI_VID_TIMING4
	.comm	_HDMI_PKTCTRL0,4,2              ## @HDMI_PKTCTRL0
	.comm	_PKT_GC,4,2                     ## @PKT_GC
	.comm	_PKT_AVI,4,2                    ## @PKT_AVI
	.comm	_PKT_AI,4,2                     ## @PKT_AI
	.comm	_PKT_END,4,2                    ## @PKT_END
	.comm	_HDMI_PKTCTRL1,4,2              ## @HDMI_PKTCTRL1
	.no_dead_strip	_a10hdmi_set_videomode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10hdmi_set_videomode
_a10hdmi_set_videomode:                 ; @a10hdmi_set_videomode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	bl	_device_get_softc
Lloh0:
	adrp	x8, _VID_DBLSCAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VID_DBLSCAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w23, [x20]
	tst	w8, w9
	cset	w21, ne
	ldp	w24, w27, [x20, #8]
	ldp	w26, w25, [x20, #16]
	ldp	w22, w28, [x20, #24]
	ldr	w8, [x20, #32]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	add	x1, sp, #60
	add	x2, sp, #56
	mov	x19, x0
	bl	_a10hdmi_get_tcon_config
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x19, x0
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_device_printf
	mov	x0, x19
	b	LBB0_5
LBB0_2:
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	sub	w8, w23, w24
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	sub	w8, w27, w23
	stp	w8, w21, [sp, #32]              ; 8-byte Folded Spill
	sub	w23, w26, w23
	sub	w24, w25, w22
	sub	w28, w28, w25
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	sub	w25, w8, w25
Lloh5:
	adrp	x8, _HDMI_INT_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_INT_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
	mov	x21, x19
	mov	x0, x19
	mov	x1, x26
	bl	_HDMI_READ
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_HDMI_WRITE
Lloh8:
	adrp	x19, _HDMI_PADCTRL1@GOTPAGE
Lloh9:
	ldr	x19, [x19, _HDMI_PADCTRL1@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x21
	bl	_HDMI_READ
Lloh10:
	adrp	x8, _PADCTRL1_REG_CKSS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PADCTRL1_REG_CKSS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh13:
	adrp	x9, _PADCTRL1_REG_CKSS_2X@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PADCTRL1_REG_CKSS_2X@GOTPAGEOFF]
Lloh15:
	adrp	x10, _PADCTRL1_REG_CKSS_1X@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PADCTRL1_REG_CKSS_1X@GOTPAGEOFF]
	ldr	w11, [sp, #56]
	cmp	w11, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x19]
	mov	x0, x21
	bl	_HDMI_WRITE
Lloh17:
	adrp	x8, _HDMI_PLLCTRL0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDMI_PLLCTRL0@GOTPAGEOFF]
Lloh19:
	adrp	x9, _PLLCTRL0_PLL_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PLLCTRL0_PLL_EN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _PLLCTRL0_BWS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _PLLCTRL0_BWS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh25:
	adrp	x10, _PLLCTRL0_HV_IS_33@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PLLCTRL0_HV_IS_33@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh28:
	adrp	x10, _PLLCTRL0_LDO1_EN@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PLLCTRL0_LDO1_EN@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh31:
	adrp	x10, _PLLCTRL0_LDO2_EN@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PLLCTRL0_LDO2_EN@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh34:
	adrp	x10, _PLLCTRL0_SDIV2@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PLLCTRL0_SDIV2@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh37:
	adrp	x10, _PLLCTRL0_VCO_GAIN@GOTPAGE
Lloh38:
	ldr	x10, [x10, _PLLCTRL0_VCO_GAIN@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh40:
	adrp	x10, _PLLCTRL0_S@GOTPAGE
Lloh41:
	ldr	x10, [x10, _PLLCTRL0_S@GOTPAGEOFF]
Lloh42:
	ldr	w26, [x8]
Lloh43:
	ldr	w8, [x10]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _PLLCTRL0_CP_S@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PLLCTRL0_CP_S@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _PLLCTRL0_CS@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PLLCTRL0_CS@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w19, w8, w9
	ldr	w0, [sp, #60]
	bl	_PLLCTRL0_PREDIV
	orr	w8, w19, w0
Lloh50:
	adrp	x9, _PLLCTRL0_VCO_S@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PLLCTRL0_VCO_S@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	mov	x1, x26
	bl	_HDMI_WRITE
Lloh53:
	adrp	x8, _bootverbose@GOTPAGE
Lloh54:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	ldr	w22, [sp, #52]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_4
; %bb.3:
Lloh56:
	adrp	x8, l_.str.2@PAGE
Lloh57:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh58:
	adrp	x9, l_.str.3@PAGE
Lloh59:
	add	x9, x9, l_.str.3@PAGEOFF
	ldp	x10, x11, [x21]
	cmp	x10, #0
	csel	x10, x9, x8, eq
	cmp	x11, #0
	csel	x8, x9, x8, eq
	stp	x10, x8, [sp]
Lloh60:
	adrp	x1, l_.str.1@PAGE
Lloh61:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_device_printf
LBB0_4:
Lloh62:
	adrp	x8, _VID_CTRL_HDMI_MODE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _VID_CTRL_HDMI_MODE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh64:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh65:
	adrp	x9, _VID_INTERLACE@GOTPAGE
Lloh66:
	ldr	x9, [x9, _VID_INTERLACE@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x11, _VID_CTRL_INTERLACE@GOTPAGE
Lloh69:
	ldr	x11, [x11, _VID_CTRL_INTERLACE@GOTPAGEOFF]
Lloh70:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
Lloh71:
	adrp	x9, _VID_DBLSCAN@GOTPAGE
Lloh72:
	ldr	x9, [x9, _VID_DBLSCAN@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
Lloh74:
	adrp	x11, _VID_CTRL_REPEATER_2X@GOTPAGE
Lloh75:
	ldr	x11, [x11, _VID_CTRL_REPEATER_2X@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
	orr	w2, w8, w9
Lloh77:
	adrp	x8, _HDMI_VID_CTRL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _HDMI_VID_CTRL@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HDMI_WRITE
Lloh80:
	adrp	x8, _HDMI_VID_TIMING0@GOTPAGE
Lloh81:
	ldr	x8, [x8, _HDMI_VID_TIMING0@GOTPAGEOFF]
Lloh82:
	ldr	w26, [x8]
	ldr	w0, [x20, #24]
	bl	_VID_ACT_V
	mov	x27, x0
	ldr	w8, [x20, #8]
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	lsl	w0, w8, w19
	bl	_VID_ACT_H
	orr	w2, w0, w27
	mov	x0, x21
	mov	x1, x26
	bl	_HDMI_WRITE
Lloh83:
	adrp	x8, _HDMI_VID_TIMING1@GOTPAGE
Lloh84:
	ldr	x8, [x8, _HDMI_VID_TIMING1@GOTPAGEOFF]
Lloh85:
	ldr	w26, [x8]
	mov	x0, x25
	bl	_VID_VBP
	mov	x25, x0
	lsl	w0, w23, w19
	bl	_VID_HBP
	orr	w2, w0, w25
	mov	x0, x21
	mov	x1, x26
	bl	_HDMI_WRITE
Lloh86:
	adrp	x8, _HDMI_VID_TIMING2@GOTPAGE
Lloh87:
	ldr	x8, [x8, _HDMI_VID_TIMING2@GOTPAGEOFF]
Lloh88:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_VID_VFP
	mov	x24, x0
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	lsl	w0, w8, w19
	bl	_VID_HFP
	orr	w2, w0, w24
	mov	x0, x21
	mov	x1, x25
	bl	_HDMI_WRITE
Lloh89:
	adrp	x8, _HDMI_VID_TIMING3@GOTPAGE
Lloh90:
	ldr	x8, [x8, _HDMI_VID_TIMING3@GOTPAGEOFF]
Lloh91:
	ldr	w24, [x8]
	mov	x0, x28
	bl	_VID_VSPW
	mov	x23, x0
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	lsl	w0, w8, w19
	bl	_VID_HSPW
	orr	w2, w0, w23
	mov	x0, x21
	mov	x1, x24
	bl	_HDMI_WRITE
Lloh92:
	adrp	x8, _TX_CLOCK_NORMAL@GOTPAGE
Lloh93:
	ldr	x8, [x8, _TX_CLOCK_NORMAL@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	ldr	w9, [x20]
Lloh95:
	adrp	x10, _VID_PVSYNC@GOTPAGE
Lloh96:
	ldr	x10, [x10, _VID_PVSYNC@GOTPAGEOFF]
Lloh97:
	ldr	w10, [x10]
Lloh98:
	adrp	x11, _VID_VSYNC_ACTSEL@GOTPAGE
Lloh99:
	ldr	x11, [x11, _VID_VSYNC_ACTSEL@GOTPAGEOFF]
Lloh100:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh101:
	adrp	x10, _VID_PHSYNC@GOTPAGE
Lloh102:
	ldr	x10, [x10, _VID_PHSYNC@GOTPAGEOFF]
Lloh103:
	ldr	w10, [x10]
Lloh104:
	adrp	x11, _VID_HSYNC_ACTSEL@GOTPAGE
Lloh105:
	ldr	x11, [x11, _VID_HSYNC_ACTSEL@GOTPAGEOFF]
Lloh106:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w2, w8, w9
Lloh107:
	adrp	x8, _HDMI_VID_TIMING4@GOTPAGE
Lloh108:
	ldr	x8, [x8, _HDMI_VID_TIMING4@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HDMI_WRITE
Lloh110:
	adrp	x8, _HDMI_PKTCTRL0@GOTPAGE
Lloh111:
	ldr	x8, [x8, _HDMI_PKTCTRL0@GOTPAGEOFF]
Lloh112:
	ldr	w23, [x8]
Lloh113:
	adrp	x8, _PKT_GC@GOTPAGE
Lloh114:
	ldr	x8, [x8, _PKT_GC@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_PKTCTRL_PACKET
	mov	x24, x0
Lloh116:
	adrp	x8, _PKT_AVI@GOTPAGE
Lloh117:
	ldr	x8, [x8, _PKT_AVI@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_PKTCTRL_PACKET
	orr	w19, w0, w24
Lloh119:
	adrp	x8, _PKT_AI@GOTPAGE
Lloh120:
	ldr	x8, [x8, _PKT_AI@GOTPAGEOFF]
Lloh121:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_PKTCTRL_PACKET
	orr	w19, w19, w0
Lloh122:
	adrp	x8, _PKT_END@GOTPAGE
Lloh123:
	ldr	x8, [x8, _PKT_END@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	mov	w0, #3
	bl	_PKTCTRL_PACKET
	orr	w2, w19, w0
	mov	x0, x21
	mov	x1, x23
	bl	_HDMI_WRITE
Lloh125:
	adrp	x8, _HDMI_PKTCTRL1@GOTPAGE
Lloh126:
	ldr	x8, [x8, _HDMI_PKTCTRL1@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_HDMI_WRITE
	mov	x0, x22
	mov	x1, x20
	bl	_a10hdmi_set_audiomode
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh42
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_VID_DBLSCAN,4,2                ; @VID_DBLSCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get tcon config: %d\n"

	.comm	_HDMI_INT_STATUS,4,2            ; @HDMI_INT_STATUS
	.comm	_HDMI_PADCTRL1,4,2              ; @HDMI_PADCTRL1
	.comm	_PADCTRL1_REG_CKSS,4,2          ; @PADCTRL1_REG_CKSS
	.comm	_PADCTRL1_REG_CKSS_2X,4,2       ; @PADCTRL1_REG_CKSS_2X
	.comm	_PADCTRL1_REG_CKSS_1X,4,2       ; @PADCTRL1_REG_CKSS_1X
	.comm	_HDMI_PLLCTRL0,4,2              ; @HDMI_PLLCTRL0
	.comm	_PLLCTRL0_PLL_EN,4,2            ; @PLLCTRL0_PLL_EN
	.comm	_PLLCTRL0_BWS,4,2               ; @PLLCTRL0_BWS
	.comm	_PLLCTRL0_HV_IS_33,4,2          ; @PLLCTRL0_HV_IS_33
	.comm	_PLLCTRL0_LDO1_EN,4,2           ; @PLLCTRL0_LDO1_EN
	.comm	_PLLCTRL0_LDO2_EN,4,2           ; @PLLCTRL0_LDO2_EN
	.comm	_PLLCTRL0_SDIV2,4,2             ; @PLLCTRL0_SDIV2
	.comm	_PLLCTRL0_VCO_GAIN,4,2          ; @PLLCTRL0_VCO_GAIN
	.comm	_PLLCTRL0_S,4,2                 ; @PLLCTRL0_S
	.comm	_PLLCTRL0_CP_S,4,2              ; @PLLCTRL0_CP_S
	.comm	_PLLCTRL0_CS,4,2                ; @PLLCTRL0_CS
	.comm	_PLLCTRL0_VCO_S,4,2             ; @PLLCTRL0_VCO_S
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"HDMI: %s, Audio: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"yes"

l_.str.3:                               ; @.str.3
	.asciz	"no"

	.comm	_VID_CTRL_HDMI_MODE,4,2         ; @VID_CTRL_HDMI_MODE
	.comm	_VID_INTERLACE,4,2              ; @VID_INTERLACE
	.comm	_VID_CTRL_INTERLACE,4,2         ; @VID_CTRL_INTERLACE
	.comm	_VID_CTRL_REPEATER_2X,4,2       ; @VID_CTRL_REPEATER_2X
	.comm	_HDMI_VID_CTRL,4,2              ; @HDMI_VID_CTRL
	.comm	_HDMI_VID_TIMING0,4,2           ; @HDMI_VID_TIMING0
	.comm	_HDMI_VID_TIMING1,4,2           ; @HDMI_VID_TIMING1
	.comm	_HDMI_VID_TIMING2,4,2           ; @HDMI_VID_TIMING2
	.comm	_HDMI_VID_TIMING3,4,2           ; @HDMI_VID_TIMING3
	.comm	_TX_CLOCK_NORMAL,4,2            ; @TX_CLOCK_NORMAL
	.comm	_VID_PVSYNC,4,2                 ; @VID_PVSYNC
	.comm	_VID_VSYNC_ACTSEL,4,2           ; @VID_VSYNC_ACTSEL
	.comm	_VID_PHSYNC,4,2                 ; @VID_PHSYNC
	.comm	_VID_HSYNC_ACTSEL,4,2           ; @VID_HSYNC_ACTSEL
	.comm	_HDMI_VID_TIMING4,4,2           ; @HDMI_VID_TIMING4
	.comm	_HDMI_PKTCTRL0,4,2              ; @HDMI_PKTCTRL0
	.comm	_PKT_GC,4,2                     ; @PKT_GC
	.comm	_PKT_AVI,4,2                    ; @PKT_AVI
	.comm	_PKT_AI,4,2                     ; @PKT_AI
	.comm	_PKT_END,4,2                    ; @PKT_END
	.comm	_HDMI_PKTCTRL1,4,2              ; @HDMI_PKTCTRL1
	.no_dead_strip	_a10hdmi_set_videomode
.subsections_via_symbols
