	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_tea575x_set_freq
_snd_tea575x_set_freq:                  ## @snd_tea575x_set_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	cmpl	$108000, %ecx                   ## imm = 0x1A5E0
	movl	$108000, %eax                   ## imm = 0x1A5E0
	cmovbl	%ecx, %eax
	cmpl	$87001, %eax                    ## imm = 0x153D9
	movl	$87000, %ecx                    ## imm = 0x153D8
	cmovael	%eax, %ecx
	movq	24(%rdi), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmpq	$0, 32(%rdi)
	cmoveq	%rax, %rdx
	addq	%rcx, %rdx
	addq	%rdx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	movabsq	$442721857769029239, %rcx       ## imm = 0x624DD2F1A9FBE77
	movq	%rsi, %rax
	mulq	%rcx
	subq	%rdx, %rsi
	shrq	%rsi
	addq	%rdx, %rsi
	shrq	$6, %rsi
	movq	_TEA575X_BIT_FREQ_MASK@GOTPCREL(%rip), %rax
	movq	8(%rdi), %rcx
	xorq	%rcx, %rsi
	andq	(%rax), %rsi
	xorq	%rcx, %rsi
	movq	%rsi, 8(%rdi)
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA575X_BIT_FREQ_MASK,8,3      ## @TEA575X_BIT_FREQ_MASK
	.no_dead_strip	_snd_tea575x_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_tea575x_set_freq
_snd_tea575x_set_freq:                  ; @snd_tea575x_set_freq
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	mov	w9, #42464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	csel	w8, w8, w9, lo
	mov	w9, #21464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	csel	w8, w8, w9, hi
	ldp	x10, x9, [x0, #24]
	cmp	x9, #0
	cneg	x9, x10, ne
	add	x8, x9, x8
	add	x8, x8, x8, lsl #2
	lsl	x8, x8, #1
	mov	x9, #48759
	movk	x9, #6815, lsl #16
	movk	x9, #56623, lsl #32
	movk	x9, #1572, lsl #48
	umulh	x9, x8, x9
	sub	x8, x8, x9
	add	x8, x9, x8, lsr #1
Lloh0:
	adrp	x9, _TEA575X_BIT_FREQ_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TEA575X_BIT_FREQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x10, x11, [x0, #8]
	bic	x10, x10, x9
	and	x8, x9, x8, lsr #6
	orr	x1, x10, x8
	str	x1, [x0, #8]
	ldr	x2, [x11]
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA575X_BIT_FREQ_MASK,8,3      ; @TEA575X_BIT_FREQ_MASK
	.no_dead_strip	_snd_tea575x_set_freq
.subsections_via_symbols
