	.file	"extr_smi.c___smi_handle_dr_smp_recv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__smi_handle_dr_smp_recv, @function
__smi_handle_dr_smp_recv:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR IB_SMP_MAX_PATH_HOPS[rip], r8
	jbe	.L6
	cmp	QWORD PTR 16[rsp], 0
	mov	rax, QWORD PTR [rcx]
	jne	.L4
	test	r8, r8
	je	.L5
	test	rax, rax
	je	.L6
	cmp	r8, rax
	jbe	.L7
	test	edi, edi
	jne	.L35
.L6:
	mov	eax, DWORD PTR IB_SMI_DISCARD[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	test	r8, r8
	je	.L10
	lea	r9, 1[r8]
	cmp	r9, rax
	je	.L36
.L10:
	cmp	rax, 1
	jbe	.L12
	cmp	r8, rax
	jb	.L6
	test	edi, edi
	je	.L6
	mov	rsi, QWORD PTR 8[rsp]
	movsx	rdx, edx
	cmp	QWORD PTR -8[rsi+rax*8], rdx
	jbe	.L33
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	test	rax, rax
	je	.L17
.L16:
	add	r8, 1
	cmp	r8, rax
	jne	.L6
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L12:
	jne	.L33
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	je	.L14
	mov	QWORD PTR [rcx], 0
.L33:
	mov	eax, DWORD PTR IB_SMI_HANDLE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	jne	.L16
	mov	rax, QWORD PTR 8[rsp]
	movsx	rsi, esi
	mov	QWORD PTR [rax+r8*8], rsi
.L17:
	mov	eax, DWORD PTR IB_SMI_HANDLE[rip]
	or	edi, DWORD PTR 24[rsp]
	cmove	eax, DWORD PTR IB_SMI_DISCARD[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	test	edi, edi
	jne	.L33
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdx, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR IB_SMI_DISCARD[rip]
	mov	QWORD PTR [rcx], r8
	movsx	rsi, esi
	cmp	QWORD PTR [rdx+r8*8], rsi
	je	.L33
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR 8[rsp]
	movsx	rsi, esi
	movsx	rdx, edx
	mov	QWORD PTR [rdi+rax*8], rsi
	mov	rcx, QWORD PTR [rcx]
	mov	eax, DWORD PTR IB_SMI_DISCARD[rip]
	cmp	QWORD PTR 8[r9+rcx*8], rdx
	ja	.L1
	jmp	.L33
	.cfi_endproc
.LFE0:
	.size	__smi_handle_dr_smp_recv, .-__smi_handle_dr_smp_recv
	.comm	IB_SMP_MAX_PATH_HOPS,8,8
	.comm	IB_SMI_HANDLE,4,4
	.comm	IB_SMI_DISCARD,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_smi.c___smi_handle_dr_smp_recv.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__smi_handle_dr_smp_recv, %function
__smi_handle_dr_smp_recv:
	@ args = 24, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	lr, .L39
	ldr	ip, [sp, #8]
	ldr	lr, [lr]
	cmp	lr, ip
	bls	.L11
	ldr	lr, [sp, #20]
	cmp	lr, #0
	ldr	lr, [r3]
	bne	.L4
	cmp	ip, #0
	beq	.L5
	cmp	lr, #0
	beq	.L11
	cmp	ip, lr
	bls	.L7
	cmp	r0, #0
	bne	.L37
.L11:
	ldr	r3, .L39+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L4:
	cmp	ip, #0
	beq	.L10
	add	r4, ip, #1
	cmp	r4, lr
	beq	.L38
.L10:
	cmp	lr, #1
	bls	.L12
	cmp	ip, lr
	bcc	.L11
	cmp	r0, #0
	beq	.L11
	ldr	r3, [sp, #16]
	sub	lr, lr, #-1073741823
	ldr	r3, [r3, lr, lsl #2]
	cmp	r3, r2
	bhi	.L11
.L35:
	ldr	r3, .L39+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L5:
	cmp	lr, #0
	beq	.L17
.L16:
	add	ip, ip, #1
	cmp	ip, lr
	bne	.L11
	b	.L35
.L12:
	bne	.L35
	ldr	r2, [sp, #28]
	cmp	r2, #0
	beq	.L14
	mov	r1, #0
	ldr	r2, .L39+8
	str	r1, [r3]
	ldr	r0, [r2]
	pop	{r4, pc}
.L7:
	bne	.L16
	ldr	r3, [sp, #16]
	str	r1, [r3, ip, lsl #2]
.L17:
	ldr	r3, [sp, #24]
	orrs	r3, r0, r3
	beq	.L11
	b	.L35
.L14:
	cmp	r0, #0
	bne	.L35
	b	.L11
.L38:
	str	ip, [r3]
	ldr	r3, [sp, #16]
	ldr	r3, [r3, ip, lsl #2]
	cmp	r3, r1
	bne	.L11
	b	.L35
.L37:
	ldr	r0, [sp, #16]
	str	r1, [r0, lr, lsl #2]
	ldr	r3, [r3]
	ldr	r1, [sp, #12]
	add	r3, r3, #1
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, r2
	bhi	.L11
	b	.L35
.L40:
	.align	2
.L39:
	.word	IB_SMP_MAX_PATH_HOPS
	.word	IB_SMI_DISCARD
	.word	IB_SMI_HANDLE
	.size	__smi_handle_dr_smp_recv, .-__smi_handle_dr_smp_recv
	.comm	IB_SMP_MAX_PATH_HOPS,4,4
	.comm	IB_SMI_HANDLE,4,4
	.comm	IB_SMI_DISCARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
