	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prog_host
_prog_host:                             ## @prog_host
	.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, %r13
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	movq	_nv_clk_src_host@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movl	(%rbx,%r12,4), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.2:
	testl	$805306368, %r15d               ## imm = 0x30000000
	jne	LBB0_6
## %bb.3:
	orl	$536870912, %r15d               ## imm = 0x20000000
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$16788, %esi                    ## imm = 0x4194
	callq	_disable_clk_src
	jmp	LBB0_6
LBB0_4:
	movq	_nv_clk_src_host@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	movl	$29, %esi
	callq	_prog_clk
	testl	$536870912, %r15d               ## imm = 0x20000000
	je	LBB0_6
## %bb.5:
	andl	$-805306369, %r15d              ## imm = 0xCFFFFFFF
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%r15d, %edx
	callq	_nvkm_wr32
LBB0_6:
	movq	%r14, %rdi
	movl	$49220, %esi                    ## imm = 0xC044
	movl	$62, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nv_clk_src_host,8,3            ## @nv_clk_src_host
	.no_dead_strip	_prog_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prog_host
_prog_host:                             ; @prog_host
	.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, x0
Lloh0:
	adrp	x22, _nv_clk_src_host@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nv_clk_src_host@GOTPAGEOFF]
	ldr	x23, [x22]
	ldp	x19, x24, [x0]
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_rd32
	mov	x21, x0
	ldr	w8, [x24, x23, lsl #2]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	and	w8, w21, #0x30000000
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_5
; %bb.2:
	orr	w2, w21, #0x20000000
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_wr32
	mov	x0, x20
	mov	w1, #16788
	bl	_disable_clk_src
	b	LBB0_5
LBB0_3:
	ldr	x2, [x22]
	mov	x0, x20
	mov	w1, #29
	bl	_prog_clk
	tbz	w21, #29, LBB0_5
; %bb.4:
	and	w2, w21, #0xcfffffff
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_wr32
LBB0_5:
	mov	x0, x19
	mov	w1, #49220
	mov	w2, #62
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nv_clk_src_host,8,3            ; @nv_clk_src_host
	.no_dead_strip	_prog_host
.subsections_via_symbols
