	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_nvreg
_init_nvreg:                            ## @init_nvreg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %ebx
	andl	$-4, %ebx
	movl	(%rdi), %edi
	callq	_nv_device
	movq	(%rax), %rax
	movq	_NV_50@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.3:
	testl	$1073741824, %ebx               ## imm = 0x40000000
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_init_crtc
	shll	$11, %eax
	addl	%ebx, %eax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	movl	%eax, %ebx
	testl	$1073741824, %ebx               ## imm = 0x40000000
	je	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_init_or
	shll	$11, %eax
	addl	%ebx, %eax
	movl	%eax, %ebx
	andl	$-1073741828, %ebx              ## imm = 0xBFFFFFFC
	testl	$536870912, %eax                ## imm = 0x20000000
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_init_link
	shll	$7, %eax
	addl	%ebx, %eax
	andl	$-536870916, %eax               ## imm = 0xDFFFFFFC
	movl	%eax, %ebx
LBB0_6:
	testl	$-16777213, %ebx                ## imm = 0xFF000003
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_warn
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_50,8,3                      ## @NV_50
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown bits in register 0x%08x\n"

	.no_dead_strip	_init_nvreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_nvreg
_init_nvreg:                            ; @init_nvreg
	.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
	mov	x21, x1
	mov	x20, x0
	and	w19, w1, #0xfffffffc
	ldr	w0, [x0]
	bl	_nv_device
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NV_50@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_50@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.1:
	tbnz	w21, #31, LBB0_3
; %bb.2:
	tbnz	w19, #30, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_init_crtc
	add	w8, w19, w0, lsl #11
	and	w19, w8, #0x7ffffffc
	tbz	w19, #30, LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_init_or
	add	w8, w19, w0, lsl #11
	and	w9, w8, #0xfffffffc
	and	w19, w9, #0xbfffffff
	tbz	w8, #29, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_init_link
	add	w8, w19, w0, lsl #7
	and	w8, w8, #0xfffffffc
	and	w19, w8, #0xdfffffff
LBB0_6:
	tst	w19, #0xff000003
	b.eq	LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
LBB0_8:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_50,8,3                      ; @NV_50
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown bits in register 0x%08x\n"

	.no_dead_strip	_init_nvreg
.subsections_via_symbols
