	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_send_contexts             ## -- Begin function init_send_contexts
	.p2align	4, 0x90
_init_send_contexts:                    ## @init_send_contexts
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_init_credit_return
	testl	%eax, %eax
	jne	LBB0_21
## %bb.1:
	movq	_TXE_NUM_CONTEXTS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 16(%r14)
	movl	24(%r14), %edi
	movl	(%rbx), %edx
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.5:
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.6:
	movq	_INVALID_SCI@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%rdi)
	cmpl	$2, (%r15)
	jl	LBB0_9
## %bb.7:
	movl	$1, %ecx
	movl	$16, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rsi
	movups	(%rax), %xmm0
	movups	%xmm0, (%rsi,%rdx)
	incq	%rcx
	movslq	(%r15), %rsi
	addq	$16, %rdx
	cmpq	%rsi, %rcx
	jl	LBB0_8
LBB0_9:
	movq	_SC_MAX@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.10:
	movq	8(%r14), %r9
	xorl	%edx, %edx
	movl	$1, %esi
	xorl	%r11d, %r11d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r8), %eax
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_20
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movl	(%r9,%rcx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %r10
	movq	8(%r9,%rcx), %rax
	movslq	%r11d, %r11
	cmpl	$1, %r15d
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r11, %rcx
	shlq	$4, %rcx
	leaq	(%r10,%rcx), %rbx
	addq	$24, %rbx
	movl	%r15d, %edi
	andl	$-2, %edi
	negl	%edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, -24(%rbx)
	movl	%esi, -20(%rbx)
	movq	%rax, -16(%rbx)
	addl	%eax, %esi
	movl	%edx, -8(%rbx)
	movl	%esi, -4(%rbx)
	movq	%rax, (%rbx)
	addl	%eax, %esi
	addq	$-2, %rcx
	addq	$32, %rbx
	cmpl	%ecx, %edi
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	subq	%rcx, %r11
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	testb	$1, %r15b
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r11, %rcx
	shlq	$4, %rcx
	movl	%edx, (%r10,%rcx)
	movl	%esi, 4(%r10,%rcx)
	movq	%rax, 8(%r10,%rcx)
	incq	%r11
	addl	%eax, %esi
	jmp	LBB0_18
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_3:
	xorl	%edi, %edi
LBB0_4:
	callq	_kfree
	movq	(%r14), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_free_credit_return
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXE_NUM_CONTEXTS,4,2           ## @TXE_NUM_CONTEXTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INVALID_SCI,16,3               ## @INVALID_SCI
	.comm	_SC_MAX,4,2                     ## @SC_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_send_contexts             ; -- Begin function init_send_contexts
	.p2align	2
_init_send_contexts:                    ; @init_send_contexts
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_init_credit_return
	cbnz	w0, LBB0_21
; %bb.1:
Lloh0:
	adrp	x20, _TXE_NUM_CONTEXTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TXE_NUM_CONTEXTS@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #16]
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #16
	bl	_kcalloc
	mov	x8, x0
	str	x0, [x19]
	ldr	x0, [x19, #16]
	cbz	x8, LBB0_19
; %bb.2:
	cbz	x0, LBB0_19
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
Lloh4:
	adrp	x8, _INVALID_SCI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INVALID_SCI@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [x0]
	ldr	w9, [x20]
	cmp	w9, #1
	b.le	LBB0_7
; %bb.5:
	mov	w9, #1
	mov	w10, #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #16]
	ldr	q0, [x8]
	str	q0, [x11, x10]
	add	x9, x9, #1
	ldrsw	x11, [x20]
	add	x10, x10, #16
	cmp	x9, x11
	b.lt	LBB0_6
LBB0_7:
Lloh6:
	adrp	x8, _SC_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SC_MAX@GOTPAGEOFF]
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_20
; %bb.8:
	mov	x9, #0
	mov	w13, #0
	ldr	x10, [x19, #8]
	mov	w12, #1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w11, [x8]
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	mov	x12, x14
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_20
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	lsl	x14, x9, #4
	ldr	w15, [x10, x14]
	subs	w14, w15, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x16, [x19]
	add	x11, x10, x9, lsl #4
	ldr	x11, [x11, #8]
	sxtw	x5, w13
	cmp	w14, #3
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w17, #0
	mov	x13, x5
	mov	x14, x12
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x14, #1
	and	x17, x0, #0x1fffffffc
	add	x13, x17, x5
	lsl	w1, w11, #1
	madd	w14, w17, w11, w12
	add	w2, w1, w11
	and	x3, x11, #0x3fffffff
	lsl	x3, x3, #2
	lsl	w4, w11, #2
	add	x5, x16, x5, lsl #4
	add	x5, x5, #32
	mov	x6, x17
	mov	w7, w12
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w20, w11, w7
	add	w21, w1, w12
	add	w22, w2, w12
	stp	w9, w12, [x5, #-32]
	stp	w9, w20, [x5, #-16]
	stp	w9, w21, [x5]
	stp	w9, w22, [x5, #16]
	stur	x11, [x5, #-24]
	stur	x11, [x5, #-8]
	add	x7, x7, x3
	add	w12, w12, w4
	str	x11, [x5, #8]
	str	x11, [x5, #24]
	add	x5, x5, #64
	subs	x6, x6, #4
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x0, x17
	b.eq	LBB0_9
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x12, x16, x13, lsl #4
	add	x12, x12, #4
	sub	w15, w15, w17
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w9, w14, [x12, #-4]
	add	x13, x13, #1
	add	w14, w14, w11
	stur	x11, [x12, #4]
	add	x12, x12, #16
	subs	w15, w15, #1
	b.ne	LBB0_18
	b	LBB0_9
LBB0_19:
	bl	_kfree
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	bl	_free_credit_return
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TXE_NUM_CONTEXTS,4,2           ; @TXE_NUM_CONTEXTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INVALID_SCI,16,3               ; @INVALID_SCI
	.comm	_SC_MAX,4,2                     ; @SC_MAX
.subsections_via_symbols
