	.file	"extr_pm8001_hwi.c_pm8001_chip_fw_flash_update_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pm8001_chip_fw_flash_update_req
	.type	pm8001_chip_fw_flash_update_req, @function
pm8001_chip_fw_flash_update_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR FW_FLASH[rip]
	sal	rax, 4
	add	rax, QWORD PTR 8[rdi]
	mov	edi, 24
	mov	r12, QWORD PTR 8[rax]
	mov	r13d, DWORD PTR [rax]
	call	kzalloc@PLT
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r12
	mov	r14, rax
	call	memcpy@PLT
	mov	edi, r13d
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 48[rsp], eax
	call	cpu_to_le32@PLT
	mov	edx, DWORD PTR 4[rbx]
	lea	rsi, 8[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 16[rsp], edx
	mov	DWORD PTR 20[rsp], eax
	mov	QWORD PTR 8[r14], r12
	mov	QWORD PTR 16[r14], rbx
	mov	DWORD PTR 4[r14], r13d
	mov	DWORD PTR [r14], eax
	call	pm8001_tag_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	rax, rdx
	sal	rax, 4
	add	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[rax], r14
	mov	QWORD PTR [rax], rdx
	call	pm8001_chip_fw_flash_update_build@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r14
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pm8001_chip_fw_flash_update_req, .-pm8001_chip_fw_flash_update_req
	.comm	GFP_KERNEL,4,4
	.comm	FW_FLASH,8,8
	.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_pm8001_hwi.c_pm8001_chip_fw_flash_update_req.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pm8001_chip_fw_flash_update_req
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm8001_chip_fw_flash_update_req, %function
pm8001_chip_fw_flash_update_req:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L11
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	mov	r4, r1
	ldr	r1, .L11+4
	ldr	lr, .L11+8
	sub	sp, sp, #32
	add	ip, r3, r2, lsl #3
	mov	r6, r0
	ldr	r1, [r1]
	mov	r0, #16
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	ldr	r8, [ip, #4]
	ldr	r7, [r3, r2, lsl #3]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L8
	ldr	r2, [r4]
	ldr	r1, [r4, #12]
	mov	r0, r8
	bl	memcpy
	mov	r0, r7
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r4]
	str	r3, [sp, #24]
	bl	cpu_to_le32
	mov	ip, #0
	ldr	r1, [r4, #8]
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	str	r0, [sp, #20]
	str	ip, [sp, #16]
	str	r1, [sp, #12]
	stmib	sp, {r2, r3}
	str	r4, [r5, #12]
	mov	r1, sp
	mov	r0, r6
	stm	r5, {r3, r7, r8}
	bl	pm8001_tag_alloc
	subs	r4, r0, #0
	bne	.L9
	ldr	r3, [r6]
	ldr	r2, [sp]
	mov	r0, r6
	add	r1, r3, r2, lsl #3
	str	r5, [r1, #4]
	str	r2, [r3, r2, lsl #3]
	add	r1, sp, #4
	bl	pm8001_chip_fw_flash_update_build
	mov	r4, r0
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r5
	bl	kfree
	b	.L1
.L8:
	ldr	r3, .L11+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	FW_FLASH
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	pm8001_chip_fw_flash_update_req, .-pm8001_chip_fw_flash_update_req
	.comm	GFP_KERNEL,4,4
	.comm	FW_FLASH,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
