	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm107_devinit_disable          ## -- Begin function gm107_devinit_disable
	.p2align	4, 0x90
_gm107_devinit_disable:                 ## @gm107_devinit_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$138240, %esi                   ## imm = 0x21C00
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$138244, %esi                   ## imm = 0x21C04
	callq	_nvkm_rd32
	movq	_NVKM_ENGINE_CE0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	xorl	%edi, %edi
	testb	$1, %r14b
	cmoveq	%rdi, %rsi
	movl	$1, %edx
	movq	_NVKM_ENGINE_CE2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	testb	$4, %r14b
	cmoveq	%rdi, %rbx
	orq	%rsi, %rbx
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	testb	$1, %al
	cmoveq	%rdi, %rdx
	orq	%rbx, %rdx
	movq	%rdx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_CE0,8,3            ## @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE2,8,3            ## @NVKM_ENGINE_CE2
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm107_devinit_disable          ; -- Begin function gm107_devinit_disable
	.p2align	2
_gm107_devinit_disable:                 ; @gm107_devinit_disable
	.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
	ldr	x19, [x0]
	mov	w21, #7168
	movk	w21, #2, lsl #16
	mov	x0, x19
	mov	w1, #7168
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	mov	x20, x0
	orr	w1, w21, #0x4
	mov	x0, x19
	bl	_nvkm_rd32
Lloh0:
	adrp	x8, _NVKM_ENGINE_CE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_CE0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
	tst	w20, #0x1
	csel	x8, xzr, x8, eq
Lloh3:
	adrp	x10, _NVKM_ENGINE_CE2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVKM_ENGINE_CE2@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	tst	w20, #0x4
	csel	x10, xzr, x10, eq
	orr	x8, x10, x8
Lloh6:
	adrp	x10, _NVKM_ENGINE_DISP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	tst	w0, #0x1
	csel	x9, xzr, x9, eq
	orr	x0, x8, x9
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_CE0,8,3            ; @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE2,8,3            ; @NVKM_ENGINE_CE2
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
.subsections_via_symbols
