	.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
	movq	(%rdi), %rdi
	callq	_rdma_node_get_transport
	movq	_RDMA_TRANSPORT_IB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movl	8(%r14), %edi
	shll	$5, %edi
	addl	$32, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_RDMA_NODE_IB_SWITCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	$0, (%r15)
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r14), %eax
	movl	%eax, 4(%r15)
	movl	$1, (%r15)
	movl	$1, %esi
	testl	%eax, %eax
	jle	LBB0_12
LBB0_5:
	xorl	%r12d, %r12d
	movl	$16, %ebx
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 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_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r12d, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rdma_port_get_link_layer
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	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
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %r13
	movl	$1, %esi
	callq	_atomic_set
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.10:
	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_12:
	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	_RDMA_TRANSPORT_IB,8,3          ## @RDMA_TRANSPORT_IB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ## @RDMA_NODE_IB_SWITCH
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ## @IB_LINK_LAYER_INFINIBAND
	.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	x0, [x0]
	bl	_rdma_node_get_transport
Lloh0:
	adrp	x8, _RDMA_TRANSPORT_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_TRANSPORT_IB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	lsl	w8, w8, #5
	add	w0, w8, #32
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _RDMA_NODE_IB_SWITCH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMA_NODE_IB_SWITCH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #0
	str	xzr, [x20]
	b	LBB0_6
LBB0_4:
	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_5:
	ldr	w9, [x19, #8]
	mov	w8, #1
	stp	w8, w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_12
LBB0_6:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
Lloh9:
	adrp	x24, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
Lloh11:
	adrp	x25, _RB_ROOT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _RB_ROOT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldpsw	x8, x9, [x20]
	sub	x9, x9, x8
	cmp	x23, x9
	add	x23, x23, #1
	add	x22, x22, #32
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w23, w8
	mov	x0, x19
	bl	_rdma_port_get_link_layer
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #24]
	add	x26, x8, x22
	str	x20, [x26, #24]
	ldr	w8, [x20]
	add	w8, w23, w8
	str	w8, [x26]
	add	x0, x26, #16
	bl	_spin_lock_init
	ldr	w8, [x25]
	str	w8, [x26, #12]
	add	x0, x26, #8
	bl	_init_completion
	add	x0, x26, #4
	mov	w1, #1
	bl	_atomic_set
	add	w21, w21, #1
	b	LBB0_7
LBB0_10:
	cbz	w21, LBB0_12
; %bb.11:
	str	x19, [x20, #16]
Lloh13:
	adrp	x1, _mcast_client@GOTPAGE
Lloh14:
	ldr	x1, [x1, _mcast_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
	add	x20, x20, #8
Lloh15:
	adrp	x8, _mcast_event_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mcast_event_handler@GOTPAGEOFF]
Lloh17:
	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_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_TRANSPORT_IB,8,3          ; @RDMA_TRANSPORT_IB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RDMA_NODE_IB_SWITCH,8,3        ; @RDMA_NODE_IB_SWITCH
	.comm	_IB_LINK_LAYER_INFINIBAND,8,3   ; @IB_LINK_LAYER_INFINIBAND
	.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
