	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx2_reset_codec
_vx2_reset_codec:                       ## @vx2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CDSP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_VX_CDSP_CODEC_RESET_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	notl	%edx
	andl	(%rdi), %edx
	callq	_vx_outl
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movl	$10, %edi
	callq	_msleep
	movl	(%rbx), %edx
	orl	(%r15), %edx
	movl	%edx, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_outl
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movq	8(%rbx), %rax
	movq	_VX_TYPE_BOARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_1:
	movl	$5, %edi
	callq	_msleep
	movq	_AKM_CODEC_POWER_CONTROL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx2_write_codec_reg
	movq	_AKM_CODEC_CLOCK_FORMAT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx2_write_codec_reg
	movq	_AKM_CODEC_MUTE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx2_write_codec_reg
	movq	_AKM_CODEC_RESET_OFF_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx2_write_codec_reg
	movq	8(%rbx), %rax
	movq	_VX_TYPE_MIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	_MICRO_SELECT_INPUT_NORM@GOTPCREL(%rip), %rax
	movq	_MICRO_SELECT_PREAMPLI_G_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MICRO_SELECT_NOISE_T_52DB@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_MICRO_SELECT_PHANTOM_ALIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, 16(%rbx)
	movq	_SELMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vx_outl                        ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDSP,4,2                       ## @CDSP
	.comm	_VX_CDSP_CODEC_RESET_MASK,4,2   ## @VX_CDSP_CODEC_RESET_MASK
	.comm	_VX_TYPE_BOARD,8,3              ## @VX_TYPE_BOARD
	.comm	_AKM_CODEC_POWER_CONTROL_CMD,4,2 ## @AKM_CODEC_POWER_CONTROL_CMD
	.comm	_AKM_CODEC_CLOCK_FORMAT_CMD,4,2 ## @AKM_CODEC_CLOCK_FORMAT_CMD
	.comm	_AKM_CODEC_MUTE_CMD,4,2         ## @AKM_CODEC_MUTE_CMD
	.comm	_AKM_CODEC_RESET_OFF_CMD,4,2    ## @AKM_CODEC_RESET_OFF_CMD
	.comm	_VX_TYPE_MIC,8,3                ## @VX_TYPE_MIC
	.comm	_MICRO_SELECT_INPUT_NORM,4,2    ## @MICRO_SELECT_INPUT_NORM
	.comm	_MICRO_SELECT_PREAMPLI_G_0,4,2  ## @MICRO_SELECT_PREAMPLI_G_0
	.comm	_MICRO_SELECT_NOISE_T_52DB,4,2  ## @MICRO_SELECT_NOISE_T_52DB
	.comm	_MICRO_SELECT_PHANTOM_ALIM,4,2  ## @MICRO_SELECT_PHANTOM_ALIM
	.comm	_SELMIC,4,2                     ## @SELMIC
	.no_dead_strip	_vx2_reset_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx2_reset_codec
_vx2_reset_codec:                       ; @vx2_reset_codec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _CDSP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CDSP@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x0]
Lloh2:
	adrp	x21, _VX_CDSP_CODEC_RESET_MASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VX_CDSP_CODEC_RESET_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	bic	w2, w8, w9
	bl	_vx_outl
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_inl
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w2, w9, w8
	str	w2, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_outl
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_inl
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _VX_TYPE_BOARD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VX_TYPE_BOARD@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_msleep
LBB0_2:
	mov	w0, #5
	bl	_msleep
Lloh7:
	adrp	x8, _AKM_CODEC_POWER_CONTROL_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AKM_CODEC_POWER_CONTROL_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx2_write_codec_reg
Lloh10:
	adrp	x8, _AKM_CODEC_CLOCK_FORMAT_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AKM_CODEC_CLOCK_FORMAT_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx2_write_codec_reg
Lloh13:
	adrp	x8, _AKM_CODEC_MUTE_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AKM_CODEC_MUTE_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx2_write_codec_reg
Lloh16:
	adrp	x8, _AKM_CODEC_RESET_OFF_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AKM_CODEC_RESET_OFF_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx2_write_codec_reg
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _VX_TYPE_MIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VX_TYPE_MIC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, _MICRO_SELECT_INPUT_NORM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MICRO_SELECT_INPUT_NORM@GOTPAGEOFF]
Lloh24:
	adrp	x9, _MICRO_SELECT_PREAMPLI_G_0@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MICRO_SELECT_PREAMPLI_G_0@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _MICRO_SELECT_NOISE_T_52DB@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MICRO_SELECT_NOISE_T_52DB@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _MICRO_SELECT_PHANTOM_ALIM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MICRO_SELECT_PHANTOM_ALIM@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	bic	w2, w8, w9
	str	w2, [x19, #16]
Lloh34:
	adrp	x8, _SELMIC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SELMIC@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vx_outl
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CDSP,4,2                       ; @CDSP
	.comm	_VX_CDSP_CODEC_RESET_MASK,4,2   ; @VX_CDSP_CODEC_RESET_MASK
	.comm	_VX_TYPE_BOARD,8,3              ; @VX_TYPE_BOARD
	.comm	_AKM_CODEC_POWER_CONTROL_CMD,4,2 ; @AKM_CODEC_POWER_CONTROL_CMD
	.comm	_AKM_CODEC_CLOCK_FORMAT_CMD,4,2 ; @AKM_CODEC_CLOCK_FORMAT_CMD
	.comm	_AKM_CODEC_MUTE_CMD,4,2         ; @AKM_CODEC_MUTE_CMD
	.comm	_AKM_CODEC_RESET_OFF_CMD,4,2    ; @AKM_CODEC_RESET_OFF_CMD
	.comm	_VX_TYPE_MIC,8,3                ; @VX_TYPE_MIC
	.comm	_MICRO_SELECT_INPUT_NORM,4,2    ; @MICRO_SELECT_INPUT_NORM
	.comm	_MICRO_SELECT_PREAMPLI_G_0,4,2  ; @MICRO_SELECT_PREAMPLI_G_0
	.comm	_MICRO_SELECT_NOISE_T_52DB,4,2  ; @MICRO_SELECT_NOISE_T_52DB
	.comm	_MICRO_SELECT_PHANTOM_ALIM,4,2  ; @MICRO_SELECT_PHANTOM_ALIM
	.comm	_SELMIC,4,2                     ; @SELMIC
	.no_dead_strip	_vx2_reset_codec
.subsections_via_symbols
