	.file	"extr_verbs.c_is_valid_mcast_lid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	is_valid_mcast_lid, @function
is_valid_mcast_lid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR IB_QP_STATE[rip]
	or	edx, DWORD PTR IB_QP_PORT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rcx, 12[rsp]
	lea	rsi, 16[rsp]
	mov	DWORD PTR 12[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	ib_query_qp@PLT
	mov	rdi, QWORD PTR [r12]
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR IB_QPS_INIT[rip]
	cmp	QWORD PTR 16[rsp], rax
	jge	.L18
.L3:
	mov	eax, DWORD PTR [rdi]
	xor	ebx, ebx
	xor	ebp, ebp
	test	eax, eax
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, ebx
	call	rdma_port_get_link_layer@PLT
	cmp	rax, QWORD PTR IB_LINK_LAYER_INFINIBAND[rip]
	mov	rdi, QWORD PTR [r12]
	setne	al
	add	ebx, 1
	movzx	eax, al
	add	ebp, eax
	cmp	DWORD PTR [rdi], ebx
	jg	.L8
	test	ebp, ebp
	jne	.L4
.L11:
	mov	edi, DWORD PTR IB_MULTICAST_LID_BASE[rip]
	call	be16_to_cpu@PLT
	cmp	rax, r13
	jle	.L5
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.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
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rsp]
	call	rdma_port_get_link_layer@PLT
	cmp	rax, QWORD PTR IB_LINK_LAYER_INFINIBAND[rip]
	je	.L11
.L4:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR IB_LID_PERMISSIVE[rip]
	call	be16_to_cpu@PLT
	cmp	rax, r13
	setne	al
	movzx	eax, al
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	is_valid_mcast_lid, .-is_valid_mcast_lid
	.comm	IB_QP_STATE,4,4
	.comm	IB_QP_PORT,4,4
	.comm	IB_QPS_INIT,8,8
	.comm	IB_MULTICAST_LID_BASE,4,4
	.comm	IB_LINK_LAYER_INFINIBAND,8,8
	.comm	IB_LID_PERMISSIVE,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_verbs.c_is_valid_mcast_lid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid_mcast_lid, %function
is_valid_mcast_lid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L20
	mov	r7, r1
	ldr	r1, .L20+4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	ip, .L20+8
	sub	sp, sp, #16
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	orr	r2, r1, r2
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	add	r1, sp, #4
	mov	r3, sp
	mov	r5, r0
	bl	ib_query_qp
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L20+12
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	ldr	r0, [r5]
	cmp	r2, r3
	bge	.L17
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L11
.L10:
	mov	r4, #0
	mov	r6, r4
	ldr	r8, .L20+16
.L8:
	mov	r1, r4
	bl	rdma_port_get_link_layer
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r0, r3
	ldr	r0, [r5]
	addne	r6, r6, #1
	ldr	r3, [r0]
	cmp	r3, r4
	bgt	.L8
	cmp	r6, #0
	bne	.L4
.L11:
	ldr	r3, .L20+20
	ldr	r0, [r3]
	bl	be16_to_cpu
	cmp	r0, r7
	movgt	r0, #0
	ble	.L18
.L1:
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r5]
	ldr	r3, [r0]
	cmp	r3, #0
	bgt	.L10
	b	.L11
.L17:
	ldr	r1, [sp, #8]
	bl	rdma_port_get_link_layer
	ldr	r3, .L20+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L11
.L4:
	mov	r0, #1
	b	.L1
.L18:
	ldr	r3, .L20+24
	ldr	r0, [r3]
	bl	be16_to_cpu
	subs	r0, r0, r7
	movne	r0, #1
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	IB_QP_PORT
	.word	IB_QP_STATE
	.word	.LC0
	.word	IB_QPS_INIT
	.word	IB_LINK_LAYER_INFINIBAND
	.word	IB_MULTICAST_LID_BASE
	.word	IB_LID_PERMISSIVE
	.size	is_valid_mcast_lid, .-is_valid_mcast_lid
	.comm	IB_QP_STATE,4,4
	.comm	IB_QP_PORT,4,4
	.comm	IB_QPS_INIT,4,4
	.comm	IB_MULTICAST_LID_BASE,4,4
	.comm	IB_LINK_LAYER_INFINIBAND,4,4
	.comm	IB_LID_PERMISSIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
