	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_pll_calc_a                 ## -- Begin function dss_pll_calc_a
	.p2align	4, 0x90
_dss_pll_calc_a:                        ## @dss_pll_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %esi
	movq	%r13, %rdi
	callq	_DIV_ROUND_UP
	movl	$1, %esi
	movq	%rax, %rdi
	callq	_max
	movl	%eax, %r15d
	movq	%r13, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %rdi
	jmp	LBB0_3
LBB0_1:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %edi
LBB0_3:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	36(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_min
	movl	%eax, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.5:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_swap
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	testq	%r12, %r12
	jne	LBB0_8
LBB0_7:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_8:
	xorl	%eax, %eax
	cmpl	%r14d, %r15d
	je	LBB0_29
## %bb.9:
	movslq	%r15d, %rdi
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	cmpl	%edi, -52(%rbp)                 ## 4-byte Folded Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_28
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movq	%r13, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rax, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_DIV_ROUND_UP
	movl	$1, %esi
	movq	%rax, %rdi
	callq	_max
	movl	%eax, %r15d
	movq	%r12, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %rdi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %edi
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shrq	%rdi
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %rsi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %esi
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	shrq	%rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edx
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_min3
	movl	%eax, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_swap
	movl	$4294967295, %ebx               ## imm = 0xFFFFFFFF
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %ebx
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	%r14d, %r15d
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %r12d
	addl	%r15d, %r12d
	leal	(%rbx,%rbx), %r13d
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r12d, %rcx
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	imulq	%rdx, %rcx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	callq	*-112(%rbp)                     ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_25 Depth=2
	addl	%ebx, %r15d
	addl	%r13d, %r12d
	cmpl	%r15d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_25
	jmp	LBB0_27
LBB0_26:
	movl	$1, %eax
LBB0_29:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_7
	jmp	LBB0_8
LBB0_28:
	xorl	%eax, %eax
	jmp	LBB0_29
	.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_calc_a                 ; -- Begin function dss_pll_calc_a
	.p2align	2
_dss_pll_calc_a:                        ; @dss_pll_calc_a
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	mov	x20, x4
	mov	x24, x3
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	mov	x22, x1
	ldr	x28, [x0]
	ldp	x8, x21, [x28]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w1, [x28, #16]
	mov	x0, x22
	bl	_DIV_ROUND_UP
	mov	w8, #1
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w1, #1
	bl	_max
	mov	x25, x0
	ldr	w1, [x28, #36]
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	udiv	x0, x22, x21
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
	mov	x21, x0
	ldr	x8, [x28, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x25
	mov	x1, x21
	bl	_swap
	mov	x8, #-1
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
LBB0_2:
Lloh0:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x24, #0
	csel	x8, x8, x24, eq
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w25, w21
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	sxtw	x24, w25
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	w21, [sp, #4]                   ; 4-byte Folded Reload
	cmp	w21, w24
	b.eq	LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldp	x8, x0, [sp, #24]               ; 16-byte Folded Reload
	udiv	x25, x8, x24
	mov	x1, x25
	bl	_DIV_ROUND_UP
	mov	w1, #2
	bl	_DIV_ROUND_UP
	mov	w1, #1
	bl	_max
	mov	x26, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	udiv	x8, x8, x25
	lsr	x0, x8, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	udiv	x8, x8, x25
	lsr	x1, x8, #1
	ldr	w2, [x28, #32]
                                        ; kill: def $w0 killed $w0 killed $x0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_min3
	mov	x27, x0
	ldr	x8, [x28, #24]
	mov	w21, #1
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	mov	x1, x27
	bl	_swap
	mov	w21, #-1
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, w27
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w23, w26, #1
	lsl	w22, w21, #1
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x8, w23
	mul	x3, x25, x8
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	mov	x4, x19
	blr	x20
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w23, w23, w22
	add	w26, w26, w21
	cmp	w27, w26
	b.ne	LBB0_10
	b	LBB0_5
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
.subsections_via_symbols
