	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_afe_update_power_control ## -- Begin function cx231xx_afe_update_power_control
	.p2align	4, 0x90
_cx231xx_afe_update_power_control:      ## @cx231xx_afe_update_power_control
	.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	$0, -44(%rbp)
	movl	(%rdi), %ecx
	addl	$-128, %ecx
	movq	_POLARIS_AVMODE_ANALOGT_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$13, %ecx
	ja	LBB0_19
## %bb.1:
	cmpl	%esi, %eax
	jne	LBB0_8
## %bb.2:
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	je	LBB0_6
## %bb.3:
	movq	_SUP_BLK_PWRDN@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_afe_write_byte
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_afe_read_byte
	orl	%ebx, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edx
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	cmpl	%edx, -44(%rbp)
	jne	LBB0_4
LBB0_6:
	movq	_ADC_PWRDN_CLAMP_CH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_ADC_PWRDN_CLAMP_CH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_afe_write_byte
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_ADC_PWRDN_CLAMP_CH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_19:
	cmpl	%esi, %eax
	jne	LBB0_26
## %bb.20:
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	je	LBB0_21
## %bb.22:
	movq	_SUP_BLK_PWRDN@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_afe_write_byte
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_afe_read_byte
	movl	%eax, %ebx
	orl	%r12d, %ebx
	js	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	cmpl	%edx, -44(%rbp)
	jne	LBB0_24
	jmp	LBB0_25
LBB0_8:
	movq	_POLARIS_AVMODE_DIGITAL@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_9
## %bb.10:
	movq	_POLARIS_AVMODE_ENXTERNAL_AV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_34
## %bb.11:
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	je	LBB0_12
## %bb.13:
	movq	_SUP_BLK_PWRDN@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_afe_write_byte
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_afe_read_byte
	movl	%eax, %ebx
	orl	%r12d, %ebx
	js	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	cmpl	%edx, -44(%rbp)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_26:
	movq	_POLARIS_AVMODE_DIGITAL@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_27
LBB0_9:
	movq	_ADC_PWRDN_CLAMP_CH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$112, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_ADC_PWRDN_CLAMP_CH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$112, %edx
	callq	_afe_write_byte
	movl	%eax, %r12d
	orl	%r15d, %r12d
	movq	_ADC_PWRDN_CLAMP_CH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$112, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_SUP_BLK_PWRDN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_afe_read_byte
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_FLD_PWRDN_PD_BANDGAP@GOTPCREL(%rip), %rax
	movq	_FLD_PWRDN_PD_BIAS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	%r12d, %ebx
	movq	_FLD_PWRDN_PD_TUNECK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%r14, %rdi
LBB0_7:
	callq	_afe_write_byte
	orl	%ebx, %eax
	jmp	LBB0_35
LBB0_27:
	movq	_POLARIS_AVMODE_ENXTERNAL_AV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_34
## %bb.28:
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	je	LBB0_29
## %bb.30:
	movq	_SUP_BLK_PWRDN@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_afe_write_byte
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_afe_read_byte
	movl	%eax, %ebx
	orl	%r12d, %ebx
	js	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_FLD_PWRDN_ENABLE_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLD_PWRDN_TUNING_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	cmpl	%edx, -44(%rbp)
	jne	LBB0_32
	jmp	LBB0_33
LBB0_34:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	$-1, %eax
	jmp	LBB0_35
LBB0_21:
	xorl	%ebx, %ebx
LBB0_25:
	movq	_ADC_PWRDN_CLAMP_CH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_ADC_PWRDN_CLAMP_CH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
LBB0_17:
	callq	_afe_write_byte
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_ADC_PWRDN_CLAMP_CH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_18:
	callq	_afe_write_byte
	orl	%r15d, %eax
	orl	%r12d, %eax
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
LBB0_16:
	movq	_ADC_PWRDN_CLAMP_CH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_ADC_PWRDN_CLAMP_CH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_17
LBB0_29:
	xorl	%ebx, %ebx
LBB0_33:
	movq	_ADC_PWRDN_CLAMP_CH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_afe_write_byte
	movl	%eax, %r15d
	movq	_ADC_PWRDN_CLAMP_CH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_afe_write_byte
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movq	_ADC_PWRDN_CLAMP_CH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_POLARIS_AVMODE_ANALOGT_TV,4,2  ## @POLARIS_AVMODE_ANALOGT_TV
	.comm	_FLD_PWRDN_TUNING_BIAS,4,2      ## @FLD_PWRDN_TUNING_BIAS
	.comm	_FLD_PWRDN_ENABLE_PLL,4,2       ## @FLD_PWRDN_ENABLE_PLL
	.comm	_SUP_BLK_PWRDN,4,2              ## @SUP_BLK_PWRDN
	.comm	_ADC_PWRDN_CLAMP_CH1,4,2        ## @ADC_PWRDN_CLAMP_CH1
	.comm	_ADC_PWRDN_CLAMP_CH2,4,2        ## @ADC_PWRDN_CLAMP_CH2
	.comm	_ADC_PWRDN_CLAMP_CH3,4,2        ## @ADC_PWRDN_CLAMP_CH3
	.comm	_POLARIS_AVMODE_DIGITAL,4,2     ## @POLARIS_AVMODE_DIGITAL
	.comm	_FLD_PWRDN_PD_BANDGAP,4,2       ## @FLD_PWRDN_PD_BANDGAP
	.comm	_FLD_PWRDN_PD_BIAS,4,2          ## @FLD_PWRDN_PD_BIAS
	.comm	_FLD_PWRDN_PD_TUNECK,4,2        ## @FLD_PWRDN_PD_TUNECK
	.comm	_POLARIS_AVMODE_ENXTERNAL_AV,4,2 ## @POLARIS_AVMODE_ENXTERNAL_AV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid AV mode input\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_afe_update_power_control ; -- Begin function cx231xx_afe_update_power_control
	.p2align	2
_cx231xx_afe_update_power_control:      ; @cx231xx_afe_update_power_control
	.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
	str	wzr, [sp, #12]
	ldr	w8, [x0]
	sub	w9, w8, #128
Lloh0:
	adrp	x8, _POLARIS_AVMODE_ANALOGT_TV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLARIS_AVMODE_ANALOGT_TV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, #13
	b.hi	LBB0_7
; %bb.1:
	cmp	w8, w1
	b.ne	LBB0_12
; %bb.2:
Lloh3:
	adrp	x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	cbz	w2, LBB0_6
; %bb.3:
Lloh7:
	adrp	x23, _SUP_BLK_PWRDN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SUP_BLK_PWRDN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_afe_write_byte
	mov	x20, x0
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_afe_read_byte
	orr	w8, w0, w20
	tbnz	w8, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w2, w10, w9
	cmp	w8, w2
	b.ne	LBB0_4
LBB0_6:
Lloh9:
	adrp	x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_afe_write_byte
	mov	x20, x0
Lloh12:
	adrp	x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_afe_write_byte
	orr	w20, w0, w20
	b	LBB0_29
LBB0_7:
	cmp	w8, w1
	b.ne	LBB0_18
; %bb.8:
Lloh15:
	adrp	x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGE
Lloh16:
	ldr	x21, [x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh17:
	adrp	x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGE
Lloh18:
	ldr	x22, [x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	cbz	w2, LBB0_26
; %bb.9:
Lloh19:
	adrp	x23, _SUP_BLK_PWRDN@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SUP_BLK_PWRDN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_afe_write_byte
	mov	x20, x0
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_afe_read_byte
	orr	w20, w0, w20
	tbnz	w20, #31, LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w2, w10, w9
	cmp	w8, w2
	b.ne	LBB0_10
	b	LBB0_27
LBB0_12:
Lloh21:
	adrp	x8, _POLARIS_AVMODE_DIGITAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _POLARIS_AVMODE_DIGITAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_19
; %bb.13:
Lloh24:
	adrp	x8, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_25
; %bb.14:
Lloh27:
	adrp	x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGE
Lloh28:
	ldr	x21, [x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh29:
	adrp	x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGE
Lloh30:
	ldr	x22, [x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	cbz	w2, LBB0_32
; %bb.15:
Lloh31:
	adrp	x23, _SUP_BLK_PWRDN@GOTPAGE
Lloh32:
	ldr	x23, [x23, _SUP_BLK_PWRDN@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_afe_write_byte
	mov	x20, x0
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_afe_read_byte
	orr	w20, w0, w20
	tbnz	w20, #31, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w2, w10, w9
	cmp	w8, w2
	b.ne	LBB0_16
	b	LBB0_33
LBB0_18:
Lloh33:
	adrp	x8, _POLARIS_AVMODE_DIGITAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _POLARIS_AVMODE_DIGITAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_20
LBB0_19:
Lloh36:
	adrp	x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #112
	bl	_afe_write_byte
	mov	x20, x0
Lloh39:
	adrp	x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #112
	bl	_afe_write_byte
	orr	w20, w0, w20
Lloh42:
	adrp	x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #112
	bl	_afe_write_byte
	orr	w20, w20, w0
Lloh45:
	adrp	x21, _SUP_BLK_PWRDN@GOTPAGE
Lloh46:
	ldr	x21, [x21, _SUP_BLK_PWRDN@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_afe_read_byte
	orr	w20, w20, w0
Lloh47:
	adrp	x8, _FLD_PWRDN_PD_BANDGAP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FLD_PWRDN_PD_BANDGAP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _FLD_PWRDN_PD_BIAS@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FLD_PWRDN_PD_BIAS@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh53:
	adrp	x9, _FLD_PWRDN_PD_TUNECK@GOTPAGE
Lloh54:
	ldr	x9, [x9, _FLD_PWRDN_PD_TUNECK@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	b	LBB0_30
LBB0_20:
Lloh56:
	adrp	x8, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGE
Lloh57:
	ldr	x8, [x8, _POLARIS_AVMODE_ENXTERNAL_AV@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_25
; %bb.21:
Lloh59:
	adrp	x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGE
Lloh60:
	ldr	x21, [x21, _FLD_PWRDN_TUNING_BIAS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh61:
	adrp	x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGE
Lloh62:
	ldr	x22, [x22, _FLD_PWRDN_ENABLE_PLL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	cbz	w2, LBB0_34
; %bb.22:
Lloh63:
	adrp	x23, _SUP_BLK_PWRDN@GOTPAGE
Lloh64:
	ldr	x23, [x23, _SUP_BLK_PWRDN@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_afe_write_byte
	mov	x20, x0
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_afe_read_byte
	orr	w20, w0, w20
	tbnz	w20, #31, LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w2, w10, w9
	cmp	w8, w2
	b.ne	LBB0_23
	b	LBB0_35
LBB0_25:
	ldr	w0, [x19, #4]
Lloh65:
	adrp	x1, l_.str@PAGE
Lloh66:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #-1
	b	LBB0_31
LBB0_26:
	mov	w20, #0
LBB0_27:
Lloh67:
	adrp	x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_afe_write_byte
	orr	w20, w0, w20
Lloh70:
	adrp	x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
LBB0_28:
	bl	_afe_write_byte
	orr	w20, w20, w0
LBB0_29:
Lloh73:
	adrp	x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_30:
	bl	_afe_write_byte
	orr	w0, w20, w0
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	w20, #0
LBB0_33:
Lloh76:
	adrp	x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGE
Lloh77:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_afe_write_byte
	orr	w20, w0, w20
Lloh79:
	adrp	x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGE
Lloh80:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_28
LBB0_34:
	mov	w20, #0
LBB0_35:
Lloh82:
	adrp	x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH1@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_afe_write_byte
	orr	w20, w0, w20
Lloh85:
	adrp	x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGE
Lloh86:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH2@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_afe_write_byte
	orr	w20, w20, w0
Lloh88:
	adrp	x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ADC_PWRDN_CLAMP_CH3@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_POLARIS_AVMODE_ANALOGT_TV,4,2  ; @POLARIS_AVMODE_ANALOGT_TV
	.comm	_FLD_PWRDN_TUNING_BIAS,4,2      ; @FLD_PWRDN_TUNING_BIAS
	.comm	_FLD_PWRDN_ENABLE_PLL,4,2       ; @FLD_PWRDN_ENABLE_PLL
	.comm	_SUP_BLK_PWRDN,4,2              ; @SUP_BLK_PWRDN
	.comm	_ADC_PWRDN_CLAMP_CH1,4,2        ; @ADC_PWRDN_CLAMP_CH1
	.comm	_ADC_PWRDN_CLAMP_CH2,4,2        ; @ADC_PWRDN_CLAMP_CH2
	.comm	_ADC_PWRDN_CLAMP_CH3,4,2        ; @ADC_PWRDN_CLAMP_CH3
	.comm	_POLARIS_AVMODE_DIGITAL,4,2     ; @POLARIS_AVMODE_DIGITAL
	.comm	_FLD_PWRDN_PD_BANDGAP,4,2       ; @FLD_PWRDN_PD_BANDGAP
	.comm	_FLD_PWRDN_PD_BIAS,4,2          ; @FLD_PWRDN_PD_BIAS
	.comm	_FLD_PWRDN_PD_TUNECK,4,2        ; @FLD_PWRDN_PD_TUNECK
	.comm	_POLARIS_AVMODE_ENXTERNAL_AV,4,2 ; @POLARIS_AVMODE_ENXTERNAL_AV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid AV mode input\n"

.subsections_via_symbols
