	.file	"extr_cbaf.c_cbaf_cdid_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot request device information: %d\n"
	.align 8
.LC1:
	.string	"Not enough data in DEVICE_INFO reply (%zu vs %zu bytes needed)\n"
	.text
	.p2align 4
	.type	cbaf_cdid_get, @function
cbaf_cdid_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR 32[rdi]
	mov	r15d, DWORD PTR 12[rdi]
	mov	edi, DWORD PTR 24[rdi]
	lea	r13, 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	r12d, DWORD PTR USB_DIR_IN[rip]
	mov	r14d, DWORD PTR CBAF_REQ_GET_ASSOCIATION_REQUEST[rip]
	or	r12d, DWORD PTR USB_TYPE_CLASS[rip]
	mov	r9d, DWORD PTR [rax]
	or	r12d, DWORD PTR USB_RECIP_INTERFACE[rip]
	mov	DWORD PTR 12[rsp], r9d
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR 24[rbx]
	mov	ecx, r12d
	push	1000
	.cfi_def_cfa_offset 96
	mov	esi, eax
	mov	r8d, 512
	mov	edx, r14d
	push	r15
	.cfi_def_cfa_offset 104
	push	rbp
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR 44[rsp]
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	ecx, 16
	cmp	eax, 15
	jg	.L10
.L4:
	movsx	rdx, r12d
	cmp	rdx, rcx
	jb	.L11
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 8[rbx]
	xor	r12d, r12d
	mov	edx, DWORD PTR CBA_NAME_LEN[rip]
	call	strlcpy@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	call	le16_to_cpu@PLT
	mov	DWORD PTR [rbx], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 12[rbp]
	call	le32_to_cpu@PLT
	movsx	rcx, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	movsx	rdx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cbaf_cdid_get, .-cbaf_cdid_get
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_IN,4,4
	.comm	CBA_NAME_LEN,4,4
	.comm	CBAF_REQ_GET_ASSOCIATION_REQUEST,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_cbaf.c_cbaf_cdid_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot request device information: %d\012\000"
	.align	2
.LC1:
	.ascii	"Not enough data in DEVICE_INFO reply (%zu vs %zu by"
	.ascii	"tes needed)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cbaf_cdid_get, %function
cbaf_cdid_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r5, [r0, #20]
	sub	sp, sp, #28
	ldr	r7, [r0, #16]
	mov	r1, #0
	mov	r0, r5
	ldr	r6, [r4, #24]
	bl	usb_rcvctrlpipe
	mov	r3, #1000
	mov	ip, #512
	ldr	r2, [r4, #12]
	str	r6, [sp, #8]
	str	r2, [sp, #12]
	ldr	r2, [r4, #16]
	str	r3, [sp, #16]
	mov	r1, r0
	ldr	r3, .L11
	ldr	r0, [r2]
	ldr	r2, .L11+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	lr, [r0]
	orr	r3, r3, r2
	ldr	r2, .L11+8
	mov	r0, r5
	ldr	r2, [r2]
	str	lr, [sp, #4]
	orr	r3, r3, r2
	ldr	r2, .L11+12
	str	ip, [sp]
	ldr	r2, [r2]
	bl	usb_control_msg
	subs	r5, r0, #0
	add	r7, r7, #4
	blt	.L9
	cmp	r5, #15
	movle	r3, #16
	bgt	.L10
.L4:
	mov	r0, r7
	mov	r2, r5
	ldr	r1, .L11+16
	bl	dev_err
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r0, [r6, #12]
	bl	le32_to_cpu
	cmp	r5, r0
	mov	r3, r0
	bcc	.L4
	ldr	r3, .L11+20
	ldr	r1, [r6, #8]
	ldr	r2, [r3]
	ldr	r0, [r4, #8]
	bl	strlcpy
	ldm	r6, {r0, r3}
	str	r3, [r4, #4]
	bl	le16_to_cpu
	mov	r5, #0
	str	r0, [r4]
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r0, r7
	mov	r2, r5
	ldr	r1, .L11+24
	bl	dev_err
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	USB_DIR_IN
	.word	USB_TYPE_CLASS
	.word	USB_RECIP_INTERFACE
	.word	CBAF_REQ_GET_ASSOCIATION_REQUEST
	.word	.LC1
	.word	CBA_NAME_LEN
	.word	.LC0
	.size	cbaf_cdid_get, .-cbaf_cdid_get
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_IN,4,4
	.comm	CBA_NAME_LEN,4,4
	.comm	CBAF_REQ_GET_ASSOCIATION_REQUEST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
