	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_mcast_leave
_ipoib_mcast_leave:                     ## @ipoib_mcast_leave
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_IPOIB_MCAST_FLAG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rsi), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%r15), %edi
	callq	_ib_sa_free_multicast
LBB0_2:
	movq	_IPOIB_MCAST_FLAG_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	4(%r15), %r12
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_ipoib_dbg_mcast
	movl	(%r14), %ebx
	movl	(%r15), %edi
	callq	_be16_to_cpu
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_ib_detach_mcast
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ipoib_warn
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_MCAST_FLAG_BUSY,4,2      ## @IPOIB_MCAST_FLAG_BUSY
	.comm	_IPOIB_MCAST_FLAG_ATTACHED,4,2  ## @IPOIB_MCAST_FLAG_ATTACHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"leaving MGID %16D\n"

L_.str.1:                               ## @.str.1
	.asciz	":"

L_.str.2:                               ## @.str.2
	.asciz	"ib_detach_mcast failed (result = %d)\n"

	.no_dead_strip	_ipoib_mcast_leave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_mcast_leave
_ipoib_mcast_leave:                     ; @ipoib_mcast_leave
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IPOIB_MCAST_FLAG_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPOIB_MCAST_FLAG_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x1, #8
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	bl	_ib_sa_free_multicast
LBB0_2:
Lloh3:
	adrp	x8, _IPOIB_MCAST_FLAG_ATTACHED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPOIB_MCAST_FLAG_ATTACHED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x20
	ldr	w2, [x21, #4]!
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ipoib_dbg_mcast
	ldr	w22, [x19]
	ldr	w0, [x20]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_ib_detach_mcast
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ipoib_warn
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_MCAST_FLAG_BUSY,4,2      ; @IPOIB_MCAST_FLAG_BUSY
	.comm	_IPOIB_MCAST_FLAG_ATTACHED,4,2  ; @IPOIB_MCAST_FLAG_ATTACHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"leaving MGID %16D\n"

l_.str.1:                               ; @.str.1
	.asciz	":"

l_.str.2:                               ; @.str.2
	.asciz	"ib_detach_mcast failed (result = %d)\n"

	.no_dead_strip	_ipoib_mcast_leave
.subsections_via_symbols
