	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_bios_posted
_nouveau_bios_posted:                   ## @nouveau_bios_posted
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_nouveau_drm
	movq	(%rax), %rcx
	movq	_NV_DEVICE_INFO_V0_TESLA@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_NVReadVgaCrtc
	movl	%eax, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_NVReadVgaCrtc
	movl	%eax, %r12d
	andl	$1, %r12d
	shll	$8, %r12d
	orl	%r15d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_NVReadVgaCrtc
	movl	%eax, %r15d
	andl	$32, %r15d
	shll	$4, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$37, %edx
	callq	_NVReadVgaCrtc
	movl	%eax, %ebx
	andl	$1, %ebx
	shll	$10, %ebx
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$65, %edx
	callq	_NVReadVgaCrtc
	movl	%eax, %ecx
	andl	$1, %ecx
	shll	$11, %ecx
	xorl	%eax, %eax
	orl	%ebx, %ecx
	setne	%al
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ## @NV_DEVICE_INFO_V0_TESLA
	.no_dead_strip	_nouveau_bios_posted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_bios_posted
_nouveau_bios_posted:                   ; @nouveau_bios_posted
	.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
	mov	x19, x0
	bl	_nouveau_drm
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #6
	bl	_NVReadVgaCrtc
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #7
	bl	_NVReadVgaCrtc
	ubfiz	w8, w0, #8, #1
	orr	w20, w8, w20
	mov	x0, x19
	mov	w1, #0
	mov	w2, #7
	bl	_NVReadVgaCrtc
	lsl	w8, w0, #4
	and	w8, w8, #0x200
	orr	w20, w20, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #37
	bl	_NVReadVgaCrtc
	ubfiz	w8, w0, #10, #1
	orr	w20, w20, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #65
	bl	_NVReadVgaCrtc
	ubfiz	w8, w0, #11, #1
	orr	w8, w20, w8
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ; @NV_DEVICE_INFO_V0_TESLA
	.no_dead_strip	_nouveau_bios_posted
.subsections_via_symbols
