	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt215_devinit_disable
_gt215_devinit_disable:                 ## @gt215_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_MSPPP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	btsq	%rdx, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	movl	$1, %edi
	shlq	%cl, %rdi
	xorl	%ebx, %ebx
	testb	$4, %al
	cmovneq	%rbx, %rdi
	orq	%rsi, %rdi
	movq	_NVKM_ENGINE_MSVLD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	testb	$32, %al
	cmovneq	%rbx, %rsi
	movq	_NVKM_ENGINE_CE0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	testl	$512, %eax                      ## imm = 0x200
	cmovneq	%rbx, %rdx
	orq	%rsi, %rdx
	orq	%rdi, %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_MSPPP,8,3          ## @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ## @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_CE0,8,3            ## @NVKM_ENGINE_CE0
	.no_dead_strip	_gt215_devinit_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt215_devinit_disable
_gt215_devinit_disable:                 ; @gt215_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	x8, x9, x8
Lloh3:
	adrp	x10, _NVKM_ENGINE_MSPPP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NVKM_ENGINE_MSPPP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x9, x8
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh6:
	adrp	x9, _NVKM_ENGINE_DISP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #1
	lsl	x9, x10, x9
	tst	w0, #0x4
	csel	x9, x9, xzr, eq
	orr	x8, x9, x8
Lloh9:
	adrp	x9, _NVKM_ENGINE_MSVLD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVKM_ENGINE_MSVLD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	tst	w0, #0x20
	csel	x9, x9, xzr, eq
	orr	x8, x8, x9
Lloh12:
	adrp	x9, _NVKM_ENGINE_CE0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NVKM_ENGINE_CE0@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	tst	w0, #0x200
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ; @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSPPP,8,3          ; @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ; @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_CE0,8,3            ; @NVKM_ENGINE_CE0
	.no_dead_strip	_gt215_devinit_disable
.subsections_via_symbols
