	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_calc_cts_n
_adv7511_calc_cts_n:                    ## @adv7511_calc_cts_n
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r8
	cmpl	$32000, %esi                    ## imm = 0x7D00
	je	LBB0_4
## %bb.1:
	cmpl	$44100, %esi                    ## imm = 0xAC44
	je	LBB0_5
## %bb.2:
	cmpl	$48000, %esi                    ## imm = 0xBB80
	jne	LBB0_3
## %bb.6:
	movl	$6144, (%rcx)                   ## imm = 0x1800
	movl	$6144, %eax                     ## imm = 0x1800
	jmp	LBB0_7
LBB0_4:
	movl	$4096, (%rcx)                   ## imm = 0x1000
	movl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_7
LBB0_5:
	movl	$6272, (%rcx)                   ## imm = 0x1880
	movl	$6272, %eax                     ## imm = 0x1880
	jmp	LBB0_7
LBB0_3:
	movl	(%rcx), %eax
LBB0_7:
	imull	%edi, %eax
	shll	$7, %esi
	xorl	%edx, %edx
	divl	%esi
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adv7511_calc_cts_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_calc_cts_n
_adv7511_calc_cts_n:                    ; @adv7511_calc_cts_n
	.cfi_startproc
; %bb.0:
	mov	w8, #32000
	cmp	w1, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #44100
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #48000
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #6144
	b	LBB0_6
LBB0_4:
	mov	w8, #4096
	b	LBB0_6
LBB0_5:
	mov	w8, #6272
LBB0_6:
	str	w8, [x3]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x3]
LBB0_8:
	mul	w8, w8, w0
	lsl	w9, w1, #7
	udiv	w8, w8, w9
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adv7511_calc_cts_n
.subsections_via_symbols
