	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1938_rate_set
_snd_es1938_rate_set:                   ## @snd_es1938_rate_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	(%rax), %rsi
	movq	_clocks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rsi
	setne	%cl
	shll	$7, %ecx
	subl	8(%rax), %ecx
	movl	%edx, %esi
	movq	%rdi, %r14
	subl	$-128, %ecx
	imull	$656, 12(%rax), %edi            ## imm = 0x290
	movl	$143200000, %eax                ## imm = 0x8890F00
	xorl	%edx, %edx
	idivl	%edi
	movl	$256, %ebx                      ## imm = 0x100
	subl	%eax, %ebx
	movq	_DAC2@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$112, %esi
	movl	%ecx, %edx
	callq	_snd_es1938_mixer_write
	movq	%r14, %rdi
	movl	$114, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_es1938_mixer_write         ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	movl	$161, %esi
	movl	%ecx, %edx
	callq	_snd_es1938_write
	movq	%r14, %rdi
	movl	$162, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_es1938_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_clocks,8,3                     ## @clocks
	.comm	_DAC2,4,2                       ## @DAC2
	.no_dead_strip	_snd_es1938_rate_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1938_rate_set
_snd_es1938_rate_set:                   ; @snd_es1938_rate_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x19, x0
	ldr	x9, [x1]
	ldr	x10, [x9]
Lloh0:
	adrp	x11, _clocks@GOTPAGE
Lloh1:
	ldr	x11, [x11, _clocks@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	x11, [x11]
	cmp	x10, x11
	mov	w10, #256
	mov	w11, #128
	csel	w11, w11, w10, eq
	ldp	w12, w9, [x9, #8]
	sub	w2, w11, w12
	mov	w11, #656
	mul	w9, w9, w11
	mov	w11, #3840
	movk	w11, #2185, lsl #16
	sdiv	w9, w11, w9
	sub	w20, w10, w9
Lloh3:
	adrp	x9, _DAC2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DAC2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #112
	bl	_snd_es1938_mixer_write
	mov	x0, x19
	mov	w1, #114
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_es1938_mixer_write
LBB0_2:
	mov	w1, #161
	bl	_snd_es1938_write
	mov	x0, x19
	mov	w1, #162
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_es1938_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_clocks,8,3                     ; @clocks
	.comm	_DAC2,4,2                       ; @DAC2
	.no_dead_strip	_snd_es1938_rate_set
.subsections_via_symbols
