	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_tx_pending           ## -- Begin function fm10k_get_tx_pending
	.p2align	4, 0x90
_fm10k_get_tx_pending:                  ## @fm10k_get_tx_pending
	.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
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %r15
	movl	%esi, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %r14
	movq	8(%rbx), %rax
	cmpq	%rax, %r14
	jle	LBB0_5
LBB0_4:
	addq	16(%rbx), %rax
LBB0_5:
	subq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	24(%rbx), %edi
	callq	_FM10K_TDH
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	movq	%rax, %r14
	movl	24(%rbx), %edi
	callq	_FM10K_TDT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_fm10k_read_reg
	cmpq	%rax, %r14
	jg	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm10k_get_tx_pending           ; -- Begin function fm10k_get_tx_pending
	.p2align	2
_fm10k_get_tx_pending:                  ; @fm10k_get_tx_pending
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	ldp	x20, x0, [x19]
	cmp	x20, x0
	b.le	LBB0_3
LBB0_2:
	ldr	x8, [x19, #16]
	add	x0, x8, x0
LBB0_3:
	sub	x0, x0, x20
	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
LBB0_4:
	ldr	w0, [x19, #24]
	bl	_FM10K_TDH
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_FM10K_TDT
	mov	x1, x0
	mov	x0, x21
	bl	_fm10k_read_reg
	cmp	x20, x0
	b.gt	LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
