	.file	"extr_pm8001_ctl.c_pm8001_show_update_fw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"status=%x %s\n"
	.text
	.p2align 4
	.type	pm8001_show_update_fw, @function
pm8001_show_update_fw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	call	class_to_shost@PLT
	mov	rdi, rax
	call	SHOST_TO_SAS_HA@PLT
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR flash_error_table[rip]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rsi]
	test	rcx, rcx
	jne	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, QWORD PTR 16[rax]
	add	rax, 16
	test	rcx, rcx
	je	.L3
.L4:
	cmp	rdx, rcx
	jne	.L10
.L3:
	cmp	QWORD PTR FLASH_IN_PROGRESS[rip], rdx
	je	.L5
	mov	rdx, QWORD PTR FLASH_OK[rip]
	mov	QWORD PTR [rsi], rdx
.L5:
	mov	r8, QWORD PTR 8[rax]
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	snprintf@PLT
	.cfi_endproc
.LFE0:
	.size	pm8001_show_update_fw, .-pm8001_show_update_fw
	.comm	flash_error_table,8,8
	.comm	PAGE_SIZE,4,4
	.comm	FLASH_OK,8,8
	.comm	FLASH_IN_PROGRESS,8,8
	.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_ctl.c_pm8001_show_update_fw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status=%x %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm8001_show_update_fw, %function
pm8001_show_update_fw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	sub	sp, sp, #8
	mov	r4, r2
	bl	class_to_shost
	bl	SHOST_TO_SAS_HA
	ldr	r3, .L11
	ldr	r2, [r0]
	ldr	r0, [r3]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	mov	r1, r0
	ldr	ip, [r2]
	b	.L4
.L10:
	ldr	r3, [r1]
	mov	r0, r1
	cmp	r3, #0
	beq	.L3
.L4:
	cmp	ip, r3
	mov	r0, r1
	add	r1, r1, #8
	bne	.L10
.L3:
	ldr	r1, .L11+4
	ldr	r1, [r1]
	cmp	r1, ip
	ldrne	r1, .L11+8
	ldrne	r1, [r1]
	strne	r1, [r2]
	ldr	r1, [r0, #4]
	ldr	r2, .L11+12
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L11+16
	bl	snprintf
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L2:
	ldr	ip, [r2]
	b	.L3
.L12:
	.align	2
.L11:
	.word	flash_error_table
	.word	FLASH_IN_PROGRESS
	.word	FLASH_OK
	.word	PAGE_SIZE
	.word	.LC0
	.size	pm8001_show_update_fw, .-pm8001_show_update_fw
	.comm	flash_error_table,4,4
	.comm	PAGE_SIZE,4,4
	.comm	FLASH_OK,4,4
	.comm	FLASH_IN_PROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
