	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function juli_akm_set_rate_val
_juli_akm_set_rate_val:                 ## @juli_akm_set_rate_val
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	16(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$96001, %esi                    ## imm = 0x17701
	jb	LBB0_3
## %bb.2:
	movq	_GPIO_AK5385A_DFS1@GOTPCREL(%rip), %rax
	movq	_GPIO_AK5385A_CKS0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movb	$32, -41(%rbp)                  ## 1-byte Folded Spill
	jmp	LBB0_6
LBB0_7:
	retq
LBB0_3:
	xorl	%r15d, %r15d
	cmpl	$48001, %esi                    ## imm = 0xBB81
	setae	%cl
	jb	LBB0_5
## %bb.4:
	movq	_GPIO_AK5385A_DFS0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	shlb	$4, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
LBB0_6:
	movq	%r13, %rdi
	callq	*(%r13)
	movq	_GPIO_AK5385A_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	orl	%r15d, %esi
	movq	%r13, %rdi
	callq	*8(%r13)
	movq	_AC97_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ICEMT1724
	movl	%eax, %edi
	callq	_inb
	movl	%eax, %r15d
	movq	_VT1724_AC97_COLD@GOTPCREL(%rip), %rax
	movb	(%rax), %r12b
	orb	%r15b, %r12b
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ICEMT1724
	movzbl	%r12b, %edi
	movl	%eax, %esi
	callq	_outb
	movl	$1, %edi
	callq	_udelay
	movq	_VT1724_AC97_COLD@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	notb	%bl
	andb	%r15b, %bl
	movq	_AC97_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ICEMT1724
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outb
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_snd_akm4xxx_get
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_snd_akm4xxx_reset
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_snd_akm4xxx_get
	andb	$-49, %al
	orb	-41(%rbp), %al                  ## 1-byte Folded Reload
	movzbl	%al, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_snd_akm4xxx_set
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_akm4xxx_reset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ak4114_reinit              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_AK5385A_DFS1,4,2          ## @GPIO_AK5385A_DFS1
	.comm	_GPIO_AK5385A_CKS0,4,2          ## @GPIO_AK5385A_CKS0
	.comm	_GPIO_AK5385A_DFS0,4,2          ## @GPIO_AK5385A_DFS0
	.comm	_GPIO_AK5385A_MASK,4,2          ## @GPIO_AK5385A_MASK
	.comm	_AC97_CMD,4,2                   ## @AC97_CMD
	.comm	_VT1724_AC97_COLD,1,0           ## @VT1724_AC97_COLD
	.no_dead_strip	_juli_akm_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 juli_akm_set_rate_val
_juli_akm_set_rate_val:                 ; @juli_akm_set_rate_val
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x22, [x20, #16]
	mov	w8, #30465
	movk	w8, #1, lsl #16
	cmp	w1, w8
	b.lo	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GPIO_AK5385A_DFS1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_AK5385A_DFS1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GPIO_AK5385A_CKS0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GPIO_AK5385A_CKS0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	w23, #32
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
LBB0_4:
	.cfi_restore_state
Lloh6:
	adrp	x8, _GPIO_AK5385A_DFS0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_AK5385A_DFS0@GOTPAGEOFF]
	mov	w9, #48000
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w9
	csel	w21, w8, wzr, hi
	cset	w8, hi
	lsl	w23, w8, #4
LBB0_5:
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
Lloh9:
	adrp	x8, _GPIO_AK5385A_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIO_AK5385A_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w1, w8, w21
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
Lloh12:
	adrp	x24, _AC97_CMD@GOTPAGE
Lloh13:
	ldr	x24, [x24, _AC97_CMD@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ICEMT1724
	bl	_inb
	mov	x21, x0
Lloh14:
	adrp	x25, _VT1724_AC97_COLD@GOTPAGE
Lloh15:
	ldr	x25, [x25, _VT1724_AC97_COLD@GOTPAGEOFF]
	ldrb	w8, [x25]
	orr	w26, w8, w0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ICEMT1724
	mov	x1, x0
	and	w0, w26, #0xff
	bl	_outb
	mov	w0, #1
	bl	_udelay
	ldrb	w8, [x25]
	bic	w21, w21, w8
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ICEMT1724
	mov	x1, x0
	mov	x0, x21
	bl	_outb
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_snd_akm4xxx_get
	mov	x0, x19
	mov	w1, #1
	bl	_snd_akm4xxx_reset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_snd_akm4xxx_get
	and	w8, w0, #0xffffffcf
	orr	w3, w8, w23
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2
	bl	_snd_akm4xxx_set
	mov	x0, x19
	mov	w1, #0
	bl	_snd_akm4xxx_reset
	ldr	w0, [x22]
	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_ak4114_reinit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_AK5385A_DFS1,4,2          ; @GPIO_AK5385A_DFS1
	.comm	_GPIO_AK5385A_CKS0,4,2          ; @GPIO_AK5385A_CKS0
	.comm	_GPIO_AK5385A_DFS0,4,2          ; @GPIO_AK5385A_DFS0
	.comm	_GPIO_AK5385A_MASK,4,2          ; @GPIO_AK5385A_MASK
	.comm	_AC97_CMD,4,2                   ; @AC97_CMD
	.comm	_VT1724_AC97_COLD,1,0           ; @VT1724_AC97_COLD
	.no_dead_strip	_juli_akm_set_rate_val
.subsections_via_symbols
