	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_process_join
_ucma_process_join:                     ## @ucma_process_join
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	28(%rsi), %r12
	movq	(%rsi), %rbx
	movq	%r12, %rdi
	callq	_rdma_addr_size
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.5:
	movq	8(%r13), %rax
	movq	_RDMA_MC_JOIN_FLAG_FULLMEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_FULLMEMBER_JOIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.8:
	movq	_SENDONLY_FULLMEMBER_JOIN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	24(%r13), %esi
	movq	%r15, %rdi
	callq	_ucma_get_ctx_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.19:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_ucma_alloc_multicast
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movl	20(%r13), %eax
	movl	%eax, 12(%rbx)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	addq	$8, %r14
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %r12
	movq	%rbx, %rcx
	callq	_rdma_join_multicast
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movl	4(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	16(%r13), %edi
	callq	_u64_to_user_ptr
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rdma_leave_multicast
	movq	%r13, %rdi
	callq	_ucma_cleanup_mc_events
LBB0_15:
	movl	4(%r12), %esi
	movq	_multicast_table@GOTPCREL(%rip), %rdi
	callq	_xa_erase
	movq	%r12, %rdi
	callq	_list_del
	movq	%r12, %rdi
	callq	_kfree
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
LBB0_17:
	callq	_ucma_put_ctx
	jmp	LBB0_18
LBB0_20:
	movl	4(%rbx), %esi
	movq	_multicast_table@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_xa_store
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_MC_JOIN_FLAG_FULLMEMBER,8,3 ## @RDMA_MC_JOIN_FLAG_FULLMEMBER
	.comm	_FULLMEMBER_JOIN,4,2            ## @FULLMEMBER_JOIN
	.comm	_RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER,8,3 ## @RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ## @SENDONLY_FULLMEMBER_JOIN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_multicast_table,4,2            ## @multicast_table
	.no_dead_strip	_ucma_process_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_process_join
_ucma_process_join:                     ; @ucma_process_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cmp	w2, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x21, x1
	mov	x19, x0
	mov	x23, x1
	ldr	x20, [x23], #28
	mov	x0, x23
	bl	_rdma_addr_size
	cmp	x20, x0
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _RDMA_MC_JOIN_FLAG_FULLMEMBER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RDMA_MC_JOIN_FLAG_FULLMEMBER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _FULLMEMBER_JOIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FULLMEMBER_JOIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x9, _RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
Lloh10:
	adrp	x8, _SENDONLY_FULLMEMBER_JOIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SENDONLY_FULLMEMBER_JOIN@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_BIT
	mov	x25, x0
	ldr	w1, [x21, #24]
	mov	x0, x19
	bl	_ucma_get_ctx_dev
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	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
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_ucma_alloc_multicast
	cbz	x0, LBB0_17
; %bb.13:
	mov	x22, x0
	ldr	w8, [x21, #20]
	stp	w8, w25, [x0, #12]
	add	x24, x0, #8
	ldr	x2, [x21]
	mov	x0, x24
	mov	x1, x23
	bl	_memcpy
	ldr	w0, [x20]
	mov	x1, x24
	mov	x2, x25
	mov	x3, x22
	bl	_rdma_join_multicast
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.14:
	ldr	w8, [x22, #4]
	str	w8, [sp, #8]
	ldr	w0, [x21, #16]
	bl	_u64_to_user_ptr
	add	x1, sp, #8
	mov	w2, #4
	bl	_copy_to_user
	cbz	x0, LBB0_19
; %bb.15:
Lloh14:
	adrp	x8, _EFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	ldr	w0, [x20]
	mov	x1, x24
	bl	_rdma_leave_multicast
	mov	x0, x22
	bl	_ucma_cleanup_mc_events
LBB0_16:
	ldr	w1, [x22, #4]
Lloh17:
	adrp	x0, _multicast_table@GOTPAGE
Lloh18:
	ldr	x0, [x0, _multicast_table@GOTPAGEOFF]
	bl	_xa_erase
	mov	x0, x22
	bl	_list_del
	mov	x0, x22
	bl	_kfree
	b	LBB0_18
LBB0_17:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_ucma_put_ctx
	b	LBB0_11
LBB0_19:
	ldr	w1, [x22, #4]
Lloh22:
	adrp	x0, _multicast_table@GOTPAGE
Lloh23:
	ldr	x0, [x0, _multicast_table@GOTPAGEOFF]
	mov	x2, x22
	mov	w3, #0
	bl	_xa_store
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_ucma_put_ctx
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_MC_JOIN_FLAG_FULLMEMBER,8,3 ; @RDMA_MC_JOIN_FLAG_FULLMEMBER
	.comm	_FULLMEMBER_JOIN,4,2            ; @FULLMEMBER_JOIN
	.comm	_RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER,8,3 ; @RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ; @SENDONLY_FULLMEMBER_JOIN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_multicast_table,4,2            ; @multicast_table
	.no_dead_strip	_ucma_process_join
.subsections_via_symbols
