	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_multicast_detach         ## -- Begin function mthca_multicast_detach
	.p2align	4, 0x90
_mthca_multicast_detach:                ## @mthca_multicast_detach
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mthca_alloc_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	(%rbx), %r15
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%r13), %esi
	leaq	-76(%rbp), %rcx
	leaq	-60(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_find_mgm
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$-1, -44(%rbp)
	je	LBB0_14
## %bb.4:
	movq	_MTHCA_QP_PER_MGM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.5:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	(%r14), %edi
	movl	$-2147483648, %eax              ## imm = 0x80000000
	orl	%eax, %edi
	callq	_cpu_to_be32
	cmpl	%eax, %r13d
	movl	%ebx, %r13d
	cmovnel	%r12d, %r13d
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_cpu_to_be32
	testl	%r12d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	_MTHCA_QP_PER_MGM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_8:
	cmpl	$-1, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.9:
	movq	(%r15), %rax
	movq	%rbx, %rcx
	shlq	$32, %rcx
	movabsq	$-4294967296, %rdx              ## imm = 0xFFFFFFFF00000000
	addq	%rcx, %rdx
	sarq	$30, %rdx
	movl	(%rax,%rdx), %ecx
	movslq	%r13d, %rsi
	movl	%ecx, (%rax,%rsi,4)
	movl	$0, (%rax,%rdx)
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mthca_WRITE_MGM
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ebx
LBB0_11:
	movl	%eax, %edx
	callq	_mthca_err
	movl	%ebx, %ecx
	jmp	LBB0_16
LBB0_13:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
LBB0_15:
	movq	%r12, %rdi
	callq	_mthca_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movq	%r12, %rdi
	movl	%ecx, %r14d
	callq	_mutex_unlock
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mthca_free_mailbox
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ecx, %ecx
	cmpl	$1, %ebx
	jne	LBB0_16
## %bb.19:
	movl	-60(%rbp), %ebx
	movl	8(%r15), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	cmpl	$-1, %ebx
	je	LBB0_24
## %bb.20:
	movl	-60(%rbp), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mthca_READ_MGM
	testl	%eax, %eax
	jne	LBB0_27
## %bb.21:
	andl	$-64, %r13d
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movl	%eax, 8(%r15)
	movl	-60(%rbp), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_mthca_WRITE_MGM
	testl	%eax, %eax
	je	LBB0_28
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	jmp	LBB0_11
LBB0_24:
	cmpl	$64, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_26
## %bb.25:
	movl	12(%r15), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_mthca_WRITE_MGM
	xorl	%ecx, %ecx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_30
	jmp	LBB0_17
LBB0_26:
	sarl	$6, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_mthca_READ_MGM
	testl	%eax, %eax
	je	LBB0_29
LBB0_27:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_31
LBB0_28:
	movl	-44(%rbp), %eax
	xorl	%edi, %edi
	cmpl	8(%r12), %eax
	setl	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	addq	$4, %rdi
	movl	-44(%rbp), %esi
	callq	_mthca_free
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_29:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_mthca_WRITE_MGM
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_32
LBB0_30:
	leaq	L_.str.2(%rip), %rsi
LBB0_31:
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mthca_err
	movl	%r14d, %ecx
	jmp	LBB0_17
LBB0_32:
	xorl	%edi, %edi
	cmpl	8(%r12), %r13d
	setl	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	addq	$4, %rdi
	movl	%r13d, %esi
	callq	_mthca_free
LBB0_33:
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MGID %pI6 not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTHCA_QP_PER_MGM,4,2           ## @MTHCA_QP_PER_MGM
L_.str.1:                               ## @.str.1
	.asciz	"QP %06x not found in MGM\n"

L_.str.2:                               ## @.str.2
	.asciz	"WRITE_MGM returned %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"READ_MGM returned %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_multicast_detach         ; -- Begin function mthca_multicast_detach
	.p2align	2
_mthca_multicast_detach:                ; @mthca_multicast_detach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_mdev
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mthca_alloc_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_2:
	ldr	x24, [x20]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x23]
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x19
	mov	x2, x20
	bl	_find_mgm
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.3:
	ldr	w8, [sp, #4]
	cmn	w8, #1
	b.eq	LBB0_14
; %bb.4:
Lloh3:
	adrp	x25, _MTHCA_QP_PER_MGM@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MTHCA_QP_PER_MGM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x23, #0
	mov	w22, #-1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x26, x23, #2
	ldr	w27, [x8, x26]
	ldr	w8, [x21]
	orr	w0, w8, #0x80000000
	bl	_cpu_to_be32
	cmp	w27, w0
	csel	w22, w23, w22, eq
	ldr	x8, [x24]
	ldr	w26, [x8, x26]
	mov	w0, #-2147483648
	bl	_cpu_to_be32
	tst	w0, w26
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x25]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_8:
	cmn	w22, #1
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x24]
	mov	x9, #-4294967296
	add	x9, x9, x23, lsl #32
	asr	x9, x9, #30
	ldr	w10, [x8, x9]
	str	w10, [x8, w22, sxtw #2]
	str	wzr, [x8, x9]
	ldr	w1, [sp, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_mthca_WRITE_MGM
	cbz	w0, LBB0_17
; %bb.10:
	mov	x22, x0
LBB0_11:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x22
	bl	_mthca_err
	b	LBB0_16
LBB0_13:
	ldr	w2, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	w2, [x23]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_mthca_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x20
	bl	_mthca_free_mailbox
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cmp	w23, #1
	b.ne	LBB0_22
; %bb.18:
	ldr	w22, [sp, #8]
	ldr	w0, [x24, #8]
	bl	_be32_to_cpu
	mov	x21, x0
	cmn	w22, #1
	b.eq	LBB0_23
; %bb.19:
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_mthca_READ_MGM
	cbnz	w0, LBB0_26
; %bb.20:
	and	w0, w21, #0xffffffc0
	bl	_cpu_to_be32
	str	w0, [x24, #8]
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_mthca_WRITE_MGM
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.21:
	ldr	w8, [sp, #4]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	cset	w0, lt
	bl	_BUG_ON
	add	x0, x19, #4
	ldr	w1, [sp, #4]
	b	LBB0_29
LBB0_22:
	mov	w22, #0
	b	LBB0_16
LBB0_23:
	cmp	w21, #64
	b.hs	LBB0_25
; %bb.24:
	ldr	w0, [x24, #12]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w1, [sp, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_mthca_WRITE_MGM
	mov	x22, x0
	cbnz	w0, LBB0_11
	b	LBB0_16
LBB0_25:
	asr	w21, w21, #6
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_mthca_READ_MGM
	cbz	w0, LBB0_27
LBB0_26:
	mov	x22, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_27:
	ldr	w1, [sp, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_mthca_WRITE_MGM
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.28:
	ldr	w8, [x19, #8]
	cmp	w21, w8
	cset	w0, lt
	bl	_BUG_ON
	add	x0, x19, #4
	mov	x1, x21
LBB0_29:
	bl	_mthca_free
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MGID %pI6 not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTHCA_QP_PER_MGM,4,2           ; @MTHCA_QP_PER_MGM
l_.str.1:                               ; @.str.1
	.asciz	"QP %06x not found in MGM\n"

l_.str.2:                               ; @.str.2
	.asciz	"WRITE_MGM returned %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"READ_MGM returned %d\n"

.subsections_via_symbols
