	.file	"extr_uslcom.c_uslcom_control_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"status change msr=0x%02x (was 0x%02x)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"error=%s\n"
	.text
	.p2align 4
	.type	uslcom_control_callback, @function
uslcom_control_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	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
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	usbd_xfer_softc@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	USB_GET_STATE@PLT
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	cmp	DWORD PTR USB_ERR_CANCELLED[rip], r12d
	jne	.L27
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 32
	.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	rdi, rbp
	mov	esi, 1
	call	usbd_xfer_get_frame@PLT
	xor	esi, esi
	mov	rdx, rsp
	mov	ecx, 4
	mov	rdi, rax
	call	usbd_copy_out@PLT
	mov	eax, DWORD PTR [rsp]
	mov	ebp, eax
	and	ebp, DWORD PTR USLCOM_MHS_CTS[rip]
	cmovne	ebp, DWORD PTR SER_CTS[rip]
	test	DWORD PTR USLCOM_MHS_DSR[rip], eax
	je	.L6
	or	ebp, DWORD PTR SER_DSR[rip]
.L6:
	test	DWORD PTR USLCOM_MHS_RI[rip], eax
	je	.L7
	or	ebp, DWORD PTR SER_RI[rip]
.L7:
	test	DWORD PTR USLCOM_MHS_DCD[rip], eax
	je	.L8
	or	ebp, DWORD PTR SER_DCD[rip]
.L8:
	mov	edx, DWORD PTR [rbx]
	cmp	edx, ebp
	je	.L1
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DPRINTF@PLT
	mov	DWORD PTR [rbx], ebp
	lea	rdi, 8[rbx]
	call	ucom_status_change@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR USLCOM_READ[rip]
	mov	edi, DWORD PTR 8[rsp]
	xor	esi, esi
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR USLCOM_GET_MDMSTS[rip]
	mov	DWORD PTR 12[rsp], eax
	call	USETW@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 4[rsp]
	call	USETW@PLT
	mov	edi, DWORD PTR [rsp]
	mov	esi, 4
	call	USETW@PLT
	mov	rdi, rbp
	mov	esi, 2
	call	usbd_xfer_set_frames@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 20
	call	usbd_xfer_set_frame_len@PLT
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, 1
	call	usbd_xfer_set_frame_len@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	usbd_xfer_get_frame@PLT
	mov	rdx, rsp
	mov	ecx, 20
	xor	esi, esi
	mov	rdi, rax
	call	usbd_copy_in@PLT
	mov	rdi, rbp
	call	usbd_transfer_submit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, r12d
	call	usbd_errstr@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	DPRINTF@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uslcom_control_callback, .-uslcom_control_callback
	.comm	USLCOM_READ,4,4
	.comm	USLCOM_MHS_RI,4,4
	.comm	USLCOM_MHS_DSR,4,4
	.comm	USLCOM_MHS_DCD,4,4
	.comm	USLCOM_MHS_CTS,4,4
	.comm	USLCOM_GET_MDMSTS,4,4
	.comm	USB_ERR_CANCELLED,4,4
	.comm	SER_RI,4,4
	.comm	SER_DSR,4,4
	.comm	SER_DCD,4,4
	.comm	SER_CTS,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_uslcom.c_uslcom_control_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status change msr=0x%02x (was 0x%02x)\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	uslcom_control_callback, %function
uslcom_control_callback:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L30
	sub	sp, sp, #24
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	usbd_xfer_softc
	mov	r6, r0
	mov	r0, r4
	bl	USB_GET_STATE
	cmp	r0, #128
	beq	.L2
	cmp	r0, #129
	beq	.L3
	ldr	r3, .L30+4
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L28
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	mov	r1, #1
	bl	usbd_xfer_get_frame
	mov	r3, #4
	mov	r2, sp
	mov	r1, #0
	bl	usbd_copy_out
	ldr	r2, .L30+8
	ldr	r3, [sp]
	ldr	r4, [r2]
	ands	r4, r3, r4
	ldrne	r2, .L30+12
	ldrne	r4, [r2]
	ldr	r2, .L30+16
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L30+20
	ldrne	r2, [r2]
	orrne	r4, r4, r2
	ldr	r2, .L30+24
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L30+28
	ldrne	r2, [r2]
	orrne	r4, r4, r2
	ldr	r2, .L30+32
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L30+36
	ldr	r2, [r6]
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	cmp	r2, r4
	beq	.L1
	mov	r1, r4
	ldr	r0, .L30+40
	bl	DPRINTF
	mov	r0, r6
	str	r4, [r0], #8
	bl	ucom_status_change
	b	.L1
.L3:
	ldr	r2, .L30+44
	ldr	r3, .L30+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, #0
	ldr	r0, [sp, #8]
	str	r3, [sp, #12]
	str	r2, [sp, #16]
	bl	USETW
	ldr	r1, [r6, #4]
	ldr	r0, [sp, #4]
	bl	USETW
	mov	r1, #4
	ldr	r0, [sp]
	bl	USETW
	mov	r1, #2
	mov	r0, r4
	bl	usbd_xfer_set_frames
	mov	r2, #20
	mov	r1, #0
	mov	r0, r4
	bl	usbd_xfer_set_frame_len
	mov	r2, #4
	mov	r1, #1
	mov	r0, r4
	bl	usbd_xfer_set_frame_len
	mov	r1, #0
	mov	r0, r4
	bl	usbd_xfer_get_frame
	mov	r3, #20
	mov	r2, sp
	mov	r1, #0
	bl	usbd_copy_in
	mov	r0, r4
	bl	usbd_transfer_submit
	b	.L1
.L28:
	mov	r0, r5
	bl	usbd_errstr
	mov	r1, r0
	ldr	r0, .L30+52
	bl	DPRINTF
	b	.L1
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	USB_ERR_CANCELLED
	.word	USLCOM_MHS_CTS
	.word	SER_CTS
	.word	USLCOM_MHS_DSR
	.word	SER_DSR
	.word	USLCOM_MHS_RI
	.word	SER_RI
	.word	USLCOM_MHS_DCD
	.word	SER_DCD
	.word	.LC0
	.word	USLCOM_READ
	.word	USLCOM_GET_MDMSTS
	.word	.LC1
	.size	uslcom_control_callback, .-uslcom_control_callback
	.comm	USLCOM_READ,4,4
	.comm	USLCOM_MHS_RI,4,4
	.comm	USLCOM_MHS_DSR,4,4
	.comm	USLCOM_MHS_DCD,4,4
	.comm	USLCOM_MHS_CTS,4,4
	.comm	USLCOM_GET_MDMSTS,4,4
	.comm	USB_ERR_CANCELLED,4,4
	.comm	SER_RI,4,4
	.comm	SER_DSR,4,4
	.comm	SER_DCD,4,4
	.comm	SER_CTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
