	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_code
_pmu_code:                              ## @pmu_code
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %r15
	movq	(%r15), %r13
	xorl	%edx, %edx
	testl	%r8d, %r8d
	setne	%dl
	shll	$28, %edx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	orl	%esi, %edx
	orl	$16777216, %edx                 ## imm = 0x1000000
	movq	%r15, %rdi
	movl	$1089920, %esi                  ## imm = 0x10A180
	callq	_nvkm_wr32
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rbx,%r12), %esi
	movq	%r13, %rdi
	callq	_nvbios_rd32
	movq	%r15, %rdi
	movl	$1089924, %esi                  ## imm = 0x10A184
	movl	%eax, %edx
	callq	_nvkm_wr32
	addl	$4, %r12d
	cmpl	%r14d, %r12d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$-4, %r12b
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	movl	$1089928, %esi                  ## imm = 0x10A188
	callq	_nvkm_wr32
	jmp	LBB0_4
LBB0_5:
	testb	$-4, %r12b
	je	LBB0_8
## %bb.6:
	addl	$4, %r12d
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1089924, %esi                  ## imm = 0x10A184
	xorl	%edx, %edx
	callq	_nvkm_wr32
	addl	$4, %ebx
	testb	$-4, %r12b
	movl	%ebx, %r12d
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pmu_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_code
_pmu_code:                              ; @pmu_code
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	w24, #41348
	movk	w24, #16, lsl #16
	ldr	x19, [x0]
	ldr	x23, [x19]
	mov	w8, #285212672
	mov	w9, #16777216
	cmp	w4, #0
	csel	w8, w9, w8, eq
	orr	w2, w8, w1
	sub	w1, w24, #4
	mov	x0, x19
	bl	_nvkm_wr32
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w25, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w21, w25
	mov	x0, x23
	bl	_nvbios_rd32
	mov	x2, x0
	mov	x0, x19
	mov	w1, #41348
	movk	w1, #16, lsl #16
	bl	_nvkm_wr32
	add	w25, w25, #4
	cmp	w25, w20
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tst	w25, #0xfc
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, w25
	asr	w2, w8, #8
	add	w1, w24, #4
	mov	x0, x19
	bl	_nvkm_wr32
	b	LBB0_2
LBB0_5:
	tst	w25, #0xfc
	b.eq	LBB0_8
; %bb.6:
	add	w20, w25, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #41348
	movk	w1, #16, lsl #16
	mov	w2, #0
	bl	_nvkm_wr32
	tst	w20, #0xfc
	add	w20, w20, #4
	b.ne	LBB0_7
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pmu_code
.subsections_via_symbols
