	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ak4396_params
_set_ak4396_params:                     ## @set_ak4396_params
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_AK4396_CONTROL_2@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_AK4396_DFS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	notl	%r14d
	andl	(%rax,%rcx,4), %r14d
	movq	%rsi, %rdi
	callq	_params_rate
	cmpl	$54001, %eax                    ## imm = 0xD2F1
	jge	LBB0_2
## %bb.1:
	movq	_AK4396_DFS_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_params_rate
	cmpl	$108001, %eax                   ## imm = 0x1A5E1
	jge	LBB0_3
## %bb.4:
	movq	_AK4396_DFS_DOUBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_AK4396_DFS_QUAD@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %r14d
	movl	$1, %edi
	callq	_msleep
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	cmpl	(%rax,%rcx,4), %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$0, 8(%rdx)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	_AK4396_CONTROL_1@GOTPCREL(%rip), %r13
	movq	_AK4396_DIF_24_MSB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ak4396_write
	movq	_AK4396_CONTROL_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	callq	_ak4396_write
	movq	(%r13), %rdx
	movq	_AK4396_RSTN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ak4396_write
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %ebx
	jb	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4396_CONTROL_2,8,3           ## @AK4396_CONTROL_2
	.comm	_AK4396_DFS_MASK,4,2            ## @AK4396_DFS_MASK
	.comm	_AK4396_DFS_NORMAL,4,2          ## @AK4396_DFS_NORMAL
	.comm	_AK4396_DFS_DOUBLE,4,2          ## @AK4396_DFS_DOUBLE
	.comm	_AK4396_DFS_QUAD,4,2            ## @AK4396_DFS_QUAD
	.comm	_AK4396_CONTROL_1,8,3           ## @AK4396_CONTROL_1
	.comm	_AK4396_DIF_24_MSB,4,2          ## @AK4396_DIF_24_MSB
	.comm	_AK4396_RSTN,4,2                ## @AK4396_RSTN
	.no_dead_strip	_set_ak4396_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ak4396_params
_set_ak4396_params:                     ; @set_ak4396_params
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _AK4396_CONTROL_2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AK4396_CONTROL_2@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x9, _AK4396_DFS_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AK4396_DFS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w21, w8, w9
	mov	x0, x1
	bl	_params_rate
	mov	w8, #54001
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AK4396_DFS_NORMAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AK4396_DFS_NORMAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_params_rate
Lloh7:
	adrp	x8, _AK4396_DFS_QUAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AK4396_DFS_QUAD@GOTPAGEOFF]
Lloh9:
	adrp	x9, _AK4396_DFS_DOUBLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AK4396_DFS_DOUBLE@GOTPAGEOFF]
	mov	w10, #42465
	movk	w10, #1, lsl #16
	cmp	w0, w10
	csel	x8, x9, x8, lt
LBB0_3:
	ldr	w8, [x8]
	orr	w20, w8, w21
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w20, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_7
; %bb.5:
	mov	w21, #0
Lloh11:
	adrp	x24, _AK4396_CONTROL_1@GOTPAGE
Lloh12:
	ldr	x24, [x24, _AK4396_CONTROL_1@GOTPAGEOFF]
Lloh13:
	adrp	x25, _AK4396_DIF_24_MSB@GOTPAGE
Lloh14:
	ldr	x25, [x25, _AK4396_DIF_24_MSB@GOTPAGEOFF]
Lloh15:
	adrp	x26, _AK4396_RSTN@GOTPAGE
Lloh16:
	ldr	x26, [x26, _AK4396_RSTN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_ak4396_write
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_ak4396_write
	ldr	x2, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_ak4396_write
	add	w21, w21, #1
	ldr	w8, [x22, #8]
	cmp	w21, w8
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4396_CONTROL_2,8,3           ; @AK4396_CONTROL_2
	.comm	_AK4396_DFS_MASK,4,2            ; @AK4396_DFS_MASK
	.comm	_AK4396_DFS_NORMAL,4,2          ; @AK4396_DFS_NORMAL
	.comm	_AK4396_DFS_DOUBLE,4,2          ; @AK4396_DFS_DOUBLE
	.comm	_AK4396_DFS_QUAD,4,2            ; @AK4396_DFS_QUAD
	.comm	_AK4396_CONTROL_1,8,3           ; @AK4396_CONTROL_1
	.comm	_AK4396_DIF_24_MSB,4,2          ; @AK4396_DIF_24_MSB
	.comm	_AK4396_RSTN,4,2                ; @AK4396_RSTN
	.no_dead_strip	_set_ak4396_params
.subsections_via_symbols
