	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gf100_devinit_disable
LCPI0_0:
	.long	512                             ## 0x200
	.long	256                             ## 0x100
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gf100_devinit_disable:                 ## @gf100_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
	movq	(%rdi), %rdi
	movl	$140544, %esi                   ## imm = 0x22500
	callq	_nvkm_rd32
	movl	%eax, %edx
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	movl	$1, %edi
	shlq	%cl, %rdi
	xorl	%r8d, %r8d
	testb	$1, %dl
	cmovneq	%rdi, %r8
	testb	$2, %dl
	je	LBB0_2
## %bb.1:
	movq	_NVKM_ENGINE_MSPDEC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %r8
	movq	_NVKM_ENGINE_MSPPP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %r8
LBB0_2:
	movq	_NVKM_ENGINE_MSVLD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edi
	shlq	%cl, %rdi
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	_NVKM_ENGINE_MSENC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	pand	LCPI0_0(%rip), %xmm0
	movq	_NVKM_ENGINE_CE0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %r9d
	xorl	%r10d, %r10d
	testb	$8, %r9b
	cmovneq	%r10, %rdi
	orq	%r8, %rdi
	testb	$4, %r9b
	cmovneq	%r10, %rsi
	testb	$2, %r9b
	cmovneq	%r10, %rdx
	orq	%rsi, %rdx
	orq	%rdi, %rdx
	movq	_NVKM_ENGINE_CE1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	testb	$1, %r9b
	cmovneq	%r10, %rax
	orq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ## @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSPPP,8,3          ## @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ## @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_MSENC,8,3          ## @NVKM_ENGINE_MSENC
	.comm	_NVKM_ENGINE_CE0,8,3            ## @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE1,8,3            ## @NVKM_ENGINE_CE1
	.no_dead_strip	_gf100_devinit_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function gf100_devinit_disable
lCPI0_0:
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	256                             ; 0x100
	.long	512                             ; 0x200
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gf100_devinit_disable:                 ; @gf100_devinit_disable
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	mov	w1, #9472
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
Lloh0:
	adrp	x8, _NVKM_ENGINE_DISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
	tst	w0, #0x1
	csel	x8, xzr, x8, eq
	tbz	w0, #1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _NVKM_ENGINE_MSPDEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVKM_ENGINE_MSPDEC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #1
	lsl	x9, x10, x9
	orr	x8, x9, x8
Lloh6:
	adrp	x9, _NVKM_ENGINE_MSPPP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVKM_ENGINE_MSPPP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
LBB0_2:
	dup.4s	v0, w0
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	and.16b	v0, v0, v1
Lloh11:
	adrp	x9, _NVKM_ENGINE_MSVLD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NVKM_ENGINE_MSVLD@GOTPAGEOFF]
Lloh13:
	adrp	x10, _NVKM_ENGINE_MSENC@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NVKM_ENGINE_MSENC@GOTPAGEOFF]
Lloh15:
	adrp	x11, _NVKM_ENGINE_CE0@GOTPAGE
Lloh16:
	ldr	x11, [x11, _NVKM_ENGINE_CE0@GOTPAGEOFF]
Lloh17:
	ldr	d1, [x9]
	cmeq.4s	v0, v0, #0
	sshll.2d	v2, v0, #0
	sshll2.2d	v0, v0, #0
Lloh18:
	adrp	x9, _NVKM_ENGINE_CE1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NVKM_ENGINE_CE1@GOTPAGEOFF]
	ld1.d	{ v1 }[1], [x10]
Lloh20:
	ldr	d3, [x11]
	ld1.d	{ v3 }[1], [x9]
	mov	w9, #1
	dup.2d	v4, x9
	ushl.2d	v1, v4, v1
	ushl.2d	v3, v4, v3
	bic.16b	v0, v3, v0
	bic.16b	v1, v1, v2
	orr.16b	v0, v1, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	x9, d0
	orr	x0, x9, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh20
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh17
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
	.comm	_NVKM_ENGINE_MSPDEC,8,3         ; @NVKM_ENGINE_MSPDEC
	.comm	_NVKM_ENGINE_MSPPP,8,3          ; @NVKM_ENGINE_MSPPP
	.comm	_NVKM_ENGINE_MSVLD,8,3          ; @NVKM_ENGINE_MSVLD
	.comm	_NVKM_ENGINE_MSENC,8,3          ; @NVKM_ENGINE_MSENC
	.comm	_NVKM_ENGINE_CE0,8,3            ; @NVKM_ENGINE_CE0
	.comm	_NVKM_ENGINE_CE1,8,3            ; @NVKM_ENGINE_CE1
	.no_dead_strip	_gf100_devinit_disable
.subsections_via_symbols
