	.file	"extr_intel-iommu-debugfs.c_ctx_tbl_walk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ctx_tbl_walk, @function
ctx_tbl_walk:
.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
	movsx	r14, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r14
	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
	xor	ebx, ebx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rax, 0[0+r14*4]
	lea	r15, 16[rsp]
	mov	QWORD PTR [rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	print_tbl_walk@PLT
.L6:
	add	ebx, 1
	cmp	ebx, 256
	je	.L1
.L7:
	pxor	xmm0, xmm0
	xor	ecx, ecx
	mov	edx, ebx
	mov	esi, r12d
	mov	rdi, rbp
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	call	iommu_context_addr@PLT
	mov	r14, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	context_present@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR [rsp]
	add	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 0[r13], r15
	mov	rdi, QWORD PTR DMAR_RTADDR_REG[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	DWORD PTR 16[rsp], r12d
	mov	DWORD PTR 20[rsp], ebx
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 24[rsp], r14
	call	dmar_readq@PLT
	test	DWORD PTR DMA_RTADDR_SMT[rip], eax
	je	.L5
	mov	esi, DWORD PTR [r14]
	mov	rdi, r14
	and	esi, DWORD PTR VTD_PAGE_MASK[rip]
	add	ebx, 1
	mov	DWORD PTR 12[rsp], esi
	call	get_pasid_dir_size@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r13
	mov	edx, eax
	call	pasid_dir_walk@PLT
	cmp	ebx, 256
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 72
	.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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctx_tbl_walk, .-ctx_tbl_walk
	.comm	VTD_PAGE_MASK,4,4
	.comm	DMA_RTADDR_SMT,4,4
	.comm	DMAR_RTADDR_REG,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_intel-iommu-debugfs.c_ctx_tbl_walk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctx_tbl_walk, %function
ctx_tbl_walk:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L16
	sub	sp, sp, #28
	mov	r7, r2
	mov	r8, r0
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, #0
	ldr	fp, .L16+4
	ldr	r10, .L16+8
	lsl	r9, r2, #2
	b	.L7
.L5:
	mov	r0, r8
	bl	print_tbl_walk
.L6:
	add	r5, r5, #1
	cmp	r5, #256
	beq	.L1
.L7:
	mov	r3, #0
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	iommu_context_addr
	subs	r4, r0, #0
	beq	.L1
	bl	context_present
	cmp	r0, #0
	beq	.L6
	ldm	r6, {r0, r3}
	ldr	r2, [fp]
	add	r3, r3, r9
	str	sp, [r8]
	add	r0, r0, r2
	str	r3, [sp, #12]
	str	r7, [sp]
	str	r5, [sp, #4]
	str	r4, [sp, #8]
	bl	dmar_readq
	ldr	r3, [r10]
	tst	r0, r3
	beq	.L5
	ldr	r3, .L16+12
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	and	r4, r1, r3
	bl	get_pasid_dir_size
	add	r5, r5, #1
	mov	r2, r0
	mov	r1, r4
	mov	r0, r8
	bl	pasid_dir_walk
	cmp	r5, #256
	bne	.L7
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	DMAR_RTADDR_REG
	.word	DMA_RTADDR_SMT
	.word	VTD_PAGE_MASK
	.size	ctx_tbl_walk, .-ctx_tbl_walk
	.comm	VTD_PAGE_MASK,4,4
	.comm	DMA_RTADDR_SMT,4,4
	.comm	DMAR_RTADDR_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
