	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prog_clk
_prog_clk:                              ## @prog_clk
	.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	%rdx, %r14
	movl	%esi, %r13d
	callq	_nouveau_dev
	movq	%rax, %r12
	cmpl	$6, %r13d
	jg	LBB0_3
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_3
## %bb.2:
	leal	1274320(,%r13,4), %esi
	movl	4(%r14), %ecx
	movq	%r12, %rdi
	movl	$-2147467457, %edx              ## imm = 0x80003F3F
	callq	_nv_mask
	leal	1274208(,%r13,4), %esi
	movl	16(%r14), %edx
	movq	%r12, %rdi
	callq	_nv_wr32
LBB0_3:
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movq	%r12, %rdi
	movl	$1274112, %esi                  ## imm = 0x137100
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movq	%r12, %rdi
	movl	$1274112, %esi                  ## imm = 0x137100
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_nv_wait
	cmpl	$6, %r13d
	jg	LBB0_8
## %bb.4:
	movl	%r13d, %r15d
	shll	$5, %r15d
	leal	1273856(%r15), %esi
	movq	%r12, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_nv_rd32
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
LBB0_6:
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.7:
	addl	$1273860, %r15d                 ## imm = 0x137004
	movl	12(%r14), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nv_mask
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$131072, %edx                   ## imm = 0x20000
	movl	$131072, %ecx                   ## imm = 0x20000
	callq	_nv_wait
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$131076, %edx                   ## imm = 0x20004
	movl	$4, %ecx
	callq	_nv_mask
LBB0_8:
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$1274112, %esi                  ## imm = 0x137100
	movl	%ebx, %edx
	callq	_nv_mask
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$1274112, %esi                  ## imm = 0x137100
	movl	%ebx, %edx
	callq	_nv_wait
	leal	1274448(,%r13,4), %esi
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	movl	$16191, %edx                    ## imm = 0x3F3F
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_mask                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_prog_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prog_clk
_prog_clk:                              ; @prog_clk
	.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, x2
	mov	x20, x1
	mov	w24, #28928
	movk	w24, #19, lsl #16
	bl	_nouveau_dev
	mov	x21, x0
	cmp	w20, #6
	b.gt	LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
	add	w22, w24, w20, lsl #2
	add	w1, w22, #208
	ldr	w3, [x19, #4]
	mov	x0, x21
	mov	w2, #16191
	movk	w2, #32768, lsl #16
	bl	_nv_mask
	add	w1, w22, #96
	ldr	w2, [x19, #16]
	mov	x0, x21
	bl	_nv_wr32
LBB0_3:
	mov	w8, #1
	lsl	w22, w8, w20
	mov	x0, x21
	mov	w1, #28928
	movk	w1, #19, lsl #16
	mov	x2, x22
	mov	w3, #0
	bl	_nv_mask
	mov	x0, x21
	mov	w1, #28928
	movk	w1, #19, lsl #16
	mov	x2, x22
	mov	w3, #0
	bl	_nv_wait
	cmp	w20, #6
	b.gt	LBB0_8
; %bb.4:
	lsl	w25, w20, #5
	add	w8, w24, w25
	sub	w23, w8, #256
	mov	x0, x21
	mov	x1, x23
	bl	_nv_rd32
	tbz	w0, #0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	mov	w3, #0
	bl	_nv_mask
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	mov	w3, #0
	bl	_nv_mask
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
	add	w8, w24, w25
	sub	w1, w8, #252
	ldr	w2, [x19, #12]
	mov	x0, x21
	bl	_nv_wr32
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	mov	w3, #1
	bl	_nv_mask
	mov	x0, x21
	mov	x1, x23
	mov	w2, #131072
	mov	w3, #131072
	bl	_nv_wait
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	movk	w2, #2, lsl #16
	mov	w3, #4
	bl	_nv_mask
LBB0_8:
	ldr	w3, [x19]
	mov	x0, x21
	mov	w1, #28928
	movk	w1, #19, lsl #16
	mov	x2, x22
	bl	_nv_mask
	ldr	w3, [x19]
	mov	x0, x21
	mov	w1, #28928
	movk	w1, #19, lsl #16
	mov	x2, x22
	bl	_nv_wait
	add	w8, w24, w20, lsl #2
	add	w1, w8, #336
	ldr	w3, [x19, #8]
	mov	x0, x21
	mov	w2, #16191
	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	_nv_mask
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_prog_clk
.subsections_via_symbols
