	.file	"extr_cbaf.c_cbaf_cc_upload.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Trying to upload CC:\n"
.LC1:
	.string	"  CHID       %16ph\n"
.LC2:
	.string	"  CDID       %16ph\n"
.LC3:
	.string	"  Bandgroups 0x%04x\n"
	.text
	.p2align 4
	.type	cbaf_cc_upload, @function
cbaf_cc_upload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 32[rdi]
	movdqu	xmm0, XMMWORD PTR cbaf_cc_data_defaults[rip]
	lea	r12, 8[rax]
	mov	eax, DWORD PTR 24[rdi]
	movups	XMMWORD PTR 0[rbp], xmm0
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR 20[rdi]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 16[rdi]
	mov	edi, DWORD PTR 12[rdi]
	mov	DWORD PTR 12[rbp], eax
	call	cpu_to_le16@PLT
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 8[rbp], eax
	xor	eax, eax
	call	dev_dbg@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	dev_dbg@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	mov	r15d, DWORD PTR USB_CTRL_SET_TIMEOUT[rip]
	mov	r13d, DWORD PTR CBAF_REQ_SET_ASSOCIATION_RESPONSE[rip]
	mov	rax, QWORD PTR [rax]
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	or	r12d, DWORD PTR USB_TYPE_CLASS[rip]
	or	r12d, DWORD PTR USB_RECIP_INTERFACE[rip]
	mov	r14d, DWORD PTR [rax]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, r12d
	push	r15
	.cfi_def_cfa_offset 80
	mov	r9d, r14d
	mov	edx, r13d
	mov	esi, eax
	push	16
	.cfi_def_cfa_offset 88
	mov	r8d, 513
	push	rbp
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	cbaf_cc_upload, .-cbaf_cc_upload
	.comm	cbaf_cc_data_defaults,16,16
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	CBAF_REQ_SET_ASSOCIATION_RESPONSE,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_cc_upload.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Trying to upload CC:\012\000"
	.align	2
.LC1:
	.ascii	"  CHID       %16ph\012\000"
	.align	2
.LC2:
	.ascii	"  CDID       %16ph\012\000"
	.align	2
.LC3:
	.ascii	"  Bandgroups 0x%04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cbaf_cc_upload, %function
cbaf_cc_upload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r4, [r0, #24]
	ldr	r3, .L4
	ldr	lr, [r0, #20]
	ldr	ip, [r0, #16]
	ldr	r6, [r0]
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	ldr	r3, [r5, #12]
	sub	sp, sp, #24
	stm	r4, {ip, lr}
	str	r3, [r4, #12]
	ldr	r0, [r5, #8]
	bl	cpu_to_le16
	add	r6, r6, #4
	str	r0, [r4, #8]
	ldr	r1, .L4+4
	mov	r0, r6
	bl	dev_dbg
	ldr	r2, [r4, #4]
	mov	r0, r6
	ldr	r1, .L4+8
	bl	dev_dbg
	ldr	r2, [r4]
	mov	r0, r6
	ldr	r1, .L4+12
	bl	dev_dbg
	ldr	r2, [r5, #8]
	mov	r0, r6
	ldr	r1, .L4+16
	bl	dev_dbg
	ldr	r6, [r5, #4]
	mov	r1, #0
	mov	r0, r6
	bl	usb_sndctrlpipe
	mov	r3, #16
	ldr	r2, .L4+20
	mov	r1, r0
	ldr	r2, [r2]
	ldr	r0, [r5]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	str	r4, [sp, #8]
	ldr	ip, [r0]
	ldr	r2, .L4+24
	ldr	r3, .L4+28
	ldr	r0, .L4+32
	ldr	r2, [r2]
	ldr	r5, [ip]
	ldr	r3, [r3]
	ldr	r4, [r0]
	ldr	lr, .L4+36
	ldr	ip, .L4+40
	str	r5, [sp, #4]
	orr	r3, r2, r3
	mov	r0, r6
	ldr	r2, [lr]
	orr	r3, r3, r4
	str	ip, [sp]
	bl	usb_control_msg
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	cbaf_cc_data_defaults
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	USB_CTRL_SET_TIMEOUT
	.word	USB_DIR_OUT
	.word	USB_TYPE_CLASS
	.word	USB_RECIP_INTERFACE
	.word	CBAF_REQ_SET_ASSOCIATION_RESPONSE
	.word	513
	.size	cbaf_cc_upload, .-cbaf_cc_upload
	.comm	cbaf_cc_data_defaults,16,4
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	USB_CTRL_SET_TIMEOUT,4,4
	.comm	CBAF_REQ_SET_ASSOCIATION_RESPONSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
