	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_tx_done_msg
_esd_usb2_tx_done_msg:                  ## @esd_usb2_tx_done_msg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movslq	(%r15), %rdx
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	decq	%rcx
	andq	%rdx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r13
	cmpl	$0, 4(%r15)
	je	LBB0_2
## %bb.3:
	incl	(%rbx)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_can_free_echo_skb
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	incl	8(%rbx)
	movl	8(%rax,%rcx), %eax
	addl	%eax, 4(%rbx)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_can_get_echo_skb
LBB0_4:
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
	.no_dead_strip	_esd_usb2_tx_done_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esd_usb2_tx_done_msg
_esd_usb2_tx_done_msg:                  ; @esd_usb2_tx_done_msg
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_netif_device_present
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x22, _MAX_TX_URBS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #1
	ldp	w10, w11, [x21]
	and	w9, w9, w10
	add	x21, x8, w9, sxtw #4
	cbz	w11, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_can_free_echo_skb
	b	LBB0_5
LBB0_3:
	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:
	sxtw	x9, w9
	add	x8, x8, x9, lsl #4
	add	x8, x8, #8
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_can_get_echo_skb
LBB0_5:
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x0, x20
	bl	_atomic_dec
	mov	x0, x19
	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
	b	_netif_wake_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
	.no_dead_strip	_esd_usb2_tx_done_msg
.subsections_via_symbols
