	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_cm_create
_cnic_cm_create:                        ## @cnic_cm_create
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_CM_SK_TBL_SZ@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_1
## %bb.3:
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rbx,4), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r15
	leaq	(%rbx,%rbx,2), %r12
	shlq	$5, %r12
	leaq	(%r15,%r12), %rdi
	addq	$92, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SK_F_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r15,%r12), %rsi
	addq	$88, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	leaq	(%r15,%r12), %rax
	movq	%r14, 80(%r15,%r12)
	movq	%r13, (%rax)
	movq	%rbx, 8(%r15,%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%r15,%r12)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 72(%r15,%r12)
	movq	_DEF_KA_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%r15,%r12)
	movq	_DEF_KA_INTERVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%r15,%r12)
	movq	_DEF_KA_MAX_PROBE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r15,%r12)
	movq	_DEF_TOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%r15,%r12)
	movq	_DEF_TTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r15,%r12)
	movq	_DEF_SND_SEQ_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%r15,%r12)
	movq	_DEF_RCV_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r15,%r12)
	movq	_DEF_SND_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r15,%r12)
	movq	_DEF_SEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15,%r12)
	movq	$0, 24(%r15,%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CM_SK_TBL_SZ,8,3           ## @MAX_CM_SK_TBL_SZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CTX_FL_OFFLD_START,4,2         ## @CTX_FL_OFFLD_START
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_SK_F_INUSE,4,2                 ## @SK_F_INUSE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DEF_KA_TIMEOUT,4,2             ## @DEF_KA_TIMEOUT
	.comm	_DEF_KA_INTERVAL,4,2            ## @DEF_KA_INTERVAL
	.comm	_DEF_KA_MAX_PROBE_COUNT,4,2     ## @DEF_KA_MAX_PROBE_COUNT
	.comm	_DEF_TOS,4,2                    ## @DEF_TOS
	.comm	_DEF_TTL,4,2                    ## @DEF_TTL
	.comm	_DEF_SND_SEQ_SCALE,4,2          ## @DEF_SND_SEQ_SCALE
	.comm	_DEF_RCV_BUF,4,2                ## @DEF_RCV_BUF
	.comm	_DEF_SND_BUF,4,2                ## @DEF_SND_BUF
	.comm	_DEF_SEED,4,2                   ## @DEF_SEED
	.no_dead_strip	_cnic_cm_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_cm_create
_cnic_cm_create:                        ; @cnic_cm_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _MAX_CM_SK_TBL_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CM_SK_TBL_SZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_5
; %bb.1:
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x25, [x0]
	ldr	x8, [x25, #8]
Lloh3:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _CTX_FL_OFFLD_START@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CTX_FL_OFFLD_START@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	add	x1, x8, x21, lsl #2
	bl	_test_bit
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	x26, [x25]
	mov	w8, #96
	madd	x25, x21, x8, x26
	add	x0, x25, #92
	bl	_atomic_read
	cbz	x0, LBB0_9
LBB0_4:
	ldr	w8, [x27]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
LBB0_7:
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh10:
	adrp	x8, _SK_F_INUSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SK_F_INUSE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w8, #96
	madd	x8, x21, x8, x26
	add	x1, x8, #88
	bl	_test_and_set_bit
	cbz	x0, LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	mov	w8, #96
	madd	x8, x21, x8, x26
	str	x24, [x25]
	str	x21, [x8, #8]
	str	w22, [x8, #16]
	stp	x20, x23, [x8, #72]
Lloh15:
	adrp	x9, _DEF_KA_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DEF_KA_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x8, #64]
Lloh18:
	adrp	x9, _DEF_KA_INTERVAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DEF_KA_INTERVAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x8, #60]
Lloh21:
	adrp	x9, _DEF_KA_MAX_PROBE_COUNT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DEF_KA_MAX_PROBE_COUNT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x8, #56]
Lloh24:
	adrp	x9, _DEF_TOS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DEF_TOS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	str	w9, [x8, #52]
Lloh27:
	adrp	x9, _DEF_TTL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DEF_TTL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [x8, #48]
Lloh30:
	adrp	x9, _DEF_SND_SEQ_SCALE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DEF_SND_SEQ_SCALE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	str	w9, [x8, #44]
Lloh33:
	adrp	x9, _DEF_RCV_BUF@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DEF_RCV_BUF@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x8, #40]
Lloh36:
	adrp	x9, _DEF_SND_BUF@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DEF_SND_BUF@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	str	w9, [x8, #36]
Lloh39:
	adrp	x9, _DEF_SEED@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DEF_SEED@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	str	w9, [x8, #32]
	str	xzr, [x8, #24]
	str	x25, [x19]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CM_SK_TBL_SZ,8,3           ; @MAX_CM_SK_TBL_SZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CTX_FL_OFFLD_START,4,2         ; @CTX_FL_OFFLD_START
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_SK_F_INUSE,4,2                 ; @SK_F_INUSE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DEF_KA_TIMEOUT,4,2             ; @DEF_KA_TIMEOUT
	.comm	_DEF_KA_INTERVAL,4,2            ; @DEF_KA_INTERVAL
	.comm	_DEF_KA_MAX_PROBE_COUNT,4,2     ; @DEF_KA_MAX_PROBE_COUNT
	.comm	_DEF_TOS,4,2                    ; @DEF_TOS
	.comm	_DEF_TTL,4,2                    ; @DEF_TTL
	.comm	_DEF_SND_SEQ_SCALE,4,2          ; @DEF_SND_SEQ_SCALE
	.comm	_DEF_RCV_BUF,4,2                ; @DEF_RCV_BUF
	.comm	_DEF_SND_BUF,4,2                ; @DEF_SND_BUF
	.comm	_DEF_SEED,4,2                   ; @DEF_SEED
	.no_dead_strip	_cnic_cm_create
.subsections_via_symbols
