	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_tx_avail
_niu_tx_avail:                          ## @niu_tx_avail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movslq	(%rdi), %rcx
	movslq	4(%rdi), %rdx
	subq	%rdx, %rcx
	movq	_MAX_TX_RING_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	andq	%rcx, %rdx
	subq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_RING_SIZE,4,2           ## @MAX_TX_RING_SIZE
	.no_dead_strip	_niu_tx_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_tx_avail
_niu_tx_avail:                          ; @niu_tx_avail
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldpsw	x9, x10, [x0]
Lloh0:
	adrp	x11, _MAX_TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MAX_TX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x11, [x11]
	sub	x11, x11, #1
	sub	x9, x9, x10
	and	x9, x11, x9
	sub	x0, x8, x9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_RING_SIZE,4,2           ; @MAX_TX_RING_SIZE
	.no_dead_strip	_niu_tx_avail
.subsections_via_symbols
