	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_pll_hsdiv_calc_a           ## -- Begin function dss_pll_hsdiv_calc_a
	.p2align	4, 0x90
_dss_pll_hsdiv_calc_a:                  ## @dss_pll_hsdiv_calc_a
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	testq	%rdx, %rdx
	movl	$1, %eax
	cmoveq	%rax, %rbx
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_2:
	movq	(%rdi), %r12
	movq	%r13, %rdi
	movq	%rcx, %rsi
	callq	_DIV_ROUND_UP
	movl	$1, %esi
	movl	%eax, %edi
	callq	_max
	movq	%r13, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_5
LBB0_3:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r12d
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r12d, %ecx
	jg	LBB0_14
## %bb.6:
	movslq	%ecx, %rbx
	incl	%r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	*%r15
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_pll_hsdiv_calc_a           ; -- Begin function dss_pll_hsdiv_calc_a
	.p2align	2
_dss_pll_hsdiv_calc_a:                  ; @dss_pll_hsdiv_calc_a
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x1
	ldr	x23, [x0]
	cmp	x2, #0
	csinc	x24, x2, xzr, ne
Lloh0:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x3, #0
	csel	x1, x8, x3, eq
	mov	x0, x21
	bl	_DIV_ROUND_UP
	mov	w1, #1
	bl	_max
	mov	x22, x0
	ldr	w1, [x23]
	udiv	x0, x21, x24
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
	cmp	w22, w0
	b.gt	LBB0_4
; %bb.1:
	sxtw	x22, w22
	add	w23, w0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	udiv	x1, x21, x22
	mov	x0, x22
	mov	x2, x19
	blr	x20
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	w23, w22
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
.subsections_via_symbols
