	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp34xxg_reset
_msp34xxg_reset:                        ## @msp34xxg_reset
	.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, %r15
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r14
	movl	(%rax), %ebx
	movl	$1, 4(%rax)
	movq	%r15, %rdi
	callq	_msp_reset
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_msp_write_dem
LBB0_2:
	movq	%r15, %rdi
	callq	_msp34xxg_modus
	andl	$8, %ebx
	shll	$5, %ebx
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$48, %esi
	movl	%ebx, %edx
	callq	_msp_write_dem
	movq	%r15, %rdi
	callq	_msp34xxg_set_sources
	movq	%r15, %rdi
	movl	$13, %esi
	movl	$6400, %edx                     ## imm = 0x1900
	callq	_msp_write_dsp
	movq	%r15, %rdi
	movl	$14, %esi
	movl	$12288, %edx                    ## imm = 0x3000
	callq	_msp_write_dsp
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$23040, %edx                    ## imm = 0x5A00
	callq	_msp_write_dsp
LBB0_4:
	movq	_msp_stereo_thresh@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$34, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msp_write_dem                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msp_stereo_thresh,4,2          ## @msp_stereo_thresh
	.no_dead_strip	_msp34xxg_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp34xxg_reset
_msp34xxg_reset:                        ; @msp34xxg_reset
	.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
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
	ldr	w21, [x0]
	mov	w8, #1
	str	w8, [x0, #4]
	mov	x0, x19
	bl	_msp_reset
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #64
	bl	_msp_write_dem
LBB0_2:
	mov	x0, x19
	bl	_msp34xxg_modus
	lsl	w8, w21, #5
	and	w8, w8, #0x100
	orr	w2, w0, w8
	mov	x0, x19
	mov	w1, #48
	bl	_msp_write_dem
	mov	x0, x19
	bl	_msp34xxg_set_sources
	mov	x0, x19
	mov	w1, #13
	mov	w2, #6400
	bl	_msp_write_dsp
	mov	x0, x19
	mov	w1, #14
	mov	w2, #12288
	bl	_msp_write_dsp
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #23040
	bl	_msp_write_dsp
LBB0_4:
Lloh0:
	adrp	x8, _msp_stereo_thresh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msp_stereo_thresh@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #34
	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	_msp_write_dem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_msp_stereo_thresh,4,2          ; @msp_stereo_thresh
	.no_dead_strip	_msp34xxg_reset
.subsections_via_symbols
