	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_add_mc                 ## -- Begin function mlx4_ib_add_mc
	.p2align	4, 0x90
_mlx4_ib_add_mc:                        ## @mlx4_ib_add_mc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
	cmpl	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%r13, %rdi
	callq	_spin_unlock
	leaq	-80(%rbp), %r12
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_rdma_get_mcast_mac
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movq	-8(%rax,%rcx,8), %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_dev_mc_add
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rdi
	callq	_dev_put
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_3:
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_add_mc                 ; -- Begin function mlx4_ib_add_mc
	.p2align	2
_mlx4_ib_add_mc:                        ; @mlx4_ib_add_mc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x19, [x8, #-8]
	cbz	x19, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_dev_hold
	mov	x0, x23
	bl	_spin_unlock
	mov	x1, sp
	mov	x0, x22
	bl	_rdma_get_mcast_mac
	bl	_rtnl_lock
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldur	x0, [x8, #-8]
	mov	x1, sp
	mov	w2, #6
	mov	w3, #0
	bl	_dev_mc_add
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_dev_put
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x23
	bl	_spin_unlock
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
