	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nforce2_calc_pll
_nforce2_calc_pll:                      ## @nforce2_calc_pll
	.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
                                        ## kill: def $edi killed $edi def $rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_3 Depth 3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax), %r14d
	movb	$2, %cl
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_3 Depth 3
	movb	$1, %bl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	%bl, %ebx
	movzbl	%cl, %r15d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_NFORCE2_PLL
	movl	%eax, %edi
	callq	_nforce2_calc_fsb
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	cmpl	%r14d, %eax
	movzbl	%r13b, %r13d
	cmovel	%ebx, %r13d
	movzbl	%r12b, %r12d
	cmovel	%r15d, %r12d
	incb	%bl
	cmpb	$-1, %bl
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	incb	%cl
	cmpb	$-127, %cl
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%r13b, %r13b
	sete	%cl
	testb	%r12b, %r12b
	sete	%al
	orb	%cl, %al
	cmpb	$1, %al
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rdx), %ecx
	cmpl	$3, %edx
                                        ## kill: def $ecx killed $ecx def $rcx
	jb	LBB0_1
LBB0_7:
	testb	%al, %al
	je	LBB0_9
## %bb.8:
	movl	$-1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movzbl	%r13b, %edi
	movzbl	%r12b, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NFORCE2_PLL                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nforce2_calc_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nforce2_calc_pll
_nforce2_calc_pll:                      ; @nforce2_calc_pll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	mov	w20, #0
	mov	w21, #0
	mov	w22, #2
	mov	w23, #-2
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	w24, #1
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w24, #0xff
	and	w1, w22, #0xff
	bl	_NFORCE2_PLL
	bl	_nforce2_calc_fsb
	cmp	w0, w19
	csel	w21, w24, w21, eq
	csel	w20, w22, w20, eq
	add	w24, w24, #1
	mvn	w8, w24
	tst	w8, #0xff
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w23, w22, sxtb
	add	w22, w22, #1
	b.lt	LBB0_1
; %bb.4:
	tst	w21, #0xff
	cset	w8, eq
	tst	w20, #0xff
	cset	w9, eq
	orr	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.5:
	add	w22, w19, #1
	mov	w24, #2
	mov	w23, #-2
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	w25, #1
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w25, #0xff
	and	w1, w24, #0xff
	bl	_NFORCE2_PLL
	bl	_nforce2_calc_fsb
	cmp	w0, w22
	csel	w21, w25, w21, eq
	csel	w20, w24, w20, eq
	add	w25, w25, #1
	mvn	w8, w25
	tst	w8, #0xff
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, w24, sxtb
	add	w24, w24, #1
	b.lt	LBB0_6
; %bb.9:
	tst	w21, #0xff
	cset	w8, eq
	tst	w20, #0xff
	cset	w9, eq
	orr	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.10:
	add	w22, w19, #2
	mov	w24, #2
	mov	w23, #-2
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	w25, #1
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w25, #0xff
	and	w1, w24, #0xff
	bl	_NFORCE2_PLL
	bl	_nforce2_calc_fsb
	cmp	w0, w22
	csel	w21, w25, w21, eq
	csel	w20, w24, w20, eq
	add	w25, w25, #1
	mvn	w8, w25
	tst	w8, #0xff
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w23, w24, sxtb
	add	w24, w24, #1
	b.lt	LBB0_11
; %bb.14:
	tst	w21, #0xff
	cset	w8, eq
	tst	w20, #0xff
	cset	w9, eq
	orr	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.15:
	add	w19, w19, #3
	mov	w23, #2
	mov	w22, #-2
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	w24, #1
LBB0_17:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w24, #0xff
	and	w1, w23, #0xff
	bl	_NFORCE2_PLL
	bl	_nforce2_calc_fsb
	cmp	w0, w19
	csel	w21, w24, w21, eq
	csel	w20, w23, w20, eq
	add	w24, w24, #1
	mvn	w8, w24
	tst	w8, #0xff
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w22, w23, sxtb
	add	w23, w23, #1
	b.lt	LBB0_16
; %bb.19:
	tst	w21, #0xff
	cset	w8, eq
	tst	w20, #0xff
	cset	w9, eq
	orr	w8, w8, w9
LBB0_20:
	tbz	w8, #0, LBB0_22
; %bb.21:
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	and	w0, w21, #0xff
	and	w1, w20, #0xff
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_NFORCE2_PLL
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nforce2_calc_pll
.subsections_via_symbols
