	.file	"extr_usb_wwan.c_stop_read_write_urbs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stop_read_write_urbs, @function
stop_read_write_urbs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jle	.L12
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, QWORD PTR [rax+r12*8]
	call	usb_get_serial_port_data@PLT
	mov	edx, DWORD PTR N_IN_URB[rip]
	mov	rbp, rax
	test	edx, edx
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	usb_kill_urb@PLT
	cmp	DWORD PTR N_IN_URB[rip], ebx
	jg	.L4
.L3:
	mov	eax, DWORD PTR N_OUT_URB[rip]
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	usb_kill_urb@PLT
	cmp	DWORD PTR N_OUT_URB[rip], ebx
	jg	.L6
.L5:
	add	r12, 1
	cmp	DWORD PTR 0[r13], r12d
	jg	.L7
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	stop_read_write_urbs, .-stop_read_write_urbs
	.comm	N_OUT_URB,4,4
	.comm	N_IN_URB,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_usb_wwan.c_stop_read_write_urbs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_read_write_urbs, %function
stop_read_write_urbs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	mov	r8, #0
	ldr	r7, .L16
	ldr	r6, .L16+4
.L7:
	ldr	r3, [r9, #4]
	ldr	r0, [r3, r8, lsl #2]
	bl	usb_get_serial_port_data
	ldr	r3, [r7]
	mov	r5, r0
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
.L4:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	usb_kill_urb
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L3:
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
.L6:
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	bl	usb_kill_urb
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L5:
	ldr	r3, [r9]
	add	r8, r8, #1
	cmp	r3, r8
	bgt	.L7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	N_IN_URB
	.word	N_OUT_URB
	.size	stop_read_write_urbs, .-stop_read_write_urbs
	.comm	N_OUT_URB,4,4
	.comm	N_IN_URB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
