	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tas_reset_init
_tas_reset_init:                        ## @tas_reset_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	(%rdi), %rax
	callq	*16(%rax)
	movl	$5, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	*8(%rax)
	movl	$5, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movl	$1, %esi
	callq	*8(%rax)
	movl	$20, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	xorl	%esi, %esi
	callq	*8(%rax)
	movl	$10, %edi
	callq	_msleep
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	_TAS_MCS_SCLK64@GOTPCREL(%rip), %rax
	movq	_TAS_MCS_SPORT_MODE_I2S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TAS_MCS_SPORT_WL_24BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movq	_TAS_REG_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tas_write_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_TAS_ACR_ANALOG_PDOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movq	_TAS_REG_ACR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_tas_write_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	$0, -36(%rbp)
	movq	_TAS_REG_MCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tas_write_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_tas3004_set_drc
	movq	_TAS3004_TREBLE_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_TAS3004_BASS_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_tas_set_treble
	movq	%rbx, %rdi
	callq	_tas_set_bass
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_tas_write_reg
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TAS_MCS_SCLK64,4,2             ## @TAS_MCS_SCLK64
	.comm	_TAS_MCS_SPORT_MODE_I2S,4,2     ## @TAS_MCS_SPORT_MODE_I2S
	.comm	_TAS_MCS_SPORT_WL_24BIT,4,2     ## @TAS_MCS_SPORT_WL_24BIT
	.comm	_TAS_REG_MCS,4,2                ## @TAS_REG_MCS
	.comm	_TAS_ACR_ANALOG_PDOWN,4,2       ## @TAS_ACR_ANALOG_PDOWN
	.comm	_TAS_REG_ACR,4,2                ## @TAS_REG_ACR
	.comm	_TAS_REG_MCS2,4,2               ## @TAS_REG_MCS2
	.comm	_TAS3004_TREBLE_ZERO,4,2        ## @TAS3004_TREBLE_ZERO
	.comm	_TAS3004_BASS_ZERO,4,2          ## @TAS3004_BASS_ZERO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_tas_reset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tas_reset_init
_tas_reset_init:                        ; @tas_reset_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x0, [x0, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	blr	x8
	mov	w0, #5
	bl	_msleep
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w1, #0
	blr	x8
	mov	w0, #5
	bl	_msleep
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w1, #1
	blr	x8
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	mov	w1, #0
	blr	x8
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh0:
	adrp	x8, _TAS_MCS_SCLK64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAS_MCS_SCLK64@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TAS_MCS_SPORT_MODE_I2S@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TAS_MCS_SPORT_MODE_I2S@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TAS_MCS_SPORT_WL_24BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TAS_MCS_SPORT_WL_24BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
Lloh9:
	adrp	x8, _TAS_REG_MCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TAS_REG_MCS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_tas_write_reg
	cbnz	x0, LBB0_4
; %bb.1:
Lloh12:
	adrp	x20, _TAS_ACR_ANALOG_PDOWN@GOTPAGE
Lloh13:
	ldr	x20, [x20, _TAS_ACR_ANALOG_PDOWN@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh14:
	adrp	x21, _TAS_REG_ACR@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TAS_REG_ACR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x19
	bl	_tas_write_reg
	cbnz	x0, LBB0_4
; %bb.2:
	str	wzr, [sp, #12]
Lloh16:
	adrp	x8, _TAS_REG_MCS2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TAS_REG_MCS2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_tas_write_reg
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_tas3004_set_drc
Lloh19:
	adrp	x8, _TAS3004_TREBLE_ZERO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TAS3004_TREBLE_ZERO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _TAS3004_BASS_ZERO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TAS3004_BASS_ZERO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_tas_set_treble
	mov	x0, x19
	bl	_tas_set_bass
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x19
	bl	_tas_write_reg
	cbz	x0, LBB0_5
LBB0_4:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TAS_MCS_SCLK64,4,2             ; @TAS_MCS_SCLK64
	.comm	_TAS_MCS_SPORT_MODE_I2S,4,2     ; @TAS_MCS_SPORT_MODE_I2S
	.comm	_TAS_MCS_SPORT_WL_24BIT,4,2     ; @TAS_MCS_SPORT_WL_24BIT
	.comm	_TAS_REG_MCS,4,2                ; @TAS_REG_MCS
	.comm	_TAS_ACR_ANALOG_PDOWN,4,2       ; @TAS_ACR_ANALOG_PDOWN
	.comm	_TAS_REG_ACR,4,2                ; @TAS_REG_ACR
	.comm	_TAS_REG_MCS2,4,2               ; @TAS_REG_MCS2
	.comm	_TAS3004_TREBLE_ZERO,4,2        ; @TAS3004_TREBLE_ZERO
	.comm	_TAS3004_BASS_ZERO,4,2          ; @TAS3004_BASS_ZERO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_tas_reset_init
.subsections_via_symbols
