	.file	"extr_usbtest.c_halt_simple.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	halt_simple, @function
halt_simple:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	testdev_to_usbdev@PLT
	mov	edx, 512
	xor	esi, esi
	mov	edi, eax
	call	simple_alloc_urb@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 8[rbp]
	mov	r12, rax
	xor	r13d, r13d
	test	rdi, rdi
	jne	.L13
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L14
.L5:
	mov	rdi, r12
	call	simple_free_urb@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	usb_pipeendpoint@PLT
	or	eax, DWORD PTR USB_DIR_IN[rip]
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [r12], rax
	call	test_halt@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L5
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
.L14:
	call	usb_pipeendpoint@PLT
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [r12], rax
	call	test_halt@PLT
	mov	r13d, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	halt_simple, .-halt_simple
	.comm	USB_DIR_IN,4,4
	.comm	ENOMEM,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_usbtest.c_halt_simple.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	halt_simple, %function
halt_simple:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	testdev_to_usbdev
	mov	r2, #512
	mov	r1, #0
	bl	simple_alloc_urb
	subs	r5, r0, #0
	beq	.L14
	ldr	r4, [r6, #4]
	cmp	r4, #0
	bne	.L15
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L16
.L5:
	mov	r0, r5
	bl	simple_free_urb
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r4
	bl	usb_pipeendpoint
	ldr	r3, .L17
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	str	r2, [r5]
	orr	r1, r0, r1
	mov	r2, r5
	mov	r0, r6
	bl	test_halt
	subs	r4, r0, #0
	blt	.L5
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L5
.L16:
	bl	usb_pipeendpoint
	ldr	r3, [r6]
	mov	r1, r0
	mov	r2, r5
	mov	r0, r6
	str	r3, [r5]
	bl	test_halt
	mov	r4, r0
	b	.L5
.L14:
	ldr	r3, .L17+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	USB_DIR_IN
	.word	ENOMEM
	.size	halt_simple, .-halt_simple
	.comm	USB_DIR_IN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
