	.file	"extr_i40iw_utils.c_i40iw_debug_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"starting address virt=%p phy=%llxh\n"
	.section	.rodata.str1.1
.LC2:
	.string	"index %03d val: %016llx\n"
	.text
	.p2align 4
	.globl	i40iw_debug_buf
	.type	i40iw_debug_buf, @function
i40iw_debug_buf:
.LFB0:
	.cfi_startproc
	endbr64
	test	DWORD PTR [rdi], esi
	jne	.L13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15d, esi
	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
	mov	r12, rcx
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	i40iw_debug@PLT
	mov	rdi, r12
	call	virt_to_phys@PLT
	mov	rcx, r12
	mov	esi, r15d
	mov	rdi, r14
	mov	r8, rax
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	i40iw_debug@PLT
	test	ebp, ebp
	jle	.L1
	sub	ebp, 1
	xor	ebx, ebx
	lea	r13, .LC2[rip]
	and	ebp, -8
	add	ebp, 8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, ebx
	mov	ecx, ebx
	mov	rdx, r13
	mov	esi, r15d
	sar	eax, 3
	mov	rdi, r14
	add	ebx, 8
	cdqe
	mov	r8d, DWORD PTR [r12+rax*4]
	xor	eax, eax
	call	i40iw_debug@PLT
	cmp	ebp, ebx
	jne	.L3
.L1:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	i40iw_debug_buf, .-i40iw_debug_buf
	.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_i40iw_utils.c_i40iw_debug_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.align	2
.LC1:
	.ascii	"starting address virt=%p phy=%llxh\012\000"
	.align	2
.LC2:
	.ascii	"index %03d val: %016llx\012\000"
	.text
	.align	2
	.global	i40iw_debug_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	i40iw_debug_buf, %function
i40iw_debug_buf:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	tst	r1, ip
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r3
	sub	sp, sp, #12
	mov	r3, r2
	ldr	r2, .L13
	mov	r6, r1
	mov	r5, r0
	bl	i40iw_debug
	mov	r0, r8
	bl	virt_to_phys
	asr	r1, r0, #31
	stm	sp, {r0-r1}
	mov	r3, r8
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L13+4
	bl	i40iw_debug
	ldr	r3, [sp, #40]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	sub	r7, r3, #1
	bic	r7, r7, #7
	ldr	r9, .L13+8
	add	r7, r7, #8
.L3:
	asr	r3, r4, #3
	ldr	r1, [r8, r3, lsl #2]
	mov	r2, r9
	mov	r3, r4
	str	r1, [sp]
	mov	r0, r5
	mov	r1, r6
	add	r4, r4, #8
	bl	i40iw_debug
	cmp	r7, r4
	bne	.L3
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	i40iw_debug_buf, .-i40iw_debug_buf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
