	.file	"extr_qib_mad.c_qib_create_agents.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qib_create_agents
	.type	qib_create_agents, @function
qib_create_agents:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	dd_from_dev@PLT
	mov	esi, DWORD PTR [rax]
	mov	rbx, rax
	test	esi, esi
	jg	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, rbp
	mov	QWORD PTR 32[rdi], 0
	add	rdi, 8
	call	init_timer@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR xmit_wait_timer_func[rip]
	add	rdi, rbp
	add	rbp, 40
	mov	DWORD PTR 24[rdi], eax
	mov	QWORD PTR 8[rdi], rdi
	add	rdi, 8
	mov	QWORD PTR 8[rdi], 0
	call	add_timer@PLT
	mov	QWORD PTR [r12], r14
	cmp	r15d, DWORD PTR [rbx]
	jge	.L7
.L6:
	mov	r12, QWORD PTR 8[rbx]
	push	0
	.cfi_def_cfa_offset 72
	add	r15d, 1
	xor	ecx, ecx
	push	0
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR IB_QPT_SMI[rip]
	xor	r8d, r8d
	mov	esi, r15d
	mov	r9d, DWORD PTR send_handler[rip]
	mov	rdi, r13
	add	r12, rbp
	call	ib_register_mad_agent@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L4
	mov	rdi, r14
	xor	ebp, ebp
	call	PTR_ERR@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR 8[rbx]
	lea	rax, 0[rbp+rbp*4]
	lea	rax, [rdx+rax*8]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L8
	mov	QWORD PTR [rax], 0
	call	ib_unregister_mad_agent@PLT
.L8:
	add	rbp, 1
	cmp	DWORD PTR [rbx], ebp
	jg	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	qib_create_agents, .-qib_create_agents
	.comm	xmit_wait_timer_func,4,4
	.comm	send_handler,4,4
	.comm	IB_QPT_SMI,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_qib_create_agents.c"
	.text
	.align	2
	.global	qib_create_agents
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_create_agents, %function
qib_create_agents:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	str	r0, [sp, #20]
	bl	dd_from_dev
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	mov	r5, r0
	mov	r9, r4
	mov	r7, r4
	ldr	r10, .L17
	ldr	fp, .L17+4
	b	.L6
.L4:
	ldr	r0, [r5, #4]
	str	r3, [sp, #16]
	add	r0, r0, r4
	str	r3, [r0, #16]
	add	r0, r0, #4
	bl	init_timer
	ldr	r0, [r5, #4]
	ldr	r3, [sp, #16]
	ldr	r2, [fp]
	add	r0, r0, r4
	str	r3, [r0, #8]
	str	r0, [r0, #4]
	str	r2, [r0, #12]
	add	r0, r0, #4
	bl	add_timer
	ldr	r3, [r5]
	str	r6, [r8, r4]
	cmp	r9, r3
	add	r4, r4, #20
	bge	.L7
.L6:
	ldr	r2, [r10]
	ldr	r8, [r5, #4]
	str	r2, [sp, #4]
	ldr	r2, .L17+8
	str	r7, [sp, #12]
	str	r7, [sp, #8]
	str	r7, [sp]
	add	r9, r9, #1
	mov	r3, #0
	mov	r1, r9
	ldr	r2, [r2]
	ldr	r0, [sp, #20]
	bl	ib_register_mad_agent
	mov	r6, r0
	bl	IS_ERR
	subs	r3, r0, #0
	beq	.L4
	mov	r0, r6
	bl	PTR_ERR
	ldr	r2, [r5]
	mov	r7, r0
	cmp	r2, #0
	movgt	r4, #0
	movgt	r6, r4
	movgt	r8, r4
	ble	.L1
.L5:
	ldr	r3, [r5, #4]
	add	r6, r6, #1
	ldr	r0, [r3, r4]
	cmp	r0, #0
	beq	.L8
	str	r8, [r3, r4]
	bl	ib_unregister_mad_agent
	ldr	r2, [r5]
.L8:
	cmp	r2, r6
	add	r4, r4, #20
	bgt	.L5
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r7, #0
.L1:
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	send_handler
	.word	xmit_wait_timer_func
	.word	IB_QPT_SMI
	.size	qib_create_agents, .-qib_create_agents
	.comm	xmit_wait_timer_func,4,4
	.comm	send_handler,4,4
	.comm	IB_QPT_SMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
