	.file	"extr_umodem.c_umodem_intr_read_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"received short packet, %d bytes\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"truncating message\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"unknown message type, 0x%02x, on notify pipe!\n"
	.align 8
.LC3:
	.string	"invalid notification length, %d bytes!\n"
	.section	.rodata.str1.1
.LC4:
	.string	"notify bytes = %02x%02x\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"unknown notify message: 0x%02x\n"
	.text
	.p2align 4
	.type	umodem_intr_read_callback, @function
umodem_intr_read_callback:
.LFB0:
	.cfi_startproc
	endbr64
	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	ebx, esi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	usbd_xfer_softc@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	lea	rsi, 12[rsp]
	mov	r12, rax
	call	usbd_xfer_status@PLT
	mov	rdi, rbp
	call	USB_GET_STATE@PLT
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	cmp	DWORD PTR USB_ERR_CANCELLED[rip], ebx
	jne	.L31
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[rsp]
	cmp	esi, 7
	jle	.L33
	cmp	esi, 24
	jle	.L6
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	mov	DWORD PTR 12[rsp], 24
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	usbd_xfer_get_frame@PLT
	mov	ecx, DWORD PTR 12[rsp]
	xor	esi, esi
	lea	rdx, 16[rsp]
	mov	rdi, rax
	call	usbd_copy_out@PLT
	mov	edi, DWORD PTR 32[rsp]
	sub	DWORD PTR 12[rsp], 8
	call	UGETW@PLT
	cmp	DWORD PTR 12[rsp], eax
	jle	.L7
	mov	DWORD PTR 12[rsp], eax
.L7:
	mov	esi, DWORD PTR 16[rsp]
	cmp	esi, DWORD PTR UCDC_NOTIFICATION[rip]
	jne	.L34
	mov	esi, DWORD PTR 20[rsp]
	cmp	esi, 130
	jne	.L9
	mov	esi, DWORD PTR 12[rsp]
	cmp	esi, 1
	jle	.L35
	mov	rax, QWORD PTR 24[rsp]
	lea	rdi, .LC4[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	xor	eax, eax
	call	DPRINTF@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	QWORD PTR 4[r12], 0
	mov	eax, DWORD PTR [rdx]
	test	DWORD PTR UCDC_N_SERIAL_RI[rip], eax
	je	.L11
	mov	eax, DWORD PTR SER_RI[rip]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR [rdx]
.L11:
	test	DWORD PTR UCDC_N_SERIAL_DSR[rip], eax
	je	.L12
	mov	eax, DWORD PTR SER_DSR[rip]
	or	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR [rdx]
.L12:
	test	DWORD PTR UCDC_N_SERIAL_DCD[rip], eax
	je	.L13
	mov	eax, DWORD PTR SER_DCD[rip]
	or	DWORD PTR 4[r12], eax
.L13:
	mov	rdi, r12
	call	ucom_status_change@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	usbd_xfer_max_len@PLT
	mov	rdi, rbp
	xor	esi, esi
	mov	edx, eax
	call	usbd_xfer_set_frame_len@PLT
	mov	rdi, rbp
	call	usbd_transfer_submit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbp
	call	usbd_xfer_set_stall@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	jmp	.L3
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	umodem_intr_read_callback, .-umodem_intr_read_callback
	.comm	USB_ERR_CANCELLED,4,4
	.comm	UCDC_N_SERIAL_RI,4,4
	.comm	UCDC_N_SERIAL_DSR,4,4
	.comm	UCDC_N_SERIAL_DCD,4,4
	.comm	UCDC_NOTIFICATION,4,4
	.comm	SER_RI,4,4
	.comm	SER_DSR,4,4
	.comm	SER_DCD,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_umodem.c_umodem_intr_read_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"received short packet, %d bytes\012\000"
	.align	2
.LC1:
	.ascii	"truncating message\012\000"
	.align	2
.LC2:
	.ascii	"unknown message type, 0x%02x, on notify pipe!\012\000"
	.align	2
.LC3:
	.ascii	"invalid notification length, %d bytes!\012\000"
	.align	2
.LC4:
	.ascii	"notify bytes = %02x%02x\012\000"
	.align	2
.LC5:
	.ascii	"unknown notify message: 0x%02x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	umodem_intr_read_callback, %function
umodem_intr_read_callback:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L36
	sub	sp, sp, #32
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	usbd_xfer_softc
	mov	r3, #0
	add	r1, sp, #8
	mov	r2, r3
	str	r3, [sp]
	mov	r6, r0
	mov	r0, r4
	bl	usbd_xfer_status
	mov	r0, r4
	bl	USB_GET_STATE
	cmp	r0, #128
	beq	.L2
	cmp	r0, #129
	beq	.L3
	ldr	r3, .L36+4
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L31
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, [sp, #8]
	cmp	r1, #7
	ble	.L33
	cmp	r1, #16
	ble	.L6
	ldr	r0, .L36+8
	bl	DPRINTF
	mov	r3, #16
	str	r3, [sp, #8]
.L6:
	mov	r1, #0
	mov	r0, r4
	bl	usbd_xfer_get_frame
	mov	r1, #0
	ldr	r3, [sp, #8]
	add	r2, sp, #12
	bl	usbd_copy_out
	ldr	r3, [sp, #8]
	ldr	r0, [sp, #24]
	sub	r3, r3, #8
	str	r3, [sp, #8]
	bl	UGETW
	ldr	r3, [sp, #8]
	ldr	r1, [sp, #12]
	cmp	r3, r0
	ldr	r3, .L36+12
	strgt	r0, [sp, #8]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L34
	ldr	r1, [sp, #16]
	cmp	r1, #130
	bne	.L9
	ldr	r1, [sp, #8]
	cmp	r1, #1
	ble	.L35
	ldr	r3, [sp, #20]
	ldr	r0, .L36+16
	ldm	r3, {r1, r2}
	bl	DPRINTF
	mov	r3, #0
	ldr	r2, [sp, #20]
	ldr	r1, .L36+20
	str	r3, [r6, #4]
	str	r3, [r6, #8]
	ldr	r3, [r2]
	ldr	r1, [r1]
	tst	r3, r1
	ldrne	r3, .L36+24
	ldr	r1, .L36+28
	ldrne	r3, [r3]
	ldr	r1, [r1]
	strne	r3, [r6, #4]
	ldrne	r3, [r2]
	tst	r3, r1
	beq	.L12
	ldr	r1, .L36+32
	ldr	r3, [r6, #4]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r6, #4]
	ldr	r3, [r2]
.L12:
	ldr	r2, .L36+36
	mov	r0, r6
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L36+40
	ldrne	r3, [r6, #4]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r6, #4]
	bl	ucom_status_change
.L3:
	mov	r0, r4
	bl	usbd_xfer_max_len
	mov	r1, #0
	mov	r2, r0
	mov	r0, r4
	bl	usbd_xfer_set_frame_len
	mov	r0, r4
	bl	usbd_transfer_submit
	b	.L1
.L31:
	mov	r0, r4
	bl	usbd_xfer_set_stall
	b	.L3
.L34:
	ldr	r0, .L36+44
	bl	DPRINTF
	b	.L3
.L9:
	ldr	r0, .L36+48
	bl	DPRINTF
	b	.L3
.L33:
	ldr	r0, .L36+52
	bl	DPRINTF
	b	.L3
.L35:
	ldr	r0, .L36+56
	bl	DPRINTF
	b	.L3
.L32:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC6
	.word	USB_ERR_CANCELLED
	.word	.LC1
	.word	UCDC_NOTIFICATION
	.word	.LC4
	.word	UCDC_N_SERIAL_RI
	.word	SER_RI
	.word	UCDC_N_SERIAL_DSR
	.word	SER_DSR
	.word	UCDC_N_SERIAL_DCD
	.word	SER_DCD
	.word	.LC2
	.word	.LC5
	.word	.LC0
	.word	.LC3
	.size	umodem_intr_read_callback, .-umodem_intr_read_callback
	.comm	USB_ERR_CANCELLED,4,4
	.comm	UCDC_N_SERIAL_RI,4,4
	.comm	UCDC_N_SERIAL_DSR,4,4
	.comm	UCDC_N_SERIAL_DCD,4,4
	.comm	UCDC_NOTIFICATION,4,4
	.comm	SER_RI,4,4
	.comm	SER_DSR,4,4
	.comm	SER_DCD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
