	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdsp_dds_offset
_hdsp_dds_offset:                       ## @hdsp_dds_offset
	.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
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	4(%rdi), %ebx
	movq	_DDS_NUMERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_div_u64
	xorl	%edx, %edx
	cmpl	$56000, %ebx                    ## imm = 0xDAC0
	setge	%dl
	cmpl	$112000, %ebx                   ## imm = 0x1B580
	movl	$2, %ecx
	cmovll	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	subl	%ebx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDS_NUMERATOR,4,2              ## @DDS_NUMERATOR
	.no_dead_strip	_hdsp_dds_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdsp_dds_offset
_hdsp_dds_offset:                       ; @hdsp_dds_offset
	.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	w1, [x0]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w19, [x0, #4]
Lloh0:
	adrp	x8, _DDS_NUMERATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDS_NUMERATOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_div_u64
	mov	w8, #55999
	cmp	w19, w8
	cset	w8, gt
	mov	w9, #46463
	movk	w9, #1, lsl #16
	mov	w10, #2
	cmp	w19, w9
	csel	w8, w10, w8, gt
	lsl	w8, w0, w8
	sub	w0, w8, w19
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DDS_NUMERATOR,4,2              ; @DDS_NUMERATOR
	.no_dead_strip	_hdsp_dds_offset
.subsections_via_symbols
