	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_join_multicast           ## -- Begin function ib_sa_join_multicast
	.p2align	4, 0x90
_ib_sa_join_multicast:                  ## @ib_sa_join_multicast
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	24(%rbp), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r12
	movq	_mcast_client@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_ib_get_client_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movl	$48, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ib_sa_client_get
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, 40(%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %eax
	movl	%eax, 20(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movq	%r12, (%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	leaq	36(%rbx), %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	addq	$32, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	_MCAST_JOINING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	subq	(%r14), %r13
	shlq	$2, %r13
	addq	8(%r14), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_acquire_group
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_queue_join
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ib_sa_client_put
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mcast_client,4,2               ## @mcast_client
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MCAST_JOINING,4,2              ## @MCAST_JOINING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_join_multicast           ; -- Begin function ib_sa_join_multicast
	.p2align	2
_ib_sa_join_multicast:                  ; @ib_sa_join_multicast
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x26, x6
	mov	x21, x5
	mov	x27, x4
	mov	x22, x3
	mov	x23, x2
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _mcast_client@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mcast_client@GOTPAGEOFF]
	mov	x0, x8
	bl	_ib_get_client_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	mov	w0, #48
	mov	x1, x21
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_ib_sa_client_get
	str	x19, [x20, #40]
	ldr	w8, [x22]
	stp	w27, w8, [x20, #16]
	stp	x26, x25, [x20]
	add	x0, x20, #36
	bl	_init_completion
	add	x0, x20, #32
	mov	w1, #1
	bl	_atomic_set
Lloh2:
	adrp	x8, _MCAST_JOINING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCAST_JOINING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldp	x9, x8, [x24]
	sub	x9, x23, x9
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	mov	x2, x21
	bl	_acquire_group
	str	w0, [x20, #24]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_queue_join
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_ib_sa_client_put
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
LBB0_8:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mcast_client,4,2               ; @mcast_client
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MCAST_JOINING,4,2              ; @MCAST_JOINING
.subsections_via_symbols
