	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_hda_cts_n
_get_hda_cts_n:                         ## @get_hda_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	shll	$7, %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rbx
	imulq	$91625969, %rbx, %r12           ## imm = 0x57619F1
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$37, %r12
	addl	%eax, %r12d
	imulq	$458129845, %rbx, %r14          ## imm = 0x1B4E81B5
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$37, %r14
	addl	%eax, %r14d
	movl	$100, %edi
	callq	_TO_FFP
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_TO_FFP
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	$0, (%r13)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rcx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %r12d
	jle	LBB0_1
LBB0_8:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	imulq	$274877907, %rbx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	negl	%edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r12), %r13d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_TO_FFP
	imull	%r12d, %eax
	cltd
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	idivl	%r14d
	movl	%eax, %ebx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	(%rbx,%rax), %edi
	callq	_TO_INT
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_TO_FFP
	movl	%eax, %ecx
	movq	%rbx, %rax
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	subl	%ecx, %eax
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	movl	$24000000, %edi                 ## imm = 0x16E3600
	callq	_TO_FFP
	imull	%r12d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_TO_INT
	movl	%eax, %r15d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_abs
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	subl	-128(%rbp), %edi                ## 4-byte Folded Reload
	callq	_abs
	movq	%rax, %r13
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_TO_FFP
	cmpl	%r14d, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, -144(%rbp)                ## 8-byte Folded Reload
	setl	%al
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	sete	%cl
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andb	%al, %cl
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -136(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_hda_cts_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_hda_cts_n
_get_hda_cts_n:                         ; @get_hda_cts_n
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	lsl	w10, w0, #7
	mov	w8, #6641
	movk	w8, #1398, lsl #16
	smull	x8, w10, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w23, w8, w9
	mov	w8, #33205
	movk	w8, #6990, lsl #16
	stp	w1, w10, [sp, #48]              ; 8-byte Folded Spill
	smull	x8, w10, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w19, w8, w9
	mov	w0, #100
	bl	_TO_FFP
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	w0, #1
	bl	_TO_FFP
	str	x21, [sp, #56]                  ; 8-byte Folded Spill
	str	wzr, [x21]
	cmp	w0, #0
	cinc	w8, w0, lt
	stp	x22, x20, [sp, #8]              ; 16-byte Folded Spill
	str	wzr, [x22]
	str	wzr, [x20]
	cmp	w23, w19
	b.le	LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	asr	w11, w8, #1
	add	w8, w19, #1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	add	w8, w9, w10
	stp	w8, w11, [sp, #40]              ; 8-byte Folded Spill
	neg	w8, w8
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w8, w23
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w24, w8, w23
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_TO_FFP
	mul	w8, w0, w23
	ldr	w19, [sp, #52]                  ; 4-byte Folded Reload
	sdiv	w20, w8, w19
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	add	w0, w20, w8
	bl	_TO_INT
	mov	x25, x0
	bl	_TO_FFP
	mov	x26, x0
	subs	w8, w20, w0
	cneg	w22, w8, mi
	mov	w0, #13824
	movk	w0, #366, lsl #16
	bl	_TO_FFP
	mul	w8, w0, w23
	sdiv	w21, w8, w19
	mov	x0, x21
	bl	_TO_INT
	mov	x27, x0
	mov	x0, x24
	bl	_abs
	mov	x28, x0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	sub	w0, w8, w9
	bl	_abs
	mov	x19, x0
	mov	x0, x27
	bl	_TO_FFP
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x19
	cset	w8, lt
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w22, w9
	cset	w9, eq
	and	w8, w9, w8
	ccmp	w8, #0, #0, ge
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	w23, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w25, [x8]
	str	w22, [sp, #28]                  ; 4-byte Folded Spill
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w27, [x8]
	cmp	w20, w26
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w24, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_hda_cts_n
.subsections_via_symbols
