	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_devinit_preinit           ## -- Begin function nv50_devinit_preinit
	.p2align	4, 0x90
_nv50_devinit_preinit:                  ## @nv50_devinit_preinit
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_nvkm_devinit_disable
	movq	_NVKM_ENGINE_DISP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btq	%rcx, %rax
	jae	LBB0_2
LBB0_6:
	movl	$1, (%rbx)
	jmp	LBB0_7
LBB0_2:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_nvkm_rdvgac
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$26, %edx
	callq	_nvkm_rdvgac
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_nvkm_debug
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_ENGINE_DISP,8,3           ## @NVKM_ENGINE_DISP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adaptor not initialised\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_devinit_preinit           ; -- Begin function nv50_devinit_preinit
	.p2align	2
_nv50_devinit_preinit:                  ; @nv50_devinit_preinit
	.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	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	ldr	x21, [x20, #8]!
	bl	_nvkm_devinit_disable
Lloh0:
	adrp	x8, _NVKM_ENGINE_DISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_ENGINE_DISP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x0, x8
	tbz	w8, #0, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_nvkm_rdvgac
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #26
	bl	_nvkm_rdvgac
	cbz	w0, LBB0_7
LBB0_6:
	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
LBB0_7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_debug
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_ENGINE_DISP,8,3           ; @NVKM_ENGINE_DISP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adaptor not initialised\n"

.subsections_via_symbols
