	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcast_add_one
_mcast_add_one:                         ## @mcast_add_one
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	shll	$5, %edi
	addl	$32, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rdma_start_port
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_rdma_end_port
	movl	%eax, 4(%r15)
	movl	(%r15), %esi
	cmpl	%esi, %eax
	jl	LBB0_9
## %bb.2:
	xorl	%r12d, %r12d
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r12), %rax
	movslq	4(%r15), %rcx
	movslq	(%r15), %rsi
	subq	%rsi, %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r12d, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rdma_cap_ib_mcast
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %r13
	movq	24(%r15), %r14
	leaq	(%r14,%rbx), %rdi
	movq	%r15, 8(%r14,%rbx)
	movl	(%r15), %eax
	addl	%r12d, %eax
	movl	%eax, -16(%r14,%rbx)
	callq	_spin_lock_init
	movq	_RB_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%r14,%rbx)
	leaq	(%r14,%rbx), %rdi
	addq	$-8, %rdi
	callq	_init_completion
	leaq	(%r14,%rbx), %rdi
	addq	$-12, %rdi
	movq	%r13, %r14
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	$1, %esi
	callq	_atomic_set
	incl	%r13d
	jmp	LBB0_5
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:
	movq	%r14, 16(%r15)
	movq	_mcast_client@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ib_set_client_data
	addq	$8, %r15
	movq	_mcast_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_INIT_IB_EVENT_HANDLER
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_register_event_handler      ## TAILCALL
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
	.comm	_mcast_client,4,2               ## @mcast_client
	.comm	_mcast_event_handler,4,2        ## @mcast_event_handler
	.no_dead_strip	_mcast_add_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcast_add_one
_mcast_add_one:                         ; @mcast_add_one
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	lsl	w8, w8, #5
	add	w0, w8, #32
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_rdma_start_port
	str	w0, [x20]
	mov	x0, x19
	bl	_rdma_end_port
	str	w0, [x20, #4]
	ldr	w8, [x20]
	cmp	w0, w8
	b.lt	LBB0_9
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
Lloh3:
	adrp	x24, _RB_ROOT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _RB_ROOT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldpsw	x8, x9, [x20]
	sub	x9, x9, x8
	cmp	x23, x9
	add	x23, x23, #1
	add	x22, x22, #32
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w23, w8
	mov	x0, x19
	bl	_rdma_cap_ib_mcast
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	add	x25, x8, x22
	str	x20, [x25, #24]
	ldr	w8, [x20]
	add	w8, w23, w8
	str	w8, [x25]
	add	x0, x25, #16
	bl	_spin_lock_init
	ldr	w8, [x24]
	str	w8, [x25, #12]
	add	x0, x25, #8
	bl	_init_completion
	add	x0, x25, #4
	mov	w1, #1
	bl	_atomic_set
	add	w21, w21, #1
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	w21, LBB0_9
; %bb.8:
	str	x19, [x20, #16]
Lloh5:
	adrp	x1, _mcast_client@GOTPAGE
Lloh6:
	ldr	x1, [x1, _mcast_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
	add	x20, x20, #8
Lloh7:
	adrp	x8, _mcast_event_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mcast_event_handler@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_INIT_IB_EVENT_HANDLER
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ib_register_event_handler
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
	.comm	_mcast_client,4,2               ; @mcast_client
	.comm	_mcast_event_handler,4,2        ; @mcast_event_handler
	.no_dead_strip	_mcast_add_one
.subsections_via_symbols
