	.file	"extr_pci.c_ath10k_pci_dump_memory.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"memory region %s size %d is larger that remaining ramdump buffer size %zu\n"
	.align 8
.LC1:
	.string	"failed to switch ram config to IRAM for section %s: %d\n"
	.text
	.p2align 4
	.type	ath10k_pci_dump_memory, @function
ath10k_pci_dump_memory:
.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
	mov	r14, rdi
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	lockdep_assert_held@PLT
	test	rbp, rbp
	je	.L1
	mov	rdi, r14
	call	ath10k_coredump_get_mem_layout@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	rbx, QWORD PTR 8[rbp]
	mov	rbp, QWORD PTR 0[rbp]
	xor	esi, esi
	mov	r15, QWORD PTR 8[rax]
	mov	rdx, rbp
	mov	rdi, rbx
	call	memset@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L1
	mov	DWORD PTR 4[rsp], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r14
	call	ath10k_pci_dump_memory_generic@PLT
	test	eax, eax
	js	.L13
	movsx	r12, eax
.L12:
	movsx	rdi, DWORD PTR 8[r15]
	call	cpu_to_le32@PLT
	movsx	rdi, DWORD PTR 12[r15]
	mov	QWORD PTR 16[rbx], rax
	call	cpu_to_le32@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR [rbx], rax
	test	r12, r12
	je	.L1
	mov	rax, -24
	mov	rdx, QWORD PTR 8[rsp]
	add	DWORD PTR 4[rsp], 1
	lea	rbx, 0[r13+r12*4]
	sub	rax, r12
	add	r15, 24
	add	rbp, rax
	mov	eax, DWORD PTR 4[rsp]
	cmp	DWORD PTR [rdx], eax
	jle	.L1
.L14:
	mov	rcx, QWORD PTR [r15]
	cmp	rcx, rbp
	ja	.L25
	mov	eax, DWORD PTR 8[r15]
	cmp	eax, DWORD PTR ATH10K_MEM_REGION_TYPE_IRAM1[rip]
	je	.L6
	cmp	eax, DWORD PTR ATH10K_MEM_REGION_TYPE_IRAM2[rip]
	je	.L6
	lea	r13, 96[rbx]
	cmp	eax, 128
	je	.L9
.L27:
	cmp	eax, 129
	jne	.L26
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r14
	call	ath10k_pci_dump_memory_reg@PLT
	mov	r12, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movsx	rdi, DWORD PTR 8[r15]
	call	cpu_to_le32@PLT
	movsx	rdi, DWORD PTR 12[r15]
	mov	QWORD PTR 16[rbx], rax
	call	cpu_to_le32@PLT
	xor	edi, edi
	mov	QWORD PTR 8[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR [rbx], rax
.L1:
	add	rsp, 24
	.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
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[r15]
	mov	rdi, r14
	sar	esi, 20
	movsx	rsi, esi
	call	ath10k_pci_set_ram_config@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR 8[r15]
	lea	r13, 96[rbx]
	cmp	eax, 128
	jne	.L27
.L9:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r14
	call	ath10k_pci_dump_memory_sram@PLT
	mov	r12, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR 16[r15]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8, rbp
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	jmp	ath10k_warn@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[r15]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	ecx, eax
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	lea	rsi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	jmp	ath10k_warn@PLT
	.cfi_endproc
.LFE0:
	.size	ath10k_pci_dump_memory, .-ath10k_pci_dump_memory
	.comm	ATH10K_MEM_REGION_TYPE_IRAM2,4,4
	.comm	ATH10K_MEM_REGION_TYPE_IRAM1,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_pci.c_ath10k_pci_dump_memory.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memory region %s size %d is larger that remaining r"
	.ascii	"amdump buffer size %zu\012\000"
	.align	2
.LC1:
	.ascii	"failed to switch ram config to IRAM for section %s:"
	.ascii	" %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_pci_dump_memory, %function
ath10k_pci_dump_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	sub	sp, sp, #12
	mov	r8, r0
	bl	lockdep_assert_held
	cmp	r4, #0
	beq	.L1
	mov	r0, r8
	bl	ath10k_coredump_get_mem_layout
	subs	r9, r0, #0
	beq	.L1
	ldr	r5, [r4, #4]
	ldr	r6, [r4]
	mov	r0, r5
	mov	r2, r6
	mov	r1, #0
	ldr	r4, [r9, #4]
	bl	memset
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L1
	mov	r7, #0
	b	.L14
.L26:
	mov	r2, fp
	mov	r1, r4
	mov	r0, r8
	bl	ath10k_pci_dump_memory_generic
	subs	r10, r0, #0
	blt	.L13
.L12:
	ldr	r0, [r4, #4]
	bl	cpu_to_le32
	str	r0, [r5, #8]
	ldr	r0, [r4, #8]
	bl	cpu_to_le32
	str	r0, [r5, #4]
	mov	r0, r10
	bl	cpu_to_le32
	cmp	r10, #0
	str	r0, [r5]
	beq	.L1
	mvn	r3, #11
	ldr	r2, [r9]
	add	r7, r7, #1
	sub	r3, r3, r10
	cmp	r2, r7
	add	r5, fp, r10, lsl #2
	add	r6, r6, r3
	add	r4, r4, #16
	ble	.L1
.L14:
	ldr	r3, [r4]
	cmp	r3, r6
	bhi	.L25
	ldr	r2, .L28
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L6
	ldr	r2, .L28+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L6
	cmp	r3, #128
	add	fp, r5, #48
	beq	.L9
.L27:
	cmp	r3, #129
	bne	.L26
	mov	r2, fp
	mov	r1, r4
	mov	r0, r8
	bl	ath10k_pci_dump_memory_reg
	mov	r10, r0
	b	.L12
.L13:
	ldr	r0, [r4, #4]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r5, #8]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5, #4]
	bl	cpu_to_le32
	str	r0, [r5]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r1, [r4, #8]
	mov	r0, r8
	asr	r1, r1, #20
	bl	ath10k_pci_set_ram_config
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r4, #4]
	add	fp, r5, #48
	cmp	r3, #128
	bne	.L27
.L9:
	mov	r2, fp
	mov	r1, r4
	mov	r0, r8
	bl	ath10k_pci_dump_memory_sram
	mov	r10, r0
	b	.L12
.L25:
	ldr	r2, [r4, #12]
	mov	r0, r8
	ldr	r1, .L28+8
	str	r6, [sp]
	bl	ath10k_warn
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r3, r0
	mov	r0, r8
	ldr	r2, [r4, #12]
	ldr	r1, .L28+12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ath10k_warn
.L29:
	.align	2
.L28:
	.word	ATH10K_MEM_REGION_TYPE_IRAM1
	.word	ATH10K_MEM_REGION_TYPE_IRAM2
	.word	.LC0
	.word	.LC1
	.size	ath10k_pci_dump_memory, .-ath10k_pci_dump_memory
	.comm	ATH10K_MEM_REGION_TYPE_IRAM2,4,4
	.comm	ATH10K_MEM_REGION_TYPE_IRAM1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
