	.file	"extr_arm-smmu-v3.c_arm_smmu_install_ste_for_dev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arm_smmu_install_ste_for_dev, @function
arm_smmu_install_ste_for_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdi]
	mov	rbx, QWORD PTR 16[rdi]
	test	eax, eax
	jle	.L1
	mov	r13, rdi
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, rbx
	mov	rbp, QWORD PTR [rax+r12*8]
	mov	rsi, rbp
	call	arm_smmu_get_step_for_sid@PLT
	mov	rdx, rax
	mov	eax, r12d
	test	r12, r12
	je	.L3
	mov	rdi, QWORD PTR 8[r13]
	lea	r8d, -1[r12]
	xor	ecx, ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, 1[rcx]
	cmp	r8, rcx
	je	.L3
	mov	rcx, rsi
.L5:
	cmp	QWORD PTR [rdi+rcx*8], rbp
	jne	.L15
	cmp	ecx, eax
	jge	.L3
.L6:
	add	r12, 1
	cmp	DWORD PTR 0[r13], r12d
	jg	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r13
	call	arm_smmu_write_strtab_ent@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	arm_smmu_install_ste_for_dev, .-arm_smmu_install_ste_for_dev
	.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_arm-smmu-v3.c_arm_smmu_install_ste_for_dev.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_smmu_install_ste_for_dev, %function
arm_smmu_install_ste_for_dev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	ldr	r7, [r0, #8]
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r6, r0
	mov	r4, #0
.L7:
	ldr	r3, [r6, #4]
	mov	r0, r7
	ldr	r5, [r3, r4, lsl #2]
	mov	r1, r5
	bl	arm_smmu_get_step_for_sid
	cmp	r4, #0
	beq	.L3
	ldr	ip, [r6, #4]
	mov	r3, #0
	sub	ip, ip, #4
	b	.L5
.L15:
	add	r3, r3, #1
	cmp	r3, r4
	beq	.L3
.L5:
	ldr	lr, [ip, #4]!
	cmp	lr, r5
	bne	.L15
	cmp	r4, r3
	ble	.L3
.L6:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	bl	arm_smmu_write_strtab_ent
	b	.L6
	.size	arm_smmu_install_ste_for_dev, .-arm_smmu_install_ste_for_dev
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
