	.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), %eax
	leal	(%rax,%rax,2), %eax
	leal	48(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r14
	movq	%r15, 40(%rax)
	movl	12(%r15), %eax
	movl	%eax, 32(%r14)
	movq	$0, 24(%r14)
	leaq	8(%r15), %rbx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movl	4(%r15), %r9d
	movq	_cm_class@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.24:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_2:
	movq	_IB_MGMT_METHOD_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_set_bit
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r15), %rax
	movq	%rbx, %r13
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r13), %rbx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rdma_cap_ib_cm
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	8(%r14), %rax
	movq	%r12, (%rax,%r13,8)
	movq	%r14, 16(%r12)
	movl	%ebx, (%r12)
	leaq	12(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	callq	_cm_create_port_fs
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 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	%r12
	pushq	%rax
	callq	_ib_register_mad_agent
	addq	$32, %rsp
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	callq	_ib_modify_port
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_16:
	leal	1(%r13), %ebx
	jmp	LBB0_17
LBB0_11:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.12:
	movq	_cm_client@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ib_set_client_data
	movq	_cm@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_irqsave
	addq	$16, %r14
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_write_unlock_irqrestore
	jmp	LBB0_23
LBB0_14:
	leal	1(%r13), %ebx
	jmp	LBB0_15
LBB0_13:
	leal	1(%r13), %ebx
	movl	4(%r12), %edi
	callq	_ib_unregister_mad_agent
LBB0_15:
	movq	%r12, %rdi
	callq	_cm_remove_port_fs
LBB0_17:
	movq	$0, -56(%rbp)
	movq	_IB_PORT_CM_SUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	cmpl	$1, %ebx
	jne	LBB0_18
LBB0_22:
	movl	(%r14), %edi
	callq	_device_unregister
	movq	%r14, %rdi
	callq	_kfree
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	-64(%rbp), %r12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	decq	%r13
	je	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_rdma_cap_ib_cm
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 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
	jmp	LBB0_21
	.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	_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, #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	x24, _IB_PORT_CM_SUP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IB_PORT_CM_SUP@GOTPAGEOFF]
	ldr	x8, [x24]
	stp	xzr, x8, [sp, #16]
	ldr	w8, [x0]
	mov	w9, #24
	orr	w10, wzr, #0x30
	madd	w0, w8, w9, w10
Lloh8:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_kzalloc
	cbz	x0, LBB0_20
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
	ldr	w8, [x19, #12]
	str	w8, [x0, #32]
	str	xzr, [x0, #24]
	add	x21, x19, #8
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w5, [x19, #4]
Lloh10:
	adrp	x0, _cm_class@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cm_class@GOTPAGEOFF]
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, #0
	bl	_device_create
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	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
	b	_kfree
LBB0_3:
Lloh14:
	adrp	x8, _IB_MGMT_METHOD_SEND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_MGMT_METHOD_SEND@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_set_bit
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x21, #0
	mov	w26, #0
Lloh17:
	adrp	x28, _cm_send_handler@GOTPAGE
Lloh18:
	ldr	x28, [x28, _cm_send_handler@GOTPAGEOFF]
Lloh19:
	adrp	x27, _cm_recv_handler@GOTPAGE
Lloh20:
	ldr	x27, [x27, _cm_recv_handler@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19]
	mov	x21, x22
	cmp	x22, x8
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x21, #1
	mov	x0, x19
	mov	x1, x22
	bl	_rdma_cap_ib_cm
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	ldr	x8, [x20, #8]
	str	x0, [x8, x21, lsl #3]
	str	x20, [x0, #16]
	str	w22, [x0], #12
	bl	_INIT_LIST_HEAD
	add	x0, x23, #8
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	bl	_cm_create_port_fs
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh21:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w5, [x28]
	ldr	w6, [x27]
	str	wzr, [sp]
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x22
	mov	w4, #0
	mov	x7, x23
	bl	_ib_register_mad_agent
	str	w0, [x23, #4]
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ib_modify_port
	cbnz	w0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, #1
	b	LBB0_5
LBB0_12:
	add	w22, w21, #1
	b	LBB0_18
LBB0_13:
	cbz	w26, LBB0_19
; %bb.14:
Lloh24:
	adrp	x1, _cm_client@GOTPAGE
Lloh25:
	ldr	x1, [x1, _cm_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
Lloh26:
	adrp	x19, _cm@GOTPAGE
Lloh27:
	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_15:
	add	w22, w21, #1
	b	LBB0_17
LBB0_16:
	add	w22, w21, #1
	ldr	w0, [x23, #4]
	bl	_ib_unregister_mad_agent
LBB0_17:
	mov	x0, x23
	bl	_cm_remove_port_fs
LBB0_18:
	ldr	x8, [x24]
	stp	x8, xzr, [sp, #16]
	cmp	w22, #1
	b.ne	LBB0_22
LBB0_19:
	ldr	w0, [x20]
	bl	_device_unregister
	mov	x0, x20
	bl	_kfree
LBB0_20:
	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_21:                                ;   in Loop: Header=BB0_22 Depth=1
	subs	x21, x21, #1
	b.eq	LBB0_19
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rdma_cap_ib_cm
	cbz	w0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 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
	b	LBB0_21
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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	_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
