	.file	"extr_uhso.c_uhso_ifnet_write_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"status %d, actlen=%d\n"
.LC1:
	.string	"error: %s\n"
	.text
	.p2align 4
	.type	uhso_ifnet_write_callback, @function
uhso_ifnet_write_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	usbd_xfer_softc@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	call	usbd_xfer_status@PLT
	mov	r14d, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	USB_GET_STATE@PLT
	mov	edi, 3
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	ecx, r14d
	xor	eax, eax
	call	UHSO_DPRINTF@PLT
	mov	rdi, rbp
	call	USB_GET_STATE@PLT
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	mov	edi, r12d
	call	usbd_errstr@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	UHSO_DPRINTF@PLT
	cmp	DWORD PTR USB_ERR_CANCELLED[rip], r12d
	jne	.L18
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR IFCOUNTER_OPACKETS[rip]
	mov	edx, 1
	mov	rdi, r13
	call	if_inc_counter@PLT
	mov	eax, DWORD PTR IFF_DRV_OACTIVE[rip]
	not	eax
	and	DWORD PTR 0[r13], eax
.L3:
	xor	r12d, r12d
	lea	rdi, 4[r13]
	mov	rsi, r12
	call	IFQ_DRV_DEQUEUE@PLT
	test	r12, r12
	je	.L1
	mov	eax, DWORD PTR IFF_DRV_OACTIVE[rip]
	or	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR MCLBYTES[rip]
	cmp	DWORD PTR ds:0, eax
	jle	.L6
	mov	DWORD PTR ds:0, eax
.L6:
	xor	r12d, r12d
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, DWORD PTR [r12]
	call	usbd_xfer_set_frame_len@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	usbd_xfer_get_frame@PLT
	mov	r8d, DWORD PTR [r12]
	xor	ecx, ecx
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, rax
	call	usbd_m_copy_in@PLT
	mov	rdi, rbp
	call	usbd_transfer_submit@PLT
	mov	rdi, r13
	mov	rsi, r12
	call	BPF_MTAP@PLT
	mov	rdi, r12
	call	m_freem@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	usbd_xfer_set_stall@PLT
	jmp	.L3
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uhso_ifnet_write_callback, .-uhso_ifnet_write_callback
	.comm	USB_ERR_CANCELLED,4,4
	.comm	MCLBYTES,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	IFCOUNTER_OPACKETS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_uhso.c_uhso_ifnet_write_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status %d, actlen=%d\012\000"
	.align	2
.LC1:
	.ascii	"error: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uhso_ifnet_write_callback, %function
uhso_ifnet_write_callback:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L20
	sub	sp, sp, #20
	mov	r4, r0
	mov	r5, #0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	usbd_xfer_softc
	mov	r3, r5
	mov	r2, r5
	ldr	r6, [r0]
	add	r1, sp, #8
	mov	r0, r4
	str	r5, [sp]
	bl	usbd_xfer_status
	mov	r0, r4
	bl	USB_GET_STATE
	ldr	r3, [sp, #8]
	mov	r2, r0
	ldr	r1, .L20+4
	mov	r0, #3
	bl	UHSO_DPRINTF
	mov	r0, r4
	bl	USB_GET_STATE
	cmp	r0, #128
	beq	.L2
	cmp	r0, #129
	beq	.L3
	mov	r0, r7
	bl	usbd_errstr
	ldr	r1, .L20+8
	mov	r2, r0
	mov	r0, r5
	bl	UHSO_DPRINTF
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L20+16
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r6
	bl	if_inc_counter
	ldr	r2, .L20+20
	ldr	r3, [r6]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r6]
.L3:
	mov	r5, #0
	add	r0, r6, #4
	mov	r1, r5
	bl	IFQ_DRV_DEQUEUE
	cmp	r5, r5
	beq	.L1
	ldr	r3, .L20+20
	ldr	r1, .L20+24
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r1]
	ldr	r3, [r6]
	cmp	r2, r1
	orr	r3, r3, r0
	movgt	r2, r1
	str	r3, [r6]
	strgt	r1, [r5]
	mov	r1, #0
	mov	r5, r1
	mov	r0, r4
	bl	usbd_xfer_set_frame_len
	mov	r1, r5
	mov	r0, r4
	bl	usbd_xfer_get_frame
	ldr	r1, [r5]
	mov	r3, r5
	mov	r2, r5
	str	r1, [sp]
	mov	r1, r5
	bl	usbd_m_copy_in
	mov	r0, r4
	bl	usbd_transfer_submit
	mov	r1, r5
	mov	r0, r6
	bl	BPF_MTAP
	mov	r0, r5
	bl	m_freem
	b	.L1
.L18:
	mov	r0, r4
	bl	usbd_xfer_set_stall
	b	.L3
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	USB_ERR_CANCELLED
	.word	IFCOUNTER_OPACKETS
	.word	IFF_DRV_OACTIVE
	.word	MCLBYTES
	.size	uhso_ifnet_write_callback, .-uhso_ifnet_write_callback
	.comm	USB_ERR_CANCELLED,4,4
	.comm	MCLBYTES,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	IFCOUNTER_OPACKETS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
