	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_div_calc                   ## -- Begin function dss_div_calc
	.p2align	4, 0x90
_dss_div_calc:                          ## @dss_div_calc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.5:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rcx), %r15d
	movq	%rdx, %rdi
	callq	_clk_get_rate
	testq	%rbx, %rbx
	movl	$1, %ecx
	cmovneq	%rbx, %rcx
	movq	%rax, %r12
	movq	%rax, %r13
	imulq	%r15, %r13
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_1:
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_6:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DIV_ROUND_UP
	movl	$1, %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, %r13d
	xorl	%eax, %eax
	cmpl	%r13d, %ebx
	jl	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	imull	%r15d, %eax
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*%r14
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-1(%rbx), %eax
	cmpl	%r13d, %ebx
	movl	%eax, %ebx
	jg	LBB0_9
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, %eax
	imulq	%rsi, %rax
	movl	16(%rdi), %edi
	movq	%rax, %rsi
	callq	_clk_round_rate
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_div_calc                   ; -- Begin function dss_div_calc
	.p2align	2
_dss_div_calc:                          ; @dss_div_calc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x8, x0
	ldp	x0, x9, [x0]
	ldr	x22, [x9]
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x2
	ldr	x23, [x9, #8]
	ldr	w25, [x9, #16]
	bl	_clk_get_rate
	mov	x20, x0
	cmp	x21, #0
	csinc	x8, x21, xzr, ne
	mul	x24, x0, x25
	udiv	x0, x24, x8
	mov	x1, x23
	bl	_min
	mov	x21, x0
	mov	x0, x24
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	w1, #1
	bl	_max
	cmp	w21, w0
	b.lt	LBB0_5
; %bb.2:
	mov	x22, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_DIV_ROUND_UP
	mul	w0, w0, w25
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	blr	x2
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w21, #1
	cmp	w21, w22
	mov	x21, x8
	b.gt	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	udiv	x9, x22, x1
	and	x9, x9, #0xffffffff
	mul	x1, x9, x1
	ldr	w0, [x8, #16]
	bl	_clk_round_rate
	mov	x1, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x2
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
