	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mempacket_test_inject          ## -- Begin function mempacket_test_inject
	.p2align	4, 0x90
_mempacket_test_inject:                 ## @mempacket_test_inject
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_BIO_get_data
	movq	%rax, %r15
	movl	$-1, %eax
	testq	%r15, %r15
	je	LBB0_38
## %bb.1:
	movq	_RECORD_LEN_HI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	(%rbx,%rcx), %edx
	shlq	$8, %rdx
	movq	_RECORD_LEN_LO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	(%rbx,%rcx), %ecx
	orq	%rdx, %rcx
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	addq	%rcx, %rdx
	movslq	%r14d, %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_38
## %bb.2:
	jne	LBB0_7
## %bb.3:
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	testl	%r12d, %r12d
	js	LBB0_9
## %bb.5:
	cmpl	$0, 8(%r15)
	jne	LBB0_38
## %bb.6:
	movl	$1, 12(%r15)
	jmp	LBB0_10
LBB0_7:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	setg	%sil
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %r12d
	je	LBB0_4
## %bb.8:
	testq	%rcx, %rcx
	jg	LBB0_38
	jmp	LBB0_4
LBB0_9:
	movl	$1, 8(%r15)
LBB0_10:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rdx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	subl	%edx, %r14d
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movzbl	-88(%rbp), %eax                 ## 1-byte Folded Reload
	addq	%rax, %rax
	incq	%rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, 4(%r13)
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	incq	%rbx
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_19
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$24, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r13
	movq	%rax, -80(%rbp,%rbx,8)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_35
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_OPENSSL_malloc
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_35
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$2, %rbx
	setne	%al
	andb	-88(%rbp), %al                  ## 1-byte Folded Reload
	movq	16(%r13), %rdi
	cmpb	$1, %al
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r12d, %r14d
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r12d, %eax
	movl	%r14d, %r12d
	movq	-128(%rbp), %r15                ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, (%r13)
	movl	%r12d, %eax
	testl	%r12d, %r12d
	jns	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%r15), %eax
	addl	%ebx, %eax
	jmp	LBB0_11
LBB0_19:
	movl	20(%r15), %edi
	xorl	%esi, %esi
	callq	_sk_MEMPACKET_value
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	incl	16(%r15)
	incl	%eax
	movl	%eax, 4(%r13)
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	20(%r15), %edi
	movl	%ebx, %esi
	callq	_sk_MEMPACKET_value
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %eax
	cmpl	4(%r13), %eax
	ja	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	jne	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$0, 8(%r15)
	jne	LBB0_21
	jmp	LBB0_35
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_34
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %rsi
	movl	20(%r15), %edi
	callq	_sk_MEMPACKET_push
	testl	%eax, %eax
	je	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	testl	%r12d, %r12d
	jns	LBB0_27
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	incl	16(%r15)
	jmp	LBB0_27
LBB0_32:
	movl	20(%r15), %edi
	leal	-1(%rbx), %edx
	movq	%r13, %rsi
	callq	_sk_MEMPACKET_insert
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	testl	%r12d, %r12d
	jns	LBB0_34
## %bb.40:
	movl	16(%r15), %eax
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	incl	%eax
	movl	%eax, 16(%r15)
	movl	20(%r15), %edi
	movl	%ebx, %esi
	callq	_sk_MEMPACKET_value
	testq	%rax, %rax
	je	LBB0_34
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movl	4(%rax), %eax
	incl	%ebx
	cmpl	16(%r15), %eax
	je	LBB0_41
LBB0_34:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_38
LBB0_35:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %rdi
	callq	_mempacket_free
	incq	%rbx
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	setg	%al
	addq	%rax, %rax
	incq	%rax
	cmpq	%rax, %rbx
	jb	LBB0_36
## %bb.37:
	movl	$-1, %eax
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_45
## %bb.39:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RECORD_LEN_HI,8,3              ## @RECORD_LEN_HI
	.comm	_RECORD_LEN_LO,8,3              ## @RECORD_LEN_LO
	.comm	_DTLS1_RT_HEADER_LENGTH,1,0     ## @DTLS1_RT_HEADER_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mempacket_test_inject          ; -- Begin function mempacket_test_inject
	.p2align	2
_mempacket_test_inject:                 ; @mempacket_test_inject
	.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	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_BIO_get_data
	cbz	x0, LBB0_55
; %bb.1:
Lloh3:
	adrp	x8, _RECORD_LEN_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RECORD_LEN_HI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrb	w8, [x23, x8]
Lloh6:
	adrp	x9, _RECORD_LEN_LO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RECORD_LEN_LO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldrb	w9, [x23, x9]
	bfi	x9, x8, #8, #8
Lloh9:
	adrp	x8, _DTLS1_RT_HEADER_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DTLS1_RT_HEADER_LENGTH@GOTPAGEOFF]
	ldrb	w8, [x8]
	sxtw	x10, w19
	add	x25, x9, x8
	cmp	x25, x10
	b.hi	LBB0_55
; %bb.2:
	mov	x20, x0
	b.ne	LBB0_7
; %bb.3:
	mov	w27, #0
LBB0_4:
	tbnz	w21, #31, LBB0_9
; %bb.5:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_55
; %bb.6:
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w27, gt
	cmn	w21, #1
	b.eq	LBB0_4
; %bb.8:
	cmp	x8, #0
	b.gt	LBB0_55
	b	LBB0_4
LBB0_9:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_10:
	mov	w0, #24
	bl	_OPENSSL_malloc
	mov	x24, x0
	str	x0, [sp]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.11:
	mov	x0, x19
	bl	_OPENSSL_malloc
	str	x0, [x24, #16]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.12:
	add	x26, x23, x25
	sub	w25, w19, w25
	ldr	x0, [x24, #16]
	cbz	w27, LBB0_14
; %bb.13:
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	mov	x8, x25
	b	LBB0_15
LBB0_14:
	mov	x1, x23
	mov	x2, x19
	bl	_memcpy
	mov	x8, x19
LBB0_15:
	str	w8, [x24]
	mov	x8, x21
	tbz	w21, #31, LBB0_17
; %bb.16:
	ldr	w8, [x20, #16]
LBB0_17:
	mov	x28, x24
	stp	w8, w22, [x28, #4]!
	cbz	w27, LBB0_30
; %bb.18:
	mov	w0, #24
	bl	_OPENSSL_malloc
	mov	x24, x0
	str	x0, [sp, #8]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.19:
	mov	x0, x19
	bl	_OPENSSL_malloc
	str	x0, [x24, #16]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.20:
	ldr	x0, [x24, #16]
	tbz	w27, #0, LBB0_22
; %bb.21:
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	b	LBB0_23
LBB0_22:
	mov	x1, x23
	mov	x2, x19
	bl	_memcpy
	mov	x25, x19
LBB0_23:
	str	w25, [x24]
	mov	x8, x21
	tbz	w21, #31, LBB0_25
; %bb.24:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
LBB0_25:
	stp	w8, w22, [x24, #4]
	mov	w0, #24
	bl	_OPENSSL_malloc
	mov	x24, x0
	str	x0, [sp, #16]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.26:
	mov	x0, x19
	bl	_OPENSSL_malloc
	str	x0, [x24, #16]
	bl	_TEST_ptr
	cbz	w0, LBB0_52
; %bb.27:
	ldr	x0, [x24, #16]
	mov	x1, x23
	mov	x2, x19
	bl	_memcpy
	str	w19, [x24]
	mov	x8, x21
	tbz	w21, #31, LBB0_29
; %bb.28:
	ldr	w8, [x20, #16]
	add	w8, w8, #2
LBB0_29:
	mov	x28, x24
	stp	w8, w22, [x28, #4]!
LBB0_30:
	ldr	w0, [x20, #20]
	mov	w1, #0
	bl	_sk_MEMPACKET_value
	cbz	x0, LBB0_37
; %bb.31:
	mov	w22, #1
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w0, [x20, #20]
	mov	x1, x22
	bl	_sk_MEMPACKET_value
	add	w22, w22, #1
	cbz	x0, LBB0_37
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x0, #4]
	ldr	w9, [x28]
	cmp	w8, w9
	b.hi	LBB0_47
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	b.ne	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_52
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w9, [x20, #16]
	add	w9, w9, #1
	str	w9, [x20, #16]
	add	w8, w8, #1
	str	w8, [x28]
	b	LBB0_32
LBB0_37:
	ldr	x1, [sp]
	ldr	w0, [x20, #20]
	bl	_sk_MEMPACKET_push
	cbz	w0, LBB0_52
; %bb.38:
	tbz	w21, #31, LBB0_40
; %bb.39:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_40:
	cbz	w27, LBB0_56
; %bb.41:
	ldr	x1, [sp, #8]
	ldr	w0, [x20, #20]
	bl	_sk_MEMPACKET_push
	cbz	w0, LBB0_52
; %bb.42:
	tbz	w21, #31, LBB0_44
; %bb.43:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
LBB0_44:
	ldr	x1, [sp, #16]
	ldr	w0, [x20, #20]
	bl	_sk_MEMPACKET_push
	cbz	w0, LBB0_52
; %bb.45:
	tbz	w21, #31, LBB0_56
; %bb.46:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_56
LBB0_47:
	ldr	w0, [x20, #20]
	sub	w2, w22, #1
	mov	x1, x24
	bl	_sk_MEMPACKET_insert
	cbz	x0, LBB0_52
; %bb.48:
	tbz	w21, #31, LBB0_56
; %bb.49:
	ldr	w8, [x20, #16]
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	w0, [x20, #20]
	mov	x1, x22
	bl	_sk_MEMPACKET_value
	cbz	x0, LBB0_56
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x0, #4]
	ldr	w9, [x20, #16]
	add	w22, w22, #1
	cmp	w8, w9
	b.eq	LBB0_50
	b	LBB0_56
LBB0_52:
	ldr	x0, [sp]
	bl	_mempacket_free
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_55
; %bb.53:
	ldr	x0, [sp, #8]
	bl	_mempacket_free
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_55
; %bb.54:
	ldr	x0, [sp, #16]
	bl	_mempacket_free
LBB0_55:
	mov	w19, #-1
LBB0_56:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_58
; %bb.57:
	mov	x0, x19
	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
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RECORD_LEN_HI,8,3              ; @RECORD_LEN_HI
	.comm	_RECORD_LEN_LO,8,3              ; @RECORD_LEN_LO
	.comm	_DTLS1_RT_HEADER_LENGTH,1,0     ; @DTLS1_RT_HEADER_LENGTH
.subsections_via_symbols
