	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mempacket_test_read
_mempacket_test_read:                   ## @mempacket_test_read
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_BIO_get_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_BIO_clear_retry_flags
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_sk_MEMPACKET_value
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	callq	_sk_MEMPACKET_shift
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	incq	(%r9)
	movl	8(%r13), %r12d
	cmpl	%r15d, %r12d
	cmovll	%r12d, %r15d
	movq	16(%r13), %rax
	movq	_INJECT_PACKET_IGNORE_REC_SEQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.4:
	cmpq	$0, 24(%r9)
	jne	LBB0_6
## %bb.5:
	cmpl	$0, 8(%r9)
	js	LBB0_23
LBB0_6:
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.7:
	movq	24(%r13), %r14
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %r10
	movq	_EPOCH_HI@GOTPCREL(%rip), %r11
	movq	_RECORD_SEQUENCE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %eax
	addq	%rax, %r14
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	16(%r9)
	testl	%r12d, %r12d
	jle	LBB0_23
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	$-1, %eax
	cmpl	(%r10), %r12d
	jl	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edx
	movq	(%r11), %rcx
	movzbl	(%r14,%rcx), %esi
	shll	$8, %esi
	movq	_EPOCH_LO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	(%r14,%rcx), %r8d
	orl	%esi, %r8d
	cmpl	12(%r9), %r8d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r9), %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r8d, 12(%r9)
	movl	$0, 16(%r9)
	xorl	%ebx, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %ecx
	addl	%edi, %ecx
	movb	%bl, (%r14,%rcx)
	shrl	$8, %esi
	decl	%edi
	cmpl	$255, %ebx
	movl	%esi, %ebx
	ja	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_RECORD_LEN_HI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	(%r14,%rcx), %ecx
	shll	$8, %ecx
	movq	_RECORD_LEN_LO@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movzbl	(%r14,%rsi), %r13d
	orl	%ecx, %r13d
	addl	(%r10), %r13d
	movl	%edx, %r12d
	subl	%r13d, %r12d
	jl	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r9), %eax
	cmpl	16(%r9), %eax
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r8d, 20(%r9)
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	subl	%r13d, %edx
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %esi
	addq	%r14, %rsi
	movq	%r14, %rdi
	callq	_memmove
	movq	_EPOCH_HI@GOTPCREL(%rip), %r11
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$-1, 8(%r9)
	subl	%r13d, -44(%rbp)                ## 4-byte Folded Spill
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_set_retry_read
	movq	_EPOCH_HI@GOTPCREL(%rip), %r11
	movq	_DTLS1_RT_HEADER_LENGTH@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_22
LBB0_2:
	movq	%r12, %rdi
	callq	_BIO_set_retry_read
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_23:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_mempacket_free
	movl	%ebx, %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INJECT_PACKET_IGNORE_REC_SEQ,8,3 ## @INJECT_PACKET_IGNORE_REC_SEQ
	.comm	_DTLS1_RT_HEADER_LENGTH,4,2     ## @DTLS1_RT_HEADER_LENGTH
	.comm	_EPOCH_HI,8,3                   ## @EPOCH_HI
	.comm	_EPOCH_LO,8,3                   ## @EPOCH_LO
	.comm	_RECORD_SEQUENCE,4,2            ## @RECORD_SEQUENCE
	.comm	_RECORD_LEN_HI,8,3              ## @RECORD_LEN_HI
	.comm	_RECORD_LEN_LO,8,3              ## @RECORD_LEN_LO
	.no_dead_strip	_mempacket_test_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mempacket_test_read
_mempacket_test_read:                   ; @mempacket_test_read
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	bl	_BIO_get_data
	mov	x22, x0
	mov	x0, x21
	bl	_BIO_clear_retry_flags
	ldr	w0, [x22, #32]
	mov	w1, #0
	bl	_sk_MEMPACKET_value
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22, #32]
	bl	_sk_MEMPACKET_shift
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	w8, [x20, #8]
	cmp	w8, w23
	csel	w23, w8, w23, lt
	ldr	x9, [x20, #16]
Lloh0:
	adrp	x10, _INJECT_PACKET_IGNORE_REC_SEQ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INJECT_PACKET_IGNORE_REC_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_3:
	ldr	x1, [x20, #24]
	mov	x0, x19
	mov	x2, x23
	bl	_memcpy
	mov	x0, x20
	bl	_mempacket_free
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_BIO_set_retry_read
LBB0_5:
	mov	w23, #-1
LBB0_6:
	mov	x0, x23
	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_7:
	ldr	x9, [x22, #24]
	cbz	x9, LBB0_9
; %bb.8:
	cmp	w8, #1
	b.ge	LBB0_11
	b	LBB0_3
LBB0_9:
	ldr	w9, [x22, #8]
	tbnz	w9, #31, LBB0_3
; %bb.10:
	cmp	w8, #0
	b.le	LBB0_3
LBB0_11:
Lloh3:
	adrp	x25, _DTLS1_RT_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DTLS1_RT_HEADER_LENGTH@GOTPAGEOFF]
Lloh5:
	adrp	x13, _EPOCH_HI@GOTPAGE
Lloh6:
	ldr	x13, [x13, _EPOCH_HI@GOTPAGEOFF]
Lloh7:
	adrp	x14, _EPOCH_LO@GOTPAGE
Lloh8:
	ldr	x14, [x14, _EPOCH_LO@GOTPAGEOFF]
Lloh9:
	adrp	x28, _RECORD_SEQUENCE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _RECORD_SEQUENCE@GOTPAGEOFF]
	ldr	x24, [x20, #24]
Lloh11:
	adrp	x15, _RECORD_LEN_HI@GOTPAGE
Lloh12:
	ldr	x15, [x15, _RECORD_LEN_HI@GOTPAGEOFF]
Lloh13:
	adrp	x16, _RECORD_LEN_LO@GOTPAGE
Lloh14:
	ldr	x16, [x16, _RECORD_LEN_LO@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, w27, uxtw
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	mov	x8, x26
	cmp	w26, #0
	b.le	LBB0_3
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w9, [x25]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x13]
	ldrb	w10, [x24, x9]
	ldr	x9, [x14]
	ldrb	w9, [x24, x9]
	bfi	w9, w10, #8, #8
	ldr	w10, [x22, #12]
	cmp	w9, w10
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w10, [x22, #16]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w10, #0
	stp	w9, wzr, [x22, #12]
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w11, #0
LBB0_19:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x28]
	add	w12, w11, w12
	strb	w10, [x24, w12, uxtw]
	lsr	w12, w10, #8
	sub	w11, w11, #1
	cmp	w10, #255
	mov	x10, x12
	b.hi	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x10, [x15]
	ldrb	w10, [x24, x10]
	ldr	x11, [x16]
	ldrb	w11, [x24, x11]
	bfi	w11, w10, #8, #8
	ldr	w10, [x25]
	add	w27, w11, w10
	subs	w26, w8, w27
	b.lt	LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w10, [x22, #8]
	ldr	w11, [x22, #16]
	cmp	w10, w11
	b.ne	LBB0_12
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w10, [x22, #20]
	cmp	w10, w9
	b.ne	LBB0_12
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	subs	w2, w8, w27
	b.le	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x1, x24, w27, uxtw
	mov	x0, x24
	bl	_memmove
Lloh15:
	adrp	x16, _RECORD_LEN_LO@GOTPAGE
Lloh16:
	ldr	x16, [x16, _RECORD_LEN_LO@GOTPAGEOFF]
Lloh17:
	adrp	x15, _RECORD_LEN_HI@GOTPAGE
Lloh18:
	ldr	x15, [x15, _RECORD_LEN_HI@GOTPAGEOFF]
Lloh19:
	adrp	x14, _EPOCH_LO@GOTPAGE
Lloh20:
	ldr	x14, [x14, _EPOCH_LO@GOTPAGEOFF]
Lloh21:
	adrp	x13, _EPOCH_HI@GOTPAGE
Lloh22:
	ldr	x13, [x13, _EPOCH_HI@GOTPAGEOFF]
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #-1
	str	w8, [x22, #8]
	subs	w23, w23, w27
	b.ne	LBB0_13
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_BIO_set_retry_read
Lloh23:
	adrp	x16, _RECORD_LEN_LO@GOTPAGE
Lloh24:
	ldr	x16, [x16, _RECORD_LEN_LO@GOTPAGEOFF]
Lloh25:
	adrp	x15, _RECORD_LEN_HI@GOTPAGE
Lloh26:
	ldr	x15, [x15, _RECORD_LEN_HI@GOTPAGEOFF]
Lloh27:
	adrp	x14, _EPOCH_LO@GOTPAGE
Lloh28:
	ldr	x14, [x14, _EPOCH_LO@GOTPAGEOFF]
Lloh29:
	adrp	x13, _EPOCH_HI@GOTPAGE
Lloh30:
	ldr	x13, [x13, _EPOCH_HI@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INJECT_PACKET_IGNORE_REC_SEQ,8,3 ; @INJECT_PACKET_IGNORE_REC_SEQ
	.comm	_DTLS1_RT_HEADER_LENGTH,4,2     ; @DTLS1_RT_HEADER_LENGTH
	.comm	_EPOCH_HI,8,3                   ; @EPOCH_HI
	.comm	_EPOCH_LO,8,3                   ; @EPOCH_LO
	.comm	_RECORD_SEQUENCE,4,2            ; @RECORD_SEQUENCE
	.comm	_RECORD_LEN_HI,8,3              ; @RECORD_LEN_HI
	.comm	_RECORD_LEN_LO,8,3              ; @RECORD_LEN_LO
	.no_dead_strip	_mempacket_test_read
.subsections_via_symbols
