	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_add_one
_cm_add_one:                            ## @cm_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -80(%rbp)
	movq	_IB_CM_CLASS_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_IB_MGMT_CLASS_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	12(%rdi), %edi
	callq	_rdma_node_get_transport
	movq	_RDMA_TRANSPORT_IB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.1:
	movl	(%r15), %edi
	shll	$4, %edi
	addl	$32, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r14
	movq	%r15, 24(%rax)
	movq	%rax, %rdi
	callq	_cm_get_ack_delay
	leaq	8(%r15), %r12
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movl	4(%r15), %r9d
	movq	_cm_class@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %r8
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_IB_MGMT_METHOD_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_set_bit
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	leaq	1(%r13), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	%rbx, (%rax,%r13,8)
	movq	%rcx, 8(%rbx)
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	callq	_cm_create_port_fs
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cm_send_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_cm_recv_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-80(%rbp), %rcx
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_ib_register_mad_agent
	addq	$16, %rsp
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	callq	_ib_modify_port
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r15), %rax
	movq	%r12, %r13
	cmpq	%rax, %r12
	movq	%r14, %rbx
	jl	LBB0_5
LBB0_10:
	movq	_cm_client@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ib_set_client_data
	movq	_cm@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	addq	$16, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	jmp	LBB0_19
LBB0_14:
	leal	1(%r13), %r12d
	jmp	LBB0_15
LBB0_12:
	leal	1(%r13), %r12d
	jmp	LBB0_13
LBB0_11:
	leal	1(%r13), %r12d
	movl	4(%rbx), %edi
	callq	_ib_unregister_mad_agent
LBB0_13:
	movq	%rbx, %rdi
	callq	_cm_remove_port_fs
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	$0, -56(%rbp)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	cmpl	$1, %r12d
	je	LBB0_18
## %bb.16:
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	-8(%rax,%r13,8), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_ib_modify_port
	movl	4(%rbx), %edi
	callq	_ib_unregister_mad_agent
	movq	%rbx, %rdi
	callq	_cm_remove_port_fs
	decq	%r13
	jne	LBB0_17
LBB0_18:
	movl	(%r14), %edi
	callq	_device_unregister
	movq	%r14, %rdi
	callq	_kfree
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CM_CLASS_VERSION,4,2        ## @IB_CM_CLASS_VERSION
	.comm	_IB_MGMT_CLASS_CM,4,2           ## @IB_MGMT_CLASS_CM
	.comm	_IB_PORT_CM_SUP,8,3             ## @IB_PORT_CM_SUP
	.comm	_RDMA_TRANSPORT_IB,8,3          ## @RDMA_TRANSPORT_IB
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cm_class,4,2                   ## @cm_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_IB_MGMT_METHOD_SEND,4,2        ## @IB_MGMT_METHOD_SEND
	.comm	_IB_QPT_GSI,4,2                 ## @IB_QPT_GSI
	.comm	_cm_send_handler,4,2            ## @cm_send_handler
	.comm	_cm_recv_handler,4,2            ## @cm_recv_handler
	.comm	_cm_client,4,2                  ## @cm_client
	.comm	_cm,8,2                         ## @cm
	.no_dead_strip	_cm_add_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_add_one
_cm_add_one:                            ; @cm_add_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, _IB_CM_CLASS_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_CM_CLASS_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #16]
Lloh3:
	adrp	x8, _IB_MGMT_CLASS_CM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_CLASS_CM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh6:
	adrp	x23, _IB_PORT_CM_SUP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IB_PORT_CM_SUP@GOTPAGEOFF]
	ldr	x8, [x23]
	stp	xzr, x8, [sp]
	ldr	w0, [x0, #12]
	bl	_rdma_node_get_transport
Lloh8:
	adrp	x8, _RDMA_TRANSPORT_IB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RDMA_TRANSPORT_IB@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.1:
	ldr	w8, [x19]
	lsl	w8, w8, #4
	add	w0, w8, #32
Lloh11:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kzalloc
	cbz	x0, LBB0_20
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #24]
	bl	_cm_get_ack_delay
	add	x21, x19, #8
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w5, [x19, #4]
Lloh13:
	adrp	x0, _cm_class@GOTPAGE
Lloh14:
	ldr	x0, [x0, _cm_class@GOTPAGEOFF]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, #0
	bl	_device_create
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_kfree
LBB0_4:
Lloh17:
	adrp	x8, _IB_MGMT_METHOD_SEND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_MGMT_METHOD_SEND@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_bit
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x25, #0
Lloh20:
	adrp	x26, _IB_QPT_GSI@GOTPAGE
Lloh21:
	ldr	x26, [x26, _IB_QPT_GSI@GOTPAGEOFF]
Lloh22:
	adrp	x27, _cm_send_handler@GOTPAGE
Lloh23:
	ldr	x27, [x27, _cm_send_handler@GOTPAGEOFF]
Lloh24:
	adrp	x28, _cm_recv_handler@GOTPAGE
Lloh25:
	ldr	x28, [x28, _cm_recv_handler@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	add	x22, x25, #1
	ldr	x8, [x20, #8]
	str	x0, [x8, x25, lsl #3]
	str	x20, [x0, #8]
	str	w22, [x0]
	bl	_cm_create_port_fs
	cbnz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x26]
	ldr	w5, [x27]
	ldr	w6, [x28]
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x22
	mov	w4, #0
	mov	x7, x21
	bl	_ib_register_mad_agent
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x3, sp
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ib_modify_port
	cbnz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19]
	add	x25, x25, #1
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_11:
Lloh26:
	adrp	x1, _cm_client@GOTPAGE
Lloh27:
	ldr	x1, [x1, _cm_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
Lloh28:
	adrp	x19, _cm@GOTPAGE
Lloh29:
	ldr	x19, [x19, _cm@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock_irqsave
	add	x0, x20, #16
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_write_unlock_irqrestore
	b	LBB0_20
LBB0_12:
	add	w22, w25, #1
	b	LBB0_16
LBB0_13:
	add	w22, w25, #1
	b	LBB0_15
LBB0_14:
	add	w22, w25, #1
	ldr	w0, [x21, #4]
	bl	_ib_unregister_mad_agent
LBB0_15:
	mov	x0, x21
	bl	_cm_remove_port_fs
LBB0_16:
	ldr	x8, [x23]
	stp	x8, xzr, [sp]
	cmp	w22, #1
	b.eq	LBB0_19
; %bb.17:
	sub	x22, x25, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x21, [x8, x22, lsl #3]
	ldr	w1, [x21]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #0
	bl	_ib_modify_port
	ldr	w0, [x21, #4]
	bl	_ib_unregister_mad_agent
	mov	x0, x21
	bl	_cm_remove_port_fs
	sub	x22, x22, #1
	cmn	x22, #1
	b.ne	LBB0_18
LBB0_19:
	ldr	w0, [x20]
	bl	_device_unregister
	mov	x0, x20
	bl	_kfree
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CM_CLASS_VERSION,4,2        ; @IB_CM_CLASS_VERSION
	.comm	_IB_MGMT_CLASS_CM,4,2           ; @IB_MGMT_CLASS_CM
	.comm	_IB_PORT_CM_SUP,8,3             ; @IB_PORT_CM_SUP
	.comm	_RDMA_TRANSPORT_IB,8,3          ; @RDMA_TRANSPORT_IB
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cm_class,4,2                   ; @cm_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_IB_MGMT_METHOD_SEND,4,2        ; @IB_MGMT_METHOD_SEND
	.comm	_IB_QPT_GSI,4,2                 ; @IB_QPT_GSI
	.comm	_cm_send_handler,4,2            ; @cm_send_handler
	.comm	_cm_recv_handler,4,2            ; @cm_recv_handler
	.comm	_cm_client,4,2                  ; @cm_client
	.comm	_cm,8,2                         ; @cm
	.no_dead_strip	_cm_add_one
.subsections_via_symbols
