	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_save_u16                  ## -- Begin function tls1_save_u16
	.p2align	4, 0x90
_tls1_save_u16:                         ## @tls1_save_u16
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_PACKET_remaining
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	shrq	%rbx
	leaq	(,%rbx,4), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	cmpq	$2, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_SSL_F_TLS1_SAVE_U16@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	jmp	LBB0_13
LBB0_6:
	cmpq	$2, %rbx
	movl	$1, %r13d
	cmovaeq	%rbx, %r13
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_PACKET_get_net_2
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_7
## %bb.9:
	movq	%r13, %rbx
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_OPENSSL_free
	movq	%r12, (%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	$1, %r13d
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	callq	_OPENSSL_free
	xorl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_TLS1_SAVE_U16,4,2        ## @SSL_F_TLS1_SAVE_U16
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_save_u16                  ; -- Begin function tls1_save_u16
	.p2align	2
_tls1_save_u16:                         ; @tls1_save_u16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_PACKET_remaining
	mov	x23, x0
	mov	w0, #0
	cbz	x23, LBB0_14
; %bb.1:
	tbnz	w23, #0, LBB0_14
; %bb.2:
	lsr	x24, x23, #1
	lsl	x0, x24, #2
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	cmp	x23, #2
	b.hs	LBB0_6
; %bb.4:
	mov	x23, #0
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x8, _SSL_F_TLS1_SAVE_U16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_F_TLS1_SAVE_U16@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_SSLerr
	b	LBB0_13
LBB0_6:
	mov	x23, #0
	cmp	x24, #1
	csinc	x25, x24, xzr, hi
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_PACKET_get_net_2
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x21, x23, lsl #2]
	add	x23, x23, #1
	cmp	x25, x23
	b.ne	LBB0_7
; %bb.9:
	mov	x23, x25
LBB0_10:
	cmp	x23, x24
	b.ne	LBB0_12
; %bb.11:
	ldr	x0, [x20]
	bl	_OPENSSL_free
	str	x21, [x20]
	str	x24, [x19]
	mov	w0, #1
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	bl	_OPENSSL_free
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_TLS1_SAVE_U16,4,2        ; @SSL_F_TLS1_SAVE_U16
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
