	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_multicast_attach           ## -- Begin function qib_multicast_attach
	.p2align	4, 0x90
_qib_multicast_attach:                  ## @qib_multicast_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_iqp
	movq	%rax, %r13
	movl	4(%rbx), %edi
	callq	_to_idev
	cmpl	$2, (%rbx)
	jl	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_qib_mcast_alloc
	movl	$-129, %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%r13, %rdi
	callq	_qib_mcast_qp_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movl	4(%rbx), %edi
	movl	8(%r13), %esi
	callq	_to_iport
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_qib_mcast_add
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_qib_mcast_qp_free
LBB0_11:
	movq	%rbx, %rdi
	callq	_qib_mcast_free
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_qib_mcast_qp_free
	movq	%rbx, %rdi
LBB0_13:
	callq	_qib_mcast_free
	jmp	LBB0_14
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_RESET,8,3               ## @IB_QPS_RESET
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_multicast_attach           ; -- Begin function qib_multicast_attach
	.p2align	2
_qib_multicast_attach:                  ; @qib_multicast_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_to_iqp
	mov	x22, x0
	ldr	w0, [x20, #4]
	bl	_to_idev
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	bl	_qib_mcast_alloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x19, x0
	mov	x0, x22
	bl	_qib_mcast_qp_alloc
	cbz	x0, LBB0_12
; %bb.6:
	mov	x23, x0
	ldr	w0, [x20, #4]
	ldr	w1, [x22, #8]
	bl	_to_iport
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	mov	x3, x23
	bl	_qib_mcast_add
	cmp	w0, #130
	b.eq	LBB0_10
; %bb.7:
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.8:
	cmp	w0, #128
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x23
	bl	_qib_mcast_qp_free
LBB0_10:
	mov	x0, x19
	bl	_qib_mcast_free
	mov	w0, #0
	b	LBB0_3
LBB0_11:
	mov	x0, x23
	bl	_qib_mcast_qp_free
LBB0_12:
	mov	x0, x19
	bl	_qib_mcast_free
LBB0_13:
	mov	w0, #-129
	b	LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_RESET,8,3               ; @IB_QPS_RESET
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
