	.file	"extr_usb_wwan.c_usb_wwan_port_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	usb_wwan_port_probe
	.type	usb_wwan_port_probe, @function
usb_wwan_port_probe:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	je	.L25
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r11d, DWORD PTR 8[rdi]
	test	r11d, r11d
	jne	.L3
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L28
	lea	rdi, 32[rax]
	call	init_usb_anchor@PLT
	mov	r10d, DWORD PTR N_IN_URB[rip]
	test	r10d, r10d
	jle	.L6
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR [r12]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, DWORD PTR 4[rbp]
	mov	rcx, rbp
	mov	r9d, DWORD PTR IN_BUFLEN[rip]
	mov	edx, DWORD PTR USB_DIR_IN[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx*8], r8
	mov	eax, DWORD PTR usb_wwan_indat_callback[rip]
	push	rax
	.cfi_def_cfa_offset 48
	call	usb_wwan_setup_urb@PLT
	mov	rdx, QWORD PTR 8[r12]
	mov	QWORD PTR [rdx+rbx*8], rax
	add	rbx, 1
	cmp	DWORD PTR N_IN_URB[rip], ebx
	pop	r8
	.cfi_def_cfa_offset 40
	pop	r9
	.cfi_def_cfa_offset 32
	jle	.L6
.L8:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	__get_free_page@PLT
	mov	r8, rax
	test	rax, rax
	jne	.L30
.L7:
	mov	eax, DWORD PTR N_IN_URB[rip]
	test	eax, eax
	jle	.L13
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	usb_free_urb@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	free_page@PLT
	cmp	DWORD PTR N_IN_URB[rip], ebx
	jg	.L14
.L13:
	mov	rdi, r12
	call	kfree@PLT
.L28:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	edi, DWORD PTR N_OUT_URB[rip]
	test	edi, edi
	jle	.L9
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[r12]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rcx, rbp
	mov	rdi, rbp
	mov	edx, DWORD PTR USB_DIR_OUT[rip]
	mov	r9d, DWORD PTR OUT_BUFLEN[rip]
	mov	QWORD PTR [rax+rbx*8], r8
	mov	eax, DWORD PTR usb_wwan_outdat_callback[rip]
	push	rax
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 0[rbp]
	call	usb_wwan_setup_urb@PLT
	mov	rdx, QWORD PTR 24[r12]
	mov	QWORD PTR [rdx+rbx*8], rax
	add	rbx, 1
	cmp	DWORD PTR N_OUT_URB[rip], ebx
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	jle	.L9
.L12:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR OUT_BUFLEN[rip]
	call	kmalloc@PLT
	mov	r8, rax
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR N_OUT_URB[rip]
	xor	ebx, ebx
	test	esi, esi
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 24[r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	usb_free_urb@PLT
	mov	rax, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	kfree@PLT
	cmp	DWORD PTR N_OUT_URB[rip], ebx
	jg	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r12
	mov	rdi, rbp
	call	usb_set_serial_port_data@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	usb_wwan_port_probe, .-usb_wwan_port_probe
	.comm	usb_wwan_outdat_callback,4,4
	.comm	usb_wwan_indat_callback,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	OUT_BUFLEN,4,4
	.comm	N_OUT_URB,4,4
	.comm	N_IN_URB,4,4
	.comm	IN_BUFLEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_usb_wwan_port_probe.c"
	.text
	.align	2
	.global	usb_wwan_port_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_wwan_port_probe, %function
usb_wwan_port_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #12]
	cmp	r2, #0
	beq	.L28
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0, #8]
	mov	fp, r0
	cmp	r2, #0
	sub	sp, sp, #20
	bne	.L3
	ldr	r3, .L34
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r7, .L34+4
	mov	r0, #20
	ldr	r1, [r7]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L31
	ldr	r6, .L34+8
	add	r0, r4, #16
	bl	init_usb_anchor
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L6
	mov	r5, #0
	ldr	r10, .L34+12
	ldr	r9, .L34+16
	ldr	r8, .L34+20
	b	.L8
.L33:
	ldr	r3, [r4]
	ldr	r1, [r9]
	ldr	r2, [r8]
	str	r0, [r3, r5, lsl #2]
	str	r0, [sp]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r3, fp
	ldr	r2, [r10]
	mov	r0, fp
	ldr	r1, [fp, #4]
	bl	usb_wwan_setup_urb
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	str	r0, [r2, r5, lsl #2]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L6
.L8:
	ldr	r0, [r7]
	bl	__get_free_page
	cmp	r0, #0
	bne	.L33
.L7:
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L13
	mov	r5, #0
.L14:
	ldr	r3, [r4, #4]
	ldr	r0, [r3, r5, lsl #2]
	bl	usb_free_urb
	ldr	r3, [r4]
	ldr	r0, [r3, r5, lsl #2]
	bl	free_page
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L14
.L13:
	mov	r0, r4
	bl	kfree
.L31:
	ldr	r3, .L34+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r3, .L34
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L6:
	ldr	r9, .L34+28
	ldr	r2, [r9]
	cmp	r2, #0
	ble	.L9
	mov	r5, #0
	ldr	r8, .L34+32
	ldr	r10, .L34+36
	b	.L12
.L10:
	ldr	r3, [r4, #8]
	ldr	r2, [r8]
	ldr	r1, [r10]
	str	r0, [r3, r5, lsl #2]
	str	r2, [sp, #4]
	ldr	r2, .L34+40
	str	r0, [sp]
	str	r1, [sp, #8]
	mov	r3, fp
	ldr	r2, [r2]
	mov	r0, fp
	ldr	r1, [fp]
	bl	usb_wwan_setup_urb
	ldr	r2, [r4, #12]
	ldr	r3, [r9]
	str	r0, [r2, r5, lsl #2]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L9
.L12:
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	kmalloc
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r9]
	cmp	r3, #0
	movgt	r5, r0
	ble	.L7
.L11:
	ldr	r3, [r4, #12]
	ldr	r0, [r3, r5, lsl #2]
	bl	usb_free_urb
	ldr	r3, [r4, #8]
	ldr	r0, [r3, r5, lsl #2]
	bl	kfree
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L11
	b	.L7
.L9:
	mov	r1, r4
	mov	r0, fp
	bl	usb_set_serial_port_data
	mov	r0, #0
	b	.L1
.L35:
	.align	2
.L34:
	.word	ENODEV
	.word	GFP_KERNEL
	.word	N_IN_URB
	.word	USB_DIR_IN
	.word	usb_wwan_indat_callback
	.word	IN_BUFLEN
	.word	ENOMEM
	.word	N_OUT_URB
	.word	OUT_BUFLEN
	.word	usb_wwan_outdat_callback
	.word	USB_DIR_OUT
	.size	usb_wwan_port_probe, .-usb_wwan_port_probe
	.comm	usb_wwan_outdat_callback,4,4
	.comm	usb_wwan_indat_callback,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_DIR_IN,4,4
	.comm	OUT_BUFLEN,4,4
	.comm	N_OUT_URB,4,4
	.comm	N_IN_URB,4,4
	.comm	IN_BUFLEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
