	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_set_freq           ## -- Begin function snd_tea575x_set_freq
	.p2align	4, 0x90
_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	leal	15(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$4, %esi
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_TEA575X_BIT_BAND_FM@GOTPCREL(%rip), %rax
	movq	_TEA575X_FMIF@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
	jmp	LBB0_4
LBB0_5:
	movq	_TEA575X_BIT_BAND_FM@GOTPCREL(%rip), %rax
	movq	_TEA575X_FMIF@GOTPCREL(%rip), %rcx
	subl	(%rcx), %esi
LBB0_4:
	movl	(%rax), %eax
	addl	%esi, %esi
	leal	(%rsi,%rsi,4), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$35, %rsi
	addl	%ecx, %esi
	jmp	LBB0_7
LBB0_6:
	movq	_TEA575X_BIT_BAND_MW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TEA575X_AMIF@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
LBB0_7:
	movq	_TEA575X_BIT_FREQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_TEA575X_BIT_BAND_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	notl	%edx
	andl	8(%rbx), %edx
	orl	%eax, %edx
	andl	%ecx, %esi
	orl	%edx, %esi
	movl	%esi, 8(%rbx)
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_snd_tea575x_write
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_snd_tea575x_val_to_freq
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA575X_BIT_BAND_FM,4,2        ## @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_FMIF,4,2               ## @TEA575X_FMIF
	.comm	_TEA575X_BIT_BAND_MW,4,2        ## @TEA575X_BIT_BAND_MW
	.comm	_TEA575X_AMIF,4,2               ## @TEA575X_AMIF
	.comm	_TEA575X_BIT_FREQ_MASK,4,2      ## @TEA575X_BIT_FREQ_MASK
	.comm	_TEA575X_BIT_BAND_MASK,4,2      ## @TEA575X_BIT_BAND_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_tea575x_set_freq           ; -- Begin function snd_tea575x_set_freq
	.p2align	2
_snd_tea575x_set_freq:                  ; @snd_tea575x_set_freq
	.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	x19, x0
	ldp	w8, w9, [x0]
	add	w10, w8, #15
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #4
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, _TEA575X_BIT_BAND_FM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TEA575X_BIT_BAND_FM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TEA575X_FMIF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TEA575X_FMIF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w10, w8
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x9, _TEA575X_BIT_BAND_FM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEA575X_BIT_BAND_FM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _TEA575X_FMIF@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TEA575X_FMIF@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	sub	w8, w8, w10
LBB0_5:
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w10
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x9, _TEA575X_BIT_BAND_MW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TEA575X_BIT_BAND_MW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TEA575X_AMIF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TEA575X_AMIF@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	add	w8, w10, w8
	b	LBB0_8
LBB0_7:
	mov	w9, #0
LBB0_8:
Lloh18:
	adrp	x10, _TEA575X_BIT_FREQ_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TEA575X_BIT_FREQ_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _TEA575X_BIT_BAND_MASK@GOTPAGE
Lloh22:
	ldr	x11, [x11, _TEA575X_BIT_BAND_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	orr	w11, w11, w10
	ldr	w12, [x19, #8]
	bic	w11, w12, w11
	and	w8, w10, w8
	orr	w8, w8, w9
	orr	w1, w8, w11
	str	w1, [x19, #8]
	mov	x0, x19
	bl	_snd_tea575x_write
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_snd_tea575x_val_to_freq
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA575X_BIT_BAND_FM,4,2        ; @TEA575X_BIT_BAND_FM
	.comm	_TEA575X_FMIF,4,2               ; @TEA575X_FMIF
	.comm	_TEA575X_BIT_BAND_MW,4,2        ; @TEA575X_BIT_BAND_MW
	.comm	_TEA575X_AMIF,4,2               ; @TEA575X_AMIF
	.comm	_TEA575X_BIT_FREQ_MASK,4,2      ; @TEA575X_BIT_FREQ_MASK
	.comm	_TEA575X_BIT_BAND_MASK,4,2      ; @TEA575X_BIT_BAND_MASK
.subsections_via_symbols
