	.file	"extr_main.c_wl12xx_read_fwlog_panic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Reading FW panic log"
	.text
	.p2align 4
	.type	wl12xx_read_fwlog_panic, @function
wl12xx_read_fwlog_panic:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED[rip], eax
	jne	.L28
	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
	cmp	QWORD PTR 8[rdi], 0
	jne	.L32
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	wl1271_info@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR WL12XX_HW_BLOCK_SIZE[rip]
	call	kmalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	mov	rdi, rbx
	call	wl1271_ps_elp_wakeup@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR 44[rbx]
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR WL12XX_FWLOG_OUTPUT_DBG_PINS[rip]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L33
.L7:
	mov	rdx, QWORD PTR 32[rbx]
	mov	esi, DWORD PTR 40[rbx]
	mov	rdi, rbx
	call	wlcore_fw_status@PLT
	test	eax, eax
	js	.L6
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR WL12XX_FWLOG_CONTINUOUS[rip]
	cmp	QWORD PTR 24[rbx], rax
	je	.L34
	mov	r14, rbp
	mov	r12d, 32
	mov	r13d, 8
.L9:
	add	r12, r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r15
	call	le32_to_cpup@PLT
	mov	rdx, QWORD PTR WL12XX_HW_BLOCK_SIZE[rip]
	mov	rsi, r12
	mov	rdi, rbx
	mov	rbp, rax
	sub	rdx, r13
	call	wl12xx_copy_fwlog@PLT
	test	eax, eax
	je	.L10
	test	rbp, rbp
	je	.L10
	cmp	rbp, r14
	je	.L10
.L11:
	mov	rdx, QWORD PTR WL12XX_HW_BLOCK_SIZE[rip]
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	xor	r8d, r8d
	mov	rdx, r15
	mov	rsi, rbp
	mov	rcx, QWORD PTR WL12XX_HW_BLOCK_SIZE[rip]
	mov	rdi, rbx
	call	wlcore_read_hwaddr@PLT
	test	eax, eax
	jns	.L35
.L6:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	rdi, rbx
	call	wl12xx_cmd_stop_fwlog@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r14, QWORD PTR WLCORE_FW_LOG_END[rip]
	mov	r12d, 48
	mov	r13d, 12
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, 4[rbx]
	call	wake_up_interruptible@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wl12xx_read_fwlog_panic, .-wl12xx_read_fwlog_panic
	.comm	WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED,4,4
	.comm	WLCORE_FW_LOG_END,8,8
	.comm	WL12XX_HW_BLOCK_SIZE,8,8
	.comm	WL12XX_FWLOG_OUTPUT_DBG_PINS,8,8
	.comm	WL12XX_FWLOG_CONTINUOUS,8,8
	.comm	GFP_KERNEL,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_main.c_wl12xx_read_fwlog_panic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Reading FW panic log\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl12xx_read_fwlog_panic, %function
wl12xx_read_fwlog_panic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L34
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bxne	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	mov	r4, r0
	cmp	r3, #0
	sub	sp, sp, #12
	bne	.L31
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r0, .L34+4
	bl	wl1271_info
	ldr	r7, .L34+8
	ldr	r3, .L34+12
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L1
	mov	r0, r4
	bl	wl1271_ps_elp_wakeup
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L34+16
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L32
.L7:
	mov	r0, r4
	ldr	r2, [r4, #20]
	ldr	r1, [r4, #24]
	bl	wlcore_fw_status
	cmp	r0, #0
	blt	.L6
	ldr	r3, [r4, #20]
	ldr	r0, [r3]
	bl	le32_to_cpu
	subs	r5, r0, #0
	beq	.L6
	ldr	r3, .L34+20
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	mov	r9, #0
	cmp	r2, r3
	moveq	r8, #32
	movne	r8, #16
	ldreq	r3, .L34+24
	moveq	r10, #8
	movne	fp, r5
	movne	r10, #4
	ldreq	fp, [r3]
	add	r8, r6, r8
	b	.L11
.L33:
	mov	r0, r6
	bl	le32_to_cpup
	ldr	r2, [r7]
	mov	r5, r0
	mov	r1, r8
	mov	r0, r4
	sub	r2, r2, r10
	bl	wl12xx_copy_fwlog
	cmp	r0, #0
	beq	.L10
	cmp	r5, #0
	cmpne	r5, fp
	beq	.L10
.L11:
	mov	r1, #0
	ldr	r2, [r7]
	mov	r0, r6
	bl	memset
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	ldr	r3, [r7]
	str	r9, [sp]
	bl	wlcore_read_hwaddr
	cmp	r0, #0
	bge	.L33
.L6:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kfree
.L32:
	mov	r0, r4
	bl	wl12xx_cmd_stop_fwlog
	b	.L7
.L10:
	add	r0, r4, #4
	bl	wake_up_interruptible
	b	.L6
.L35:
	.align	2
.L34:
	.word	WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED
	.word	.LC0
	.word	WL12XX_HW_BLOCK_SIZE
	.word	GFP_KERNEL
	.word	WL12XX_FWLOG_OUTPUT_DBG_PINS
	.word	WL12XX_FWLOG_CONTINUOUS
	.word	WLCORE_FW_LOG_END
	.size	wl12xx_read_fwlog_panic, .-wl12xx_read_fwlog_panic
	.comm	WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED,4,4
	.comm	WLCORE_FW_LOG_END,4,4
	.comm	WL12XX_HW_BLOCK_SIZE,4,4
	.comm	WL12XX_FWLOG_OUTPUT_DBG_PINS,4,4
	.comm	WL12XX_FWLOG_CONTINUOUS,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
