	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk104_pmu_pgob
_gk104_pmu_pgob:                        ## @gk104_pmu_pgob
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	movl	$796, %esi                      ## imm = 0x31C
	callq	_nvkm_fuse_read
	testb	$1, %al
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	$134217728, %edx                ## imm = 0x8000000
	movl	$134217728, %ecx                ## imm = 0x8000000
	callq	_nvkm_mask
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$2, %edx
	movl	$2, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	testl	%r14d, %r14d
	movl	$1073741824, %ecx               ## imm = 0x40000000
	movl	$-1073741824, %eax              ## imm = 0xC0000000
	cmovnel	%eax, %ecx
	movq	%rbx, %rdi
	movl	$131076, %esi                   ## imm = 0x20004
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nvkm_mask
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$1, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$1091468, %esi                  ## imm = 0x10A78C
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	$134217728, %edx                ## imm = 0x8000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_nvkm_mask
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_nvkm_rd32
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_nvkm_boolopt
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	(%rbx), %eax
	movl	$33554432, %esi                 ## imm = 0x2000000
	cmpl	$231, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$230, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$228, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	movl	$67108864, %esi                 ## imm = 0x4000000
	callq	_magic
	movl	$234881024, %r15d               ## imm = 0xE000000
	movl	$201326592, %r14d               ## imm = 0xC000000
	movl	$100663296, %esi                ## imm = 0x6000000
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$167772160, %r15d               ## imm = 0xA000000
	movl	$67108864, %r14d                ## imm = 0x4000000
LBB0_7:
	movq	%rbx, %rdi
	callq	_magic
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_magic
	movl	%r15d, %esi
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_magic                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"War00C800_0"

	.no_dead_strip	_gk104_pmu_pgob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk104_pmu_pgob
_gk104_pmu_pgob:                        ; @gk104_pmu_pgob
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	ldr	x19, [x0]
	ldr	w0, [x19, #8]
	mov	w1, #796
	bl	_nvkm_fuse_read
	tbz	w0, #0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #512
	mov	w2, #4096
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #512
	bl	_nvkm_rd32
	mov	x0, x19
	mov	w1, #512
	mov	w2, #134217728
	mov	w3, #134217728
	bl	_nvkm_mask
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #2
	mov	w3, #2
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	cmp	w20, #0
	mov	w8, #1073741824
	cneg	w3, w8, ne
	mov	x0, x19
	mov	w1, #4
	movk	w1, #2, lsl #16
	mov	w2, #-1073741824
	bl	_nvkm_mask
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #2
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #1
	mov	w3, #1
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #42892
	movk	w1, #16, lsl #16
	mov	w2, #1
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #512
	mov	w2, #134217728
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #512
	mov	w2, #4096
	mov	w3, #4096
	bl	_nvkm_mask
	mov	x0, x19
	mov	w1, #512
	bl	_nvkm_rd32
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_nvkm_boolopt
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	mov	w1, #33554432
	cmp	w8, #231
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #230
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #228
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #67108864
	bl	_magic
	mov	w21, #234881024
	mov	w20, #201326592
	mov	w1, #100663296
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w21, #167772160
	mov	w20, #67108864
LBB0_8:
	mov	x0, x19
	bl	_magic
	mov	x0, x19
	mov	x1, x20
	bl	_magic
	mov	x1, x21
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_magic
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"War00C800_0"

	.no_dead_strip	_gk104_pmu_pgob
.subsections_via_symbols
