	.file	"extr_usb.c_brcmf_usb_prepare_fw_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".bin"
	.text
	.p2align 4
	.type	brcmf_usb_prepare_fw_request, @function
brcmf_usb_prepare_fw_request:
.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
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	r12, rsp
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 8[rdi]
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], eax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR brcmf_usb_fwnames[rip]
	mov	ebp, eax
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	r9d, ebp
	mov	rdx, QWORD PTR brcmf_usb_fwnames[rip]
	mov	ecx, eax
	mov	r8, r12
	call	brcmf_fw_alloc_request@PLT
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR [rax]
	mov	esi, DWORD PTR BRCMF_FW_TYPE_BINARY[rip]
	mov	rcx, QWORD PTR BRCMF_USB_FW_CODE[rip]
	mov	DWORD PTR [rdx+rcx*4], esi
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	brcmf_usb_prepare_fw_request, .-brcmf_usb_prepare_fw_request
	.comm	brcmf_usb_fwnames,8,8
	.comm	BRCMF_USB_FW_CODE,8,8
	.comm	BRCMF_FW_TYPE_BINARY,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.c_brcmf_usb_prepare_fw_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".bin\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcmf_usb_prepare_fw_request, %function
brcmf_usb_prepare_fw_request:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L10
	ldr	r1, [r0, #8]
	ldr	r6, [r2]
	ldr	ip, .L10+4
	ldr	r2, .L10+8
	sub	sp, sp, #24
	mov	r0, r6
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	ldr	r7, [r3, #4]
	ldr	r8, [r3]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	bl	ARRAY_SIZE
	add	r5, sp, #12
	mov	r4, r0
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	ip, r0
	mov	r1, r8
	mov	r3, r4
	mov	r2, r6
	mov	r0, r7
	str	r5, [sp]
	str	ip, [sp, #4]
	bl	brcmf_fw_alloc_request
	cmp	r0, #0
	beq	.L1
	ldr	r2, .L10+12
	ldr	r3, .L10+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r0]
	str	r1, [r3, r2, lsl #2]
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	brcmf_usb_fwnames
	.word	.LC1
	.word	.LC0
	.word	BRCMF_FW_TYPE_BINARY
	.word	BRCMF_USB_FW_CODE
	.size	brcmf_usb_prepare_fw_request, .-brcmf_usb_prepare_fw_request
	.comm	brcmf_usb_fwnames,4,4
	.comm	BRCMF_USB_FW_CODE,4,4
	.comm	BRCMF_FW_TYPE_BINARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
