	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm20_setfreq
_pcm20_setfreq:                         ## @pcm20_setfreq
	.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	(%rdi), %r14
	movl	(%r14), %edx
	cmpl	$176, %edx
	movl	$160, %esi
	movl	$1600, %ecx                     ## imm = 0x640
	cmovgeq	%rsi, %rcx
	cmpl	$7, %edx
	cmoveq	%rsi, %rcx
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_3:
	movq	_RDS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rds_cmd
	movq	_ACI_WRITE_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movzbl	%bh, %ecx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_aci_cmd                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDS_RESET,4,2                  ## @RDS_RESET
	.comm	_ACI_WRITE_TUNE,4,2             ## @ACI_WRITE_TUNE
	.no_dead_strip	_pcm20_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm20_setfreq
_pcm20_setfreq:                         ; @pcm20_setfreq
	.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
	ldr	x19, [x0]
	ldr	w8, [x19]
	cmp	w8, #175
	ccmp	w8, #7, #4, le
	mov	w8, #1600
	mov	w9, #160
	csel	x8, x9, x8, eq
	udiv	x20, x1, x8
Lloh0:
	adrp	x8, _RDS_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_rds_cmd
Lloh3:
	adrp	x8, _ACI_WRITE_TUNE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACI_WRITE_TUNE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w2, w20, #0xff
	ubfx	w3, w20, #8, #8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_aci_cmd
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDS_RESET,4,2                  ; @RDS_RESET
	.comm	_ACI_WRITE_TUNE,4,2             ; @ACI_WRITE_TUNE
	.no_dead_strip	_pcm20_setfreq
.subsections_via_symbols
