	.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	(%rdi), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 56(%rax)
	movl	4(%r15), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movq	_IB_MGMT_METHOD_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_set_bit
	cmpl	$0, (%r15)
	jle	LBB0_21
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15), %rax
	movq	%rbx, %r12
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %rbx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rdma_cap_ib_cm
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	%r13, (%rax,%r12,8)
	movq	%rcx, 32(%r13)
	movl	%ebx, (%r13)
	leaq	24(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	addq	$20, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	callq	_cm_create_port_fs
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 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
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-80(%rbp), %rcx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r13
	pushq	%rax
	callq	_ib_register_mad_agent
	addq	$32, %rsp
	movl	%eax, 4(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	callq	_ib_modify_port
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	jmp	LBB0_9
LBB0_15:
	leal	1(%r12), %ebx
	jmp	LBB0_16
LBB0_10:
	testl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.11:
	movq	_cm_client@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	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_22
LBB0_13:
	leal	1(%r12), %ebx
	jmp	LBB0_14
LBB0_12:
	leal	1(%r12), %ebx
	movl	4(%r13), %edi
	callq	_ib_unregister_mad_agent
LBB0_14:
	movq	%r13, %rdi
	callq	_cm_remove_port_fs
LBB0_16:
	movq	$0, -56(%rbp)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%r13, %rdi
	callq	_kfree
	cmpl	$1, %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_17
LBB0_21:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	-64(%rbp), %r13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	decq	%r12
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rdma_cap_ib_cm
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%rbx), %rax
	movq	-8(%rax,%r12,8), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_ib_modify_port
	movl	4(%rbx), %edi
	callq	_ib_unregister_mad_agent
	movq	%rbx, %rdi
	callq	_cm_remove_port_fs
	movq	%rbx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_20
	.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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, #32]
Lloh3:
	adrp	x8, _IB_MGMT_CLASS_CM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_CLASS_CM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh6:
	adrp	x8, _IB_PORT_CM_SUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PORT_CM_SUP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	xzr, x8, [sp, #16]
	ldr	w2, [x0]
	bl	_struct_size
Lloh9:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #56]
	ldr	w8, [x19, #4]
	str	w8, [x0, #48]
	str	xzr, [x0, #40]
Lloh11:
	adrp	x8, _IB_MGMT_METHOD_SEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_MGMT_METHOD_SEND@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_bit
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x21, #0
	mov	w26, #0
Lloh14:
	adrp	x27, _IB_QPT_GSI@GOTPAGE
Lloh15:
	ldr	x27, [x27, _IB_QPT_GSI@GOTPAGEOFF]
Lloh16:
	adrp	x28, _cm_send_handler@GOTPAGE
Lloh17:
	ldr	x28, [x28, _cm_send_handler@GOTPAGEOFF]
Lloh18:
	adrp	x24, _cm_recv_handler@GOTPAGE
Lloh19:
	ldr	x24, [x24, _cm_recv_handler@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19]
	mov	x21, x23
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x21, #1
	mov	x0, x19
	mov	x1, x23
	bl	_rdma_cap_ib_cm
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	mov	w0, #64
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	str	x22, [x8, x21, lsl #3]
	str	x20, [x22, #32]
	str	w23, [x22]
	add	x0, x22, #24
	bl	_INIT_LIST_HEAD
	add	x0, x22, #20
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	bl	_cm_create_port_fs
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x27]
	ldr	w5, [x28]
	ldr	w6, [x24]
	str	wzr, [sp]
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x23
	mov	w4, #0
	mov	x7, x22
	bl	_ib_register_mad_agent
	str	w0, [x22, #4]
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_ib_modify_port
	cbnz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w26, #1
	b	LBB0_3
LBB0_10:
	add	w23, w21, #1
	b	LBB0_16
LBB0_11:
	cbz	w26, LBB0_17
; %bb.12:
Lloh20:
	adrp	x1, _cm_client@GOTPAGE
Lloh21:
	ldr	x1, [x1, _cm_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
Lloh22:
	adrp	x19, _cm@GOTPAGE
Lloh23:
	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_18
LBB0_13:
	add	w23, w21, #1
	b	LBB0_15
LBB0_14:
	add	w23, w21, #1
	ldr	w0, [x22, #4]
	bl	_ib_unregister_mad_agent
LBB0_15:
	mov	x0, x22
	bl	_cm_remove_port_fs
LBB0_16:
Lloh24:
	adrp	x8, _IB_PORT_CM_SUP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_PORT_CM_SUP@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #16]
	mov	x0, x22
	bl	_kfree
	cmp	w23, #1
	b.ne	LBB0_20
LBB0_17:
	mov	x0, x20
	bl	_kfree
LBB0_18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	subs	x21, x21, #1
	b.eq	LBB0_17
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rdma_cap_ib_cm
	cbz	w0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x21, lsl #3
	ldur	x22, [x8, #-8]
	ldr	w1, [x22]
	add	x3, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_ib_modify_port
	ldr	w0, [x22, #4]
	bl	_ib_unregister_mad_agent
	mov	x0, x22
	bl	_cm_remove_port_fs
	mov	x0, x22
	bl	_kfree
	b	LBB0_19
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.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
