	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g98_devinit_disable
_g98_devinit_disable:                   ## @g98_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	$5440, %esi                     ## imm = 0x1540
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$5452, %esi                     ## imm = 0x154C
	callq	_nvkm_rd32
	testl	$1073741824, %r14d              ## imm = 0x40000000
	jne	LBB0_1
## %bb.2:
	movq	_NVKM_ENGINE_MSPDEC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dl
	movq	_NVKM_ENGINE_MSVLD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	movq	%rsi, %rdi
	btsq	%rdx, %rdi
	movq	_NVKM_ENGINE_MSPPP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rdi
	jmp	LBB0_3
LBB0_1:
	movq	_NVKM_ENGINE_MSVLD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	xorl	%edi, %edi
LBB0_3:
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	movl	$1, %edx
	xorl	%r8d, %r8d
	testb	$4, %al
	cmovneq	%r8, %rbx
	orq	%rdi, %rbx
	testb	$32, %al
	cmovneq	%r8, %rsi
	movq	_NVKM_ENGINE_SEC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	testb	$64, %al
	cmovneq	%r8, %rdx
	orq	%rsi, %rdx
	orq	%rbx, %rdx
	movq	%rdx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ## @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSVLD,8,3          ## @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_MSPPP,8,3          ## @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_SEC,8,3            ## @NVKM_ENGINE_SEC
	.no_dead_strip	_g98_devinit_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g98_devinit_disable
_g98_devinit_disable:                   ; @g98_devinit_disable
	.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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #5440
	bl	_nvkm_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #5452
	bl	_nvkm_rd32
	tbnz	w20, #30, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NVKM_ENGINE_MSPDEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_MSPDEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x10, x9, x8
Lloh3:
	adrp	x8, _NVKM_ENGINE_MSVLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVKM_ENGINE_MSVLD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x8, x9, x8
	orr	x10, x8, x10
Lloh6:
	adrp	x11, _NVKM_ENGINE_MSPPP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NVKM_ENGINE_MSPPP@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	lsl	x9, x9, x11
	orr	x9, x10, x9
	b	LBB0_3
LBB0_2:
	mov	x9, #0
Lloh9:
	adrp	x8, _NVKM_ENGINE_MSVLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVKM_ENGINE_MSVLD@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w10, #1
	lsl	x8, x10, x8
LBB0_3:
Lloh12:
	adrp	x10, _NVKM_ENGINE_DISP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	mov	w11, #1
	lsl	x10, x11, x10
	tst	w0, #0x4
	csel	x10, x10, xzr, eq
	orr	x9, x10, x9
	tst	w0, #0x20
	csel	x8, x8, xzr, eq
	orr	x8, x9, x8
Lloh15:
	adrp	x9, _NVKM_ENGINE_SEC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NVKM_ENGINE_SEC@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x9, x11, x9
	tst	w0, #0x40
	csel	x9, x9, xzr, eq
	orr	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ; @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSVLD,8,3          ; @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_MSPPP,8,3          ; @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_SEC,8,3            ; @NVKM_ENGINE_SEC
	.no_dead_strip	_g98_devinit_disable
.subsections_via_symbols
