	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_loadfw                 ## -- Begin function cx18_av_loadfw
	.p2align	4, 0x90
_cx18_av_loadfw:                        ## @cx18_av_loadfw
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %rbx
	movq	$0, -48(%rbp)
	movq	_FWFILE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	(%rdi), %rdx
	leaq	-48(%rbp), %rdi
	callq	_request_firmware
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_CX18_ERR_DEV
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	_CXADEC_DL_CTL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_CXADEC_CHIP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	movl	$33840, %ecx                    ## imm = 0x8430
	movl	$-1, %r8d
	callq	_cx18_av_write4_expect
	movq	_CXADEC_STD_DET_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$246, %edx
	movl	$246, %ecx
	movl	$255, %r8d
	callq	_cx18_av_write_expect
	movq	%r12, %rdi
	movl	$33024, %esi                    ## imm = 0x8100
	movl	$65536, %edx                    ## imm = 0x10000
	movl	$33840, %ecx                    ## imm = 0x8430
	movl	$-1, %r8d
	callq	_cx18_av_write4_expect
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_cx18_av_write4_noretry
	movq	-48(%rbp), %rax
	movl	(%rax), %ecx
	movl	$0, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_CX18_MAX_MMIO_WR_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%eax, %eax
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,8), %ebx
	shll	$16, %ebx
	orl	%r14d, %ebx
	orl	$251658240, %ebx                ## imm = 0xF000000
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_cx18_av_write4_noretry
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cx18_av_read4
	cmpl	%ebx, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	xorl	%r14d, %eax
	testl	$16128, %eax                    ## imm = 0x3F00
	jne	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	incl	%r15d
	movq	_CX18_MAX_MMIO_WR_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jl	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r15d, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%eax, %r15d
	jl	LBB0_14
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_CX18_MAX_MMIO_WR_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jge	LBB0_23
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_15
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	cmpl	$5, %eax
	jne	LBB0_2
	jmp	LBB0_25
LBB0_15:
	cmpl	$5, -72(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_16
LBB0_25:
	movq	_FWFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_CX18_ERR_DEV
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r13), %esi
	movq	-48(%rbp), %rax
	movl	$50331648, %ecx                 ## imm = 0x3000000
	movl	(%rax), %edx
	orl	%ecx, %edx
	movl	$318767104, %ebx                ## imm = 0x13000000
	movq	%r12, %rdi
	movl	$50331648, %ecx                 ## imm = 0x3000000
	movl	$318767104, %r8d                ## imm = 0x13000000
	callq	_cx18_av_write4_expect
	movq	_FWFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_CX18_INFO_DEV
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_cx18_av_verifyfw
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movl	(%r13), %esi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	%r12, %rdi
	movl	$318767104, %ecx                ## imm = 0x13000000
	movl	$318767104, %r8d                ## imm = 0x13000000
	callq	_cx18_av_write4_expect
LBB0_18:
	movq	_CXADEC_PIN_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	movl	$491520, %ecx                   ## imm = 0x78000
	callq	_cx18_av_and_or4
	movq	_CXADEC_I2S_IN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$160, %edx
	callq	_cx18_av_write4
	movq	_CXADEC_I2S_OUT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$416, %edx                      ## imm = 0x1A0
	callq	_cx18_av_write4
	movq	_CXADEC_PIN_CFG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1442887303, %edx               ## imm = 0x5600B687
	callq	_cx18_av_write4
	movq	_CXADEC_STD_DET_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$246, %edx
	movl	$246, %ecx
	movl	$1057030143, %r8d               ## imm = 0x3F00FFFF
	callq	_cx18_av_write4_expect
	movq	%r12, %rdi
	movl	$2508, %esi                     ## imm = 0x9CC
	movl	$1, %edx
	callq	_cx18_av_write4
	movq	_CX18_AUDIO_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cx18_read_reg
	testl	$2048, %eax                     ## imm = 0x800
	je	LBB0_20
## %bb.19:
	andl	$-1025, %eax                    ## imm = 0xFBFF
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_cx18_write_reg_expect
LBB0_20:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cx18_read_reg
	movq	_CX18_AI1_MUX_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r8d, %ebx
	andl	%eax, %ebx
	movl	%r8d, %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	_CX18_AI1_MUX_843_I2S@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	je	LBB0_22
## %bb.21:
	movq	_CX18_AI1_MUX_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_22
## %bb.26:
	orl	%eax, %r14d
	movl	%r14d, %esi
	orl	$2816, %esi                     ## imm = 0xB00
	movq	%rdx, %r15
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_cx18_write_reg_expect
	movl	(%r15), %r8d
	movl	%r8d, %ecx
	notl	%ecx
	andl	%r14d, %ecx
	orl	%ebx, %ecx
	jmp	LBB0_27
LBB0_22:
	movq	_CX18_AI1_MUX_I2S1@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	orl	$2816, %esi                     ## imm = 0xB00
	movq	%rdx, %rbx
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_cx18_write_reg_expect
	movl	(%rbx), %r8d
	movl	%r8d, %ecx
	notl	%ecx
	andl	%r14d, %ecx
	orl	(%r15), %ecx
LBB0_27:
	movl	%ecx, %esi
	orl	$2816, %esi                     ## imm = 0xB00
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_cx18_write_reg_expect
	movq	_CXADEC_STD_DET_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_cx18_av_read4
	orl	$335545599, %eax                ## imm = 0x140004FF
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%eax, %ecx
	movl	$1057030143, %r8d               ## imm = 0x3F00FFFF
	callq	_cx18_av_write4_expect
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	xorl	%eax, %eax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_FWFILE,4,2                     ## @FWFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to open firmware %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXADEC_CHIP_CTRL,4,2           ## @CXADEC_CHIP_CTRL
	.comm	_CXADEC_STD_DET_CTL,4,2         ## @CXADEC_STD_DET_CTL
	.comm	_CXADEC_DL_CTL,4,2              ## @CXADEC_DL_CTL
	.comm	_CX18_MAX_MMIO_WR_RETRIES,4,2   ## @CX18_MAX_MMIO_WR_RETRIES
L_.str.1:                               ## @.str.1
	.asciz	"unable to load firmware %s\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"loaded %s firmware (%d bytes)\n"

	.comm	_CXADEC_PIN_CTRL1,4,2           ## @CXADEC_PIN_CTRL1
	.comm	_CXADEC_I2S_IN_CTL,4,2          ## @CXADEC_I2S_IN_CTL
	.comm	_CXADEC_I2S_OUT_CTL,4,2         ## @CXADEC_I2S_OUT_CTL
	.comm	_CXADEC_PIN_CFG3,4,2            ## @CXADEC_PIN_CFG3
	.comm	_CX18_AUDIO_ENABLE,4,2          ## @CX18_AUDIO_ENABLE
	.comm	_CX18_AI1_MUX_MASK,4,2          ## @CX18_AI1_MUX_MASK
	.comm	_CX18_AI1_MUX_843_I2S,4,2       ## @CX18_AI1_MUX_843_I2S
	.comm	_CX18_AI1_MUX_INVALID,4,2       ## @CX18_AI1_MUX_INVALID
	.comm	_CX18_AI1_MUX_I2S1,4,2          ## @CX18_AI1_MUX_I2S1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_loadfw                 ; -- Begin function cx18_av_loadfw
	.p2align	2
_cx18_av_loadfw:                        ; @cx18_av_loadfw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	mov	x20, x0
	ldr	x2, [x20], #8
	str	xzr, [sp, #8]
Lloh0:
	adrp	x21, _FWFILE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FWFILE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_request_firmware
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_CX18_ERR_DEV
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_2:
	mov	w26, #0
Lloh6:
	adrp	x25, _CXADEC_DL_CTL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CXADEC_DL_CTL@GOTPAGEOFF]
Lloh8:
	adrp	x28, _CX18_MAX_MMIO_WR_RETRIES@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CX18_MAX_MMIO_WR_RETRIES@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
Lloh10:
	adrp	x8, _CXADEC_CHIP_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CXADEC_CHIP_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65536
	mov	w3, #33840
	mov	w4, #-1
	bl	_cx18_av_write4_expect
Lloh13:
	adrp	x8, _CXADEC_STD_DET_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CXADEC_STD_DET_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #246
	mov	w3, #246
	mov	w4, #255
	bl	_cx18_av_write_expect
	mov	x0, x19
	mov	w1, #33024
	mov	w2, #65536
	mov	w3, #33840
	mov	w4, #-1
	bl	_cx18_av_write4_expect
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #251658240
	bl	_cx18_av_write4_noretry
	ldr	x8, [sp, #8]
	ldr	w21, [x8]
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	ldr	x24, [x8, #8]
	ldr	w8, [x28]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w27, #0
	ldr	x8, [x24, x23, lsl #3]
	orr	w8, w23, w8, lsl #16
	orr	w22, w8, #0xf000000
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_cx18_av_write4_noretry
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_cx18_av_read4
	cmp	w0, w22
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	eor	w8, w0, w23
	tst	w8, #0x3f00
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=3
	add	w27, w27, #1
	ldr	w8, [x28]
	cmp	w27, w8
	b.lt	LBB0_7
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w27, #0
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w27, w8
	b.lt	LBB0_13
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x28]
	cmp	w27, w8
	b.ge	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x23, x23, #1
	cmp	x23, x21
	b.ne	LBB0_5
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, w21
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	cmp	w26, #5
	b.ne	LBB0_3
	b	LBB0_18
LBB0_17:
	cmp	w26, #5
	b.lo	LBB0_21
LBB0_18:
Lloh16:
	adrp	x8, _FWFILE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FWFILE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_CX18_ERR_DEV
	ldr	x0, [sp, #8]
	bl	_release_firmware
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	ldr	w1, [x25]
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	orr	w2, w8, #0x3000000
	mov	w22, #318767104
	mov	x0, x19
	mov	w3, #50331648
	mov	w4, #318767104
	bl	_cx18_av_write4_expect
Lloh23:
	adrp	x8, _FWFILE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FWFILE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_CX18_INFO_DEV
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_cx18_av_verifyfw
	cbnz	x0, LBB0_23
; %bb.22:
	ldr	w1, [x25]
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x19
	mov	w3, #318767104
	mov	w4, #318767104
	bl	_cx18_av_write4_expect
LBB0_23:
Lloh28:
	adrp	x8, _CXADEC_PIN_CTRL1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CXADEC_PIN_CTRL1@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	mov	w3, #491520
	bl	_cx18_av_and_or4
Lloh31:
	adrp	x8, _CXADEC_I2S_IN_CTL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CXADEC_I2S_IN_CTL@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #160
	bl	_cx18_av_write4
Lloh34:
	adrp	x8, _CXADEC_I2S_OUT_CTL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CXADEC_I2S_OUT_CTL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #416
	bl	_cx18_av_write4
Lloh37:
	adrp	x8, _CXADEC_PIN_CFG3@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CXADEC_PIN_CFG3@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #46727
	movk	w2, #22016, lsl #16
	bl	_cx18_av_write4
Lloh40:
	adrp	x8, _CXADEC_STD_DET_CTL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CXADEC_STD_DET_CTL@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #246
	mov	w3, #246
	mov	w4, #1057030143
	bl	_cx18_av_write4_expect
	mov	x0, x19
	mov	w1, #2508
	mov	w2, #1
	bl	_cx18_av_write4
Lloh43:
	adrp	x21, _CX18_AUDIO_ENABLE@GOTPAGE
Lloh44:
	ldr	x21, [x21, _CX18_AUDIO_ENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cx18_read_reg
	tbz	w0, #11, LBB0_25
; %bb.24:
	and	w1, w0, #0xfffffbff
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1024
	bl	_cx18_write_reg_expect
LBB0_25:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cx18_read_reg
Lloh45:
	adrp	x22, _CX18_AI1_MUX_MASK@GOTPAGE
Lloh46:
	ldr	x22, [x22, _CX18_AI1_MUX_MASK@GOTPAGEOFF]
	ldr	w4, [x22]
	and	w23, w4, w0
	bic	w8, w0, w4
Lloh47:
	adrp	x24, _CX18_AI1_MUX_843_I2S@GOTPAGE
Lloh48:
	ldr	x24, [x24, _CX18_AI1_MUX_843_I2S@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w23, w9
	b.eq	LBB0_28
; %bb.26:
Lloh49:
	adrp	x10, _CX18_AI1_MUX_INVALID@GOTPAGE
Lloh50:
	ldr	x10, [x10, _CX18_AI1_MUX_INVALID@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	cmp	w23, w10
	b.eq	LBB0_28
; %bb.27:
	orr	w20, w8, w9
	mov	w8, #2816
	orr	w1, w20, w8
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_cx18_write_reg_expect
	ldr	w4, [x22]
	bic	w8, w20, w4
	orr	w3, w8, w23
	b	LBB0_29
LBB0_28:
Lloh52:
	adrp	x9, _CX18_AI1_MUX_I2S1@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CX18_AI1_MUX_I2S1@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	w8, #2816
	orr	w1, w20, w8
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_cx18_write_reg_expect
	ldr	w4, [x22]
	bic	w8, w20, w4
	ldr	w9, [x24]
	orr	w3, w8, w9
LBB0_29:
	mov	w8, #2816
	orr	w1, w3, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_cx18_write_reg_expect
Lloh55:
	adrp	x20, _CXADEC_STD_DET_CTL@GOTPAGE
Lloh56:
	ldr	x20, [x20, _CXADEC_STD_DET_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cx18_av_read4
	mov	w8, #1279
	movk	w8, #5120, lsl #16
	orr	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #1057030143
	bl	_cx18_av_write4_expect
	ldr	x0, [sp, #8]
	bl	_release_firmware
	mov	w0, #0
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_FWFILE,4,2                     ; @FWFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to open firmware %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXADEC_CHIP_CTRL,4,2           ; @CXADEC_CHIP_CTRL
	.comm	_CXADEC_STD_DET_CTL,4,2         ; @CXADEC_STD_DET_CTL
	.comm	_CXADEC_DL_CTL,4,2              ; @CXADEC_DL_CTL
	.comm	_CX18_MAX_MMIO_WR_RETRIES,4,2   ; @CX18_MAX_MMIO_WR_RETRIES
l_.str.1:                               ; @.str.1
	.asciz	"unable to load firmware %s\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"loaded %s firmware (%d bytes)\n"

	.comm	_CXADEC_PIN_CTRL1,4,2           ; @CXADEC_PIN_CTRL1
	.comm	_CXADEC_I2S_IN_CTL,4,2          ; @CXADEC_I2S_IN_CTL
	.comm	_CXADEC_I2S_OUT_CTL,4,2         ; @CXADEC_I2S_OUT_CTL
	.comm	_CXADEC_PIN_CFG3,4,2            ; @CXADEC_PIN_CFG3
	.comm	_CX18_AUDIO_ENABLE,4,2          ; @CX18_AUDIO_ENABLE
	.comm	_CX18_AI1_MUX_MASK,4,2          ; @CX18_AI1_MUX_MASK
	.comm	_CX18_AI1_MUX_843_I2S,4,2       ; @CX18_AI1_MUX_843_I2S
	.comm	_CX18_AI1_MUX_INVALID,4,2       ; @CX18_AI1_MUX_INVALID
	.comm	_CX18_AI1_MUX_I2S1,4,2          ; @CX18_AI1_MUX_I2S1
.subsections_via_symbols
