	.file	"extr_usb_transfer.c_usbd_ctrl_transfer_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not setup default USB transfer\n"
	.text
	.p2align 4
	.globl	usbd_ctrl_transfer_setup
	.type	usbd_ctrl_transfer_setup, @function
usbd_ctrl_transfer_setup:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 64[rdi], 0
	je	.L1
	mov	rbx, rdi
	lea	r12, 8[rdi]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	USB_XFER_UNLOCK@PLT
	mov	rdi, QWORD PTR 24[rbx]
.L4:
	mov	rdx, QWORD PTR 40[rbx]
	mov	rax, QWORD PTR 48[rbx]
	mov	esi, DWORD PTR USB_CTRL_XFER_MAX[rip]
	mov	QWORD PTR [rax], rdx
	call	usbd_transfer_unsetup@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 32[rbx], 0
	mov	DWORD PTR 4[rsp], 0
	mov	r8d, DWORD PTR USB_CTRL_XFER_MAX[rip]
	cmp	QWORD PTR [rax], 0
	mov	ecx, DWORD PTR usb_control_ep_cfg[rip]
	je	.L9
	mov	ecx, DWORD PTR usb_control_ep_quirk_cfg[rip]
.L9:
	lea	rsi, 4[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdx, QWORD PTR 24[rbx]
	xor	r9d, r9d
	push	r12
	.cfi_def_cfa_offset 64
	mov	rdi, rbx
	call	usbd_transfer_setup@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	jne	.L19
.L3:
	mov	rdi, QWORD PTR 24[rbx]
	mov	rbp, QWORD PTR [rdi]
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	call	USB_XFER_LOCK@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L5
	mov	rax, QWORD PTR 48[rbx]
	mov	rcx, QWORD PTR 40[rbx]
	cmp	QWORD PTR [rax], rcx
	jne	.L5
	mov	rax, QWORD PTR USB_MODE_DEVICE[rip]
	cmp	QWORD PTR 56[rbx], rax
	jne	.L7
	mov	rdi, rbp
	call	usbd_transfer_start@PLT
.L7:
	mov	rdi, rbp
	call	USB_XFER_UNLOCK@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.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
.L19:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	xor	edi, edi
	call	DPRINTFN@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	usbd_ctrl_transfer_setup, .-usbd_ctrl_transfer_setup
	.comm	usb_control_ep_quirk_cfg,4,4
	.comm	usb_control_ep_cfg,4,4
	.comm	USB_MODE_DEVICE,8,8
	.comm	USB_CTRL_XFER_MAX,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_transfer.c_usbd_ctrl_transfer_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not setup default USB transfer\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	usbd_ctrl_transfer_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbd_ctrl_transfer_setup, %function
usbd_ctrl_transfer_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #32]
	ldr	r2, .L24
	sub	sp, sp, #24
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	beq	.L1
	mov	r4, r0
	ldr	r6, .L24+4
	ldr	r8, .L24+8
	ldr	r7, .L24+12
	b	.L3
.L5:
	mov	r0, r5
	bl	USB_XFER_UNLOCK
	ldr	r0, [r4, #12]
.L4:
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #24]
	ldr	r1, [r6]
	str	r2, [r3]
	bl	usbd_transfer_unsetup
	mov	r3, #0
	mov	r5, #0
	ldr	r2, [r4, #8]
	ldr	r0, [r6]
	ldr	r2, [r2]
	add	r1, r4, #4
	cmp	r2, r3
	str	r3, [r4, #16]
	ldr	r2, [r4, #12]
	str	r3, [sp, #16]
	stm	sp, {r0, r5}
	ldrne	r3, [r7]
	ldreq	r3, [r8]
	str	r1, [sp, #8]
	mov	r0, r4
	add	r1, sp, #16
	bl	usbd_transfer_setup
	cmp	r0, r5
	bne	.L22
.L3:
	ldr	r0, [r4, #12]
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L4
	mov	r0, r5
	bl	USB_XFER_LOCK
	ldr	r2, [r5]
	ldr	r3, [r4]
	cmp	r2, r3
	bne	.L5
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L24+16
	ldr	r2, [r4, #28]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	mov	r0, r5
	bl	usbd_transfer_start
.L7:
	mov	r0, r5
	bl	USB_XFER_UNLOCK
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r5
	ldr	r1, .L24+20
	bl	DPRINTFN
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	USB_CTRL_XFER_MAX
	.word	usb_control_ep_cfg
	.word	usb_control_ep_quirk_cfg
	.word	USB_MODE_DEVICE
	.word	.LC0
	.size	usbd_ctrl_transfer_setup, .-usbd_ctrl_transfer_setup
	.comm	usb_control_ep_quirk_cfg,4,4
	.comm	usb_control_ep_cfg,4,4
	.comm	USB_MODE_DEVICE,4,4
	.comm	USB_CTRL_XFER_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
