	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_tx_flip_ownership
_nv_tx_flip_ownership:                  ## @nv_tx_flip_ownership
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	decl	24(%rax)
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_NV_TX2_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rdx
	orl	%eax, (%rdx)
	incl	24(%rbx)
	movq	(%rcx), %rax
	xorl	%ecx, %ecx
	cmpq	16(%rbx), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	_NVREG_TXRXCTL_KICK@GOTPCREL(%rip), %rax
	movl	(%rbx), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_get_hwbase
	movq	_NvRegTxRxControl@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_TX2_VALID,4,2               ## @NV_TX2_VALID
	.comm	_NVREG_TXRXCTL_KICK,4,2         ## @NVREG_TXRXCTL_KICK
	.comm	_NvRegTxRxControl,8,3           ## @NvRegTxRxControl
	.no_dead_strip	_nv_tx_flip_ownership
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_tx_flip_ownership
_nv_tx_flip_ownership:                  ; @nv_tx_flip_ownership
	.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	_netdev_priv
	ldr	w8, [x0, #24]
	sub	w8, w8, #1
	str	w8, [x0, #24]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _NV_TX2_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_TX2_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldp	x8, x9, [x20, #8]
	ldp	x8, x10, [x8]
	ldr	w11, [x10]
	orr	w11, w11, w0
	str	w11, [x10]
	ldr	w10, [x20, #24]
	add	w10, w10, #1
	str	w10, [x20, #24]
	cmp	x8, x9
	csel	x8, xzr, x8, eq
	str	x8, [x20, #8]
Lloh3:
	adrp	x8, _NVREG_TXRXCTL_KICK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVREG_TXRXCTL_KICK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_get_hwbase
Lloh6:
	adrp	x8, _NvRegTxRxControl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NvRegTxRxControl@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_TX2_VALID,4,2               ; @NV_TX2_VALID
	.comm	_NVREG_TXRXCTL_KICK,4,2         ; @NVREG_TXRXCTL_KICK
	.comm	_NvRegTxRxControl,8,3           ; @NvRegTxRxControl
	.no_dead_strip	_nv_tx_flip_ownership
.subsections_via_symbols
