	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_chsw_load
_gf100_gr_chsw_load:                    ## @gf100_gr_chsw_load
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_gf100_gr
	cmpl	$0, 4(%rax)
	movl	(%rax), %edi
	je	LBB0_1
## %bb.2:
	movl	$4233224, %esi                  ## imm = 0x409808
	callq	_nvkm_rd32
	movl	%eax, %ecx
	movl	$1, %eax
	testl	$524288, %ecx                   ## imm = 0x80000
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movl	$4233244, %esi                  ## imm = 0x40981C
	callq	_nvkm_rd32
	movl	%eax, %ecx
	movl	$1, %eax
	testb	$64, %cl
	je	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gf100_gr_chsw_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_chsw_load
_gf100_gr_chsw_load:                    ; @gf100_gr_chsw_load
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w19, #38920
	movk	w19, #64, lsl #16
	bl	_gf100_gr
	ldp	w0, w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w1, #38920
	movk	w1, #64, lsl #16
	bl	_nvkm_rd32
	tbnz	w0, #19, LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	add	w1, w19, #20
	bl	_nvkm_rd32
	tbz	w0, #6, LBB0_2
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gf100_gr_chsw_load
.subsections_via_symbols
