	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vx_reset_codec
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vx_reset_codec
	.p2align	4, 0x90
_vx_reset_codec:                        ## @vx_reset_codec
	.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, %r15
	movq	_VX_TYPE_VXPOCKET@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movq	24(%rdi), %rdx
	xorl	%r14d, %r14d
	cmpq	(%rax), %rcx
	setge	%bl
	callq	*8(%rdx)
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	cmpl	$0, (%rcx)
	movl	(%rax), %eax
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movb	%bl, %r14b
	shll	$4, %r14d
	orl	$101, %r14d
	xorl	%ebx, %ebx
	movq	_XX_CODEC_PORT_MODE_REGISTER@GOTPCREL(%rip), %r13
	movq	_XX_CODEC_CLOCK_CONTROL_REGISTER@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_XX_CODEC_DAC_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DAC_ATTEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vx_set_codec_reg
	movq	_XX_CODEC_ADC_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_vx_set_codec_reg
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	callq	_vx_set_codec_reg
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_vx_set_codec_reg
	incl	%ebx
	movq	16(%r15), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jb	LBB0_3
LBB0_4:
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vx_set_analog_output_level
	incq	%rbx
	movq	16(%r15), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_TYPE_VXPOCKET,8,3           ## @VX_TYPE_VXPOCKET
	.comm	_XX_CODEC_DAC_CONTROL_REGISTER,4,2 ## @XX_CODEC_DAC_CONTROL_REGISTER
	.comm	_DAC_ATTEN_MAX,4,2              ## @DAC_ATTEN_MAX
	.comm	_XX_CODEC_ADC_CONTROL_REGISTER,4,2 ## @XX_CODEC_ADC_CONTROL_REGISTER
	.comm	_XX_CODEC_PORT_MODE_REGISTER,4,2 ## @XX_CODEC_PORT_MODE_REGISTER
	.comm	_XX_CODEC_CLOCK_CONTROL_REGISTER,4,2 ## @XX_CODEC_CLOCK_CONTROL_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vx_reset_codec                 ; -- Begin function vx_reset_codec
	.p2align	2
_vx_reset_codec:                        ; @vx_reset_codec
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VX_TYPE_VXPOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_TYPE_VXPOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #117
	mov	w9, #101
	csel	w20, w9, w8, lt
	ldr	x8, [x0, #24]
	ldr	x8, [x8, #8]
	blr	x8
	ldp	x9, x8, [x19, #16]
	ldr	w10, [x8]
	ldr	w8, [x9]
	cbnz	w10, LBB0_4
; %bb.1:
	cbz	w8, LBB0_7
; %bb.2:
	mov	w21, #0
Lloh3:
	adrp	x22, _XX_CODEC_DAC_CONTROL_REGISTER@GOTPAGE
Lloh4:
	ldr	x22, [x22, _XX_CODEC_DAC_CONTROL_REGISTER@GOTPAGEOFF]
Lloh5:
	adrp	x23, _DAC_ATTEN_MAX@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DAC_ATTEN_MAX@GOTPAGEOFF]
Lloh7:
	adrp	x24, _XX_CODEC_ADC_CONTROL_REGISTER@GOTPAGE
Lloh8:
	ldr	x24, [x24, _XX_CODEC_ADC_CONTROL_REGISTER@GOTPAGEOFF]
Lloh9:
	adrp	x25, _XX_CODEC_PORT_MODE_REGISTER@GOTPAGE
Lloh10:
	ldr	x25, [x25, _XX_CODEC_PORT_MODE_REGISTER@GOTPAGEOFF]
Lloh11:
	adrp	x26, _XX_CODEC_CLOCK_CONTROL_REGISTER@GOTPAGE
Lloh12:
	ldr	x26, [x26, _XX_CODEC_CLOCK_CONTROL_REGISTER@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_vx_set_codec_reg
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_vx_set_codec_reg
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_vx_set_codec_reg
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_vx_set_codec_reg
	add	w21, w21, #1
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lo	LBB0_3
LBB0_4:
	cbz	w8, LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	stp	xzr, xzr, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_vx_set_analog_output_level
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_TYPE_VXPOCKET,8,3           ; @VX_TYPE_VXPOCKET
	.comm	_XX_CODEC_DAC_CONTROL_REGISTER,4,2 ; @XX_CODEC_DAC_CONTROL_REGISTER
	.comm	_DAC_ATTEN_MAX,4,2              ; @DAC_ATTEN_MAX
	.comm	_XX_CODEC_ADC_CONTROL_REGISTER,4,2 ; @XX_CODEC_ADC_CONTROL_REGISTER
	.comm	_XX_CODEC_PORT_MODE_REGISTER,4,2 ; @XX_CODEC_PORT_MODE_REGISTER
	.comm	_XX_CODEC_CLOCK_CONTROL_REGISTER,4,2 ; @XX_CODEC_CLOCK_CONTROL_REGISTER
.subsections_via_symbols
