	.file	"extr_qib_mad.c_subn_get_guidinfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	subn_get_guidinfo, @function
subn_get_guidinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	call	dd_from_ibdev@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	r12, rax
	call	be32_to_cpu@PLT
	mov	r14, QWORD PTR 8[rbp]
	xor	esi, esi
	mov	edx, 8
	mov	r13d, eax
	mov	rdi, r14
	call	memset@PLT
	test	r13d, r13d
	jne	.L2
	sub	ebx, 1
	cmp	DWORD PTR [r12], ebx
	ja	.L11
.L2:
	mov	eax, DWORD PTR IB_SMP_INVALID_FIELD[rip]
	or	DWORD PTR 0[rbp], eax
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	reply@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	sal	rbx, 4
	add	rbx, QWORD PTR 8[r12]
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR QIB_GUIDS_PER_PORT[rip]
	mov	QWORD PTR [r14], rax
	cmp	edx, 1
	jbe	.L4
	mov	rcx, QWORD PTR 8[rbx]
	sub	edx, 2
	lea	rax, 8[r14]
	lea	rsi, 16[r14+rdx*8]
	sub	rcx, r14
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR -8[rcx+rax]
	add	rax, 8
	mov	QWORD PTR -8[rax], rdx
	cmp	rax, rsi
	jne	.L6
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	reply@PLT
	.cfi_endproc
.LFE0:
	.size	subn_get_guidinfo, .-subn_get_guidinfo
	.comm	QIB_GUIDS_PER_PORT,4,4
	.comm	IB_SMP_INVALID_FIELD,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_qib_mad.c_subn_get_guidinfo.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subn_get_guidinfo, %function
subn_get_guidinfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r2
	bl	dd_from_ibdev
	mov	r7, r0
	ldr	r0, [r4, #8]
	bl	be32_to_cpu
	mov	r6, r0
	ldr	r8, [r4, #4]
	mov	r2, #4
	mov	r0, r8
	mov	r1, #0
	bl	memset
	cmp	r6, #0
	bne	.L2
	ldr	r3, [r7]
	sub	r2, r5, #1
	cmp	r3, r2
	bhi	.L11
.L2:
	ldr	r2, .L12
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	reply
.L11:
	ldr	r5, [r7, #4]
	ldr	r3, [r5, r2, lsl #3]
	add	r5, r5, r2, lsl #3
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L12+4
	str	r3, [r8]
	ldr	r0, [r2]
	cmp	r0, #1
	bls	.L4
	ldr	r3, [r5, #4]
	add	r8, r8, #8
	add	r0, r3, r0, lsl #2
	sub	r8, r8, r3
	sub	r0, r0, #8
	sub	r3, r3, #4
.L6:
	add	r2, r8, r3
	ldr	r1, [r3, #4]!
	cmp	r3, r0
	str	r1, [r2]
	bne	.L6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	reply
.L13:
	.align	2
.L12:
	.word	IB_SMP_INVALID_FIELD
	.word	QIB_GUIDS_PER_PORT
	.size	subn_get_guidinfo, .-subn_get_guidinfo
	.comm	QIB_GUIDS_PER_PORT,4,4
	.comm	IB_SMP_INVALID_FIELD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
