	.file	"extr_qib_verbs_mcast.c_qib_multicast_attach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qib_multicast_attach
	.type	qib_multicast_attach, @function
qib_multicast_attach:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	to_iqp@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r12, rax
	call	to_idev@PLT
	cmp	DWORD PTR [rbx], 1
	jle	.L2
	mov	r14, rax
	mov	rax, QWORD PTR IB_QPS_RESET[rip]
	cmp	QWORD PTR [r12], rax
	je	.L2
	mov	rdi, rbp
	call	qib_mcast_alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L8
	mov	rdi, r12
	call	qib_mcast_qp_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 4[rbx]
	call	to_iport@PLT
	mov	rcx, rbp
	mov	rdx, r13
	mov	rdi, r14
	mov	rsi, rax
	call	qib_mcast_add@PLT
	cmp	eax, 129
	je	.L6
	cmp	eax, 130
	je	.L7
.L4:
	endbr64
	xor	r12d, r12d
	cmp	eax, 128
	jne	.L1
	mov	rdi, rbp
	call	qib_mcast_qp_free@PLT
	mov	rdi, r13
	call	qib_mcast_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	qib_mcast_qp_free@PLT
.L11:
	mov	rdi, r13
	mov	r12d, -129
	call	qib_mcast_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	call	qib_mcast_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
.L8:
	.cfi_restore_state
	mov	r12d, -129
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qib_multicast_attach, .-qib_multicast_attach
	.comm	IB_QPS_RESET,8,8
	.comm	EINVAL,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_verbs_mcast.c_qib_multicast_attach.c"
	.text
	.align	2
	.global	qib_multicast_attach
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_multicast_attach, %function
qib_multicast_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	bl	to_iqp
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	to_idev
	ldr	r3, [r4]
	cmp	r3, #1
	ble	.L2
	ldr	r3, .L15
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	mov	r7, r0
	mov	r0, r6
	bl	qib_mcast_alloc
	subs	r8, r0, #0
	beq	.L12
	mov	r0, r5
	bl	qib_mcast_qp_alloc
	subs	r6, r0, #0
	beq	.L11
	ldr	r1, [r5, #4]
	ldr	r0, [r4, #4]
	bl	to_iport
	mov	r3, r6
	mov	r1, r0
	mov	r2, r8
	mov	r0, r7
	bl	qib_mcast_add
	cmp	r0, #129
	beq	.L6
	cmp	r0, #130
	beq	.L7
	cmp	r0, #128
	beq	.L14
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r6
	bl	qib_mcast_qp_free
.L11:
	mov	r0, r8
	bl	qib_mcast_free
.L12:
	mvn	r0, #128
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r6
	bl	qib_mcast_qp_free
	mov	r0, r8
	bl	qib_mcast_free
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r8
	bl	qib_mcast_free
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	IB_QPS_RESET
	.word	EINVAL
	.size	qib_multicast_attach, .-qib_multicast_attach
	.comm	IB_QPS_RESET,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
