	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_ak4524_set_rate_val
_delta_ak4524_set_rate_val:             ## @delta_ak4524_set_rate_val
	.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
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_ice1712_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_ICE1712_DELTA_DFS@GOTPCREL(%rip), %r13
	movb	(%r13), %al
	movl	%eax, %ecx
	notb	%cl
	andb	%bl, %cl
	orb	%bl, %al
	cmpl	$48001, %r15d                   ## imm = 0xBB81
	movzbl	%al, %eax
	movzbl	%cl, %ecx
	cmovael	%eax, %ecx
	cmpb	%cl, %bl
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_snd_akm4xxx_reset
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_ice1712_read
	movb	(%r13), %cl
	movl	%ecx, %edx
	notb	%dl
	andb	%al, %dl
	orb	%al, %cl
	cmpl	$48001, %r15d                   ## imm = 0xBB81
	movzbl	%cl, %eax
	movzbl	%dl, %ecx
	cmovael	%eax, %ecx
	movl	(%rbx), %esi
	movzbl	%cl, %edx
	movq	%r12, %rdi
	callq	_snd_ice1712_write
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_akm4xxx_reset              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ## @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_DELTA_DFS,1,0          ## @ICE1712_DELTA_DFS
	.no_dead_strip	_delta_ak4524_set_rate_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_ak4524_set_rate_val
_delta_ak4524_set_rate_val:             ; @delta_ak4524_set_rate_val
	.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
	cbz	w1, LBB0_2
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _ICE1712_IREG_GPIO_DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ICE1712_IREG_GPIO_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_snd_ice1712_read
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
Lloh2:
	adrp	x24, _ICE1712_DELTA_DFS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ICE1712_DELTA_DFS@GOTPAGEOFF]
	ldrb	w8, [x24]
	bic	w9, w22, w8
	orr	w8, w8, w22
	mov	w25, #48000
	cmp	w21, w25
	csel	w8, w8, w9, hi
	cmp	w22, w8, uxtb
	b.ne	LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_akm4xxx_reset
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [x23]
	mov	x0, x20
	bl	_snd_ice1712_read
	ldrb	w8, [x24]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w21, w25
	csel	w8, w8, w9, hi
	ldr	w1, [x23]
	and	w2, w8, #0xff
	mov	x0, x20
	bl	_snd_ice1712_write
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	mov	w1, #0
	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
	b	_snd_akm4xxx_reset
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ; @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_DELTA_DFS,1,0          ; @ICE1712_DELTA_DFS
	.no_dead_strip	_delta_ak4524_set_rate_val
.subsections_via_symbols
