	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_reset_board
_vx_reset_board:                        ## @vx_reset_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_VX_AUDIO_SRC_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	%eax, 32(%rbx)
	movq	_INTERNAL_QUARTZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_VX_CLOCK_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$48000, (%rbx)                  ## imm = 0xBB80
	movq	_VX_UER_MODE_NOT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_vx_reset_codec
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_vx_set_internal_clock
	movq	%rbx, %rdi
	callq	_vx_reset_dsp
	movq	%rbx, %rdi
	callq	_vx_is_pcmcia
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_vx_test_and_ack
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vx_validate_irq
LBB0_5:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vx_set_iec958_status           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_AUDIO_SRC_LINE,4,2          ## @VX_AUDIO_SRC_LINE
	.comm	_INTERNAL_QUARTZ,4,2            ## @INTERNAL_QUARTZ
	.comm	_VX_CLOCK_MODE_AUTO,4,2         ## @VX_CLOCK_MODE_AUTO
	.comm	_VX_UER_MODE_NOT_PRESENT,4,2    ## @VX_UER_MODE_NOT_PRESENT
	.comm	_SNDRV_PCM_DEFAULT_CON_SPDIF,4,2 ## @SNDRV_PCM_DEFAULT_CON_SPDIF
	.no_dead_strip	_vx_reset_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_reset_board
_vx_reset_board:                        ; @vx_reset_board
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _VX_AUDIO_SRC_LINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VX_AUDIO_SRC_LINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	cbz	w20, LBB0_4
; %bb.3:
	str	w8, [x19, #32]
Lloh3:
	adrp	x8, _INTERNAL_QUARTZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTERNAL_QUARTZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh6:
	adrp	x8, _VX_CLOCK_MODE_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VX_CLOCK_MODE_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #48000
	str	w9, [x19]
Lloh9:
	adrp	x9, _VX_UER_MODE_NOT_PRESENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VX_UER_MODE_NOT_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh12:
	adrp	x8, _SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x19
	mov	x1, x20
	bl	_vx_reset_codec
	ldr	w1, [x19]
	mov	x0, x19
	bl	_vx_set_internal_clock
	mov	x0, x19
	bl	_vx_reset_dsp
	mov	x0, x19
	bl	_vx_is_pcmcia
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vx_test_and_ack
	mov	x0, x19
	mov	w1, #1
	bl	_vx_validate_irq
LBB0_6:
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vx_set_iec958_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_AUDIO_SRC_LINE,4,2          ; @VX_AUDIO_SRC_LINE
	.comm	_INTERNAL_QUARTZ,4,2            ; @INTERNAL_QUARTZ
	.comm	_VX_CLOCK_MODE_AUTO,4,2         ; @VX_CLOCK_MODE_AUTO
	.comm	_VX_UER_MODE_NOT_PRESENT,4,2    ; @VX_UER_MODE_NOT_PRESENT
	.comm	_SNDRV_PCM_DEFAULT_CON_SPDIF,4,2 ; @SNDRV_PCM_DEFAULT_CON_SPDIF
	.no_dead_strip	_vx_reset_board
.subsections_via_symbols
