	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_wrvgaowner                  ## -- Begin function nv_wrvgaowner
	.p2align	4, 0x90
_nv_wrvgaowner:                         ## @nv_wrvgaowner
	.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, %rbx
	callq	_nv_device
	movq	(%rax), %rax
	movq	_NV_50@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.1:
	cmpl	$1, %r15d
	movl	$3, %r14d
	cmovnel	%r15d, %r14d
	movq	%rbx, %rdi
	callq	_nv_device
	cmpl	$17, 8(%rax)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	callq	_nv_rdvgac
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$31, %edx
	callq	_nv_rdvgac
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$68, %edx
	movl	%r14d, %ecx
	callq	_nv_wrvgac
	movq	%rbx, %rdi
	callq	_nv_device
	cmpl	$17, 8(%rax)
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$46, %edx
	movl	%r14d, %ecx
	callq	_nv_wrvgac
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$46, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wrvgac                      ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_error                       ## TAILCALL
LBB0_6:
	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	"wrvgaowner after nv4x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_wrvgaowner                  ; -- Begin function nv_wrvgaowner
	.p2align	2
_nv_wrvgaowner:                         ; @nv_wrvgaowner
	.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	x20, x1
	mov	x19, 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.ge	LBB0_5
; %bb.1:
	mov	w8, #3
	cmp	w20, #1
	csel	w20, w8, w20, eq
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0, #8]
	cmp	w8, #17
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #31
	bl	_nv_rdvgac
	mov	x0, x19
	mov	w1, #1
	mov	w2, #31
	bl	_nv_rdvgac
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #68
	mov	x3, x20
	bl	_nv_wrvgac
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0, #8]
	cmp	w8, #17
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #46
	mov	x3, x20
	bl	_nv_wrvgac
	mov	x0, x19
	mov	w1, #0
	mov	w2, #46
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nv_wrvgac
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nv_error
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	"wrvgaowner after nv4x\n"

.subsections_via_symbols
