	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prog_core
_prog_core:                             ## @prog_core
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r13
	movslq	%esi, %r15
	movq	%r14, %rdi
	movl	$1048620, %esi                  ## imm = 0x10002C
	callq	_nvkm_rd32
	movq	%rax, %r12
	movq	(%r13,%r15,8), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1048620, %esi                  ## imm = 0x10002C
	callq	_nvkm_wr32
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16896, %edx                    ## imm = 0x4200
	movl	%r15d, %ecx
	callq	_prog_pll
	movq	(%r13,%r15,8), %rdx
	cmpq	%rdx, %r12
	jle	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$1048620, %esi                  ## imm = 0x10002C
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_prog_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prog_core
_prog_core:                             ; @prog_core
	.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	x20, x1
	mov	x21, x0
	sxtw	x23, w20
	ldp	x19, x24, [x0]
	mov	x0, x19
	mov	w1, #44
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x22, x0
	ldr	x2, [x24, w20, sxtw #3]
	cmp	x0, x2
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #44
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16896
	mov	x3, x20
	bl	_prog_pll
	ldr	x2, [x24, x23, lsl #3]
	cmp	x22, x2
	b.le	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #44
	movk	w1, #16, lsl #16
	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
	b	_nvkm_wr32
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_prog_core
.subsections_via_symbols
