	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irqtx_handler
_irqtx_handler:                         ## @irqtx_handler
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %rax
	addq	32(%rbx), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %rsi
	leaq	-24(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy_fromio
	incl	4(%r14)
	movl	-24(%rbp), %eax
	addl	%eax, (%r14)
	movq	16(%rbx), %rcx
	movslq	(%rbx), %rax
	movq	$0, (%rcx,%rax,8)
	movq	8(%rbx), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	cmpq	$2, %rcx
	jl	LBB0_2
## %bb.1:
	incl	%eax
	movq	_TXBUFCNT@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_StartTx
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBUFCNT,4,2                   ## @TXBUFCNT
	.no_dead_strip	_irqtx_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irqtx_handler
_irqtx_handler:                         ; @irqtx_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldp	x9, x8, [x0, #24]
	add	x8, x9, x8
	ldrsw	x9, [x0]
	add	x1, x8, x9, lsl #3
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy_fromio
	ldr	d0, [x19]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x21]
	add.2s	v0, v0, v1
	str	d0, [x19]
	ldr	x9, [x20, #16]
	ldrsw	x8, [x20]
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x20, #8]
	sub	x10, x9, #1
	str	x10, [x20, #8]
	cmp	x9, #2
	b.lt	LBB0_2
; %bb.1:
	add	w8, w8, #1
Lloh0:
	adrp	x9, _TXBUFCNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXBUFCNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w1, w10, w9, w8
	mov	x0, x19
	bl	_StartTx
LBB0_2:
	mov	x0, x19
	bl	_netif_wake_queue
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBUFCNT,4,2                   ; @TXBUFCNT
	.no_dead_strip	_irqtx_handler
.subsections_via_symbols
