	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_padding     ## -- Begin function tls_construct_ctos_padding
	.p2align	4, 0x90
_tls_construct_ctos_padding:            ## @tls_construct_ctos_padding
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SSL_OP_TLSEXT_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_WPACKET_get_total_written
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.6:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%rax), %edi
	callq	_ssl_md
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_PSK_PRE_BINDER_OVERHEAD@GOTPCREL(%rip), %rcx
	movq	8(%r15), %rdx
	movq	8(%rdx), %rbx
	addq	(%rcx), %rbx
	movq	%rax, %rdi
	callq	_EVP_MD_size
	addq	%rbx, %rax
	addq	%rax, -32(%rbp)
LBB0_9:
	movq	-32(%rbp), %rax
	movq	_F5_WORKAROUND_MIN_MSG_LEN@GOTPCREL(%rip), %rcx
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jbe	LBB0_14
## %bb.10:
	movq	_F5_WORKAROUND_MAX_MSG_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%rax, %rcx
	jbe	LBB0_14
## %bb.11:
	leaq	-4(%rcx), %rax
	cmpq	$5, %rcx
	movl	$1, %ecx
	cmovaeq	%rax, %rcx
	movq	%rcx, -32(%rbp)
	movq	_TLSEXT_TYPE_padding@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_3
## %bb.12:
	movq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_WPACKET_sub_allocate_bytes_u16
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:
	movq	-40(%rbp), %rdi
	movq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_14
LBB0_1:
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_3:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_OP_TLSEXT_PADDING,4,2      ## @SSL_OP_TLSEXT_PADDING
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_PADDING,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_PADDING
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_TLS1_3_VERSION,8,3             ## @TLS1_3_VERSION
	.comm	_PSK_PRE_BINDER_OVERHEAD,8,3    ## @PSK_PRE_BINDER_OVERHEAD
	.comm	_F5_WORKAROUND_MIN_MSG_LEN,8,3  ## @F5_WORKAROUND_MIN_MSG_LEN
	.comm	_F5_WORKAROUND_MAX_MSG_LEN,8,3  ## @F5_WORKAROUND_MAX_MSG_LEN
	.comm	_TLSEXT_TYPE_padding,4,2        ## @TLSEXT_TYPE_padding
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_padding     ; -- Begin function tls_construct_ctos_padding
	.p2align	2
_tls_construct_ctos_padding:            ; @tls_construct_ctos_padding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SSL_OP_TLSEXT_PADDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_OP_TLSEXT_PADDING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x1, sp
	mov	x0, x20
	bl	_WPACKET_get_total_written
	cbz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _TLS1_3_VERSION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.4:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w0, [x8]
	bl	_ssl_md
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _PSK_PRE_BINDER_OVERHEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSK_PRE_BINDER_OVERHEAD@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #8]
	add	x21, x9, x8
	bl	_EVP_MD_size
	ldr	x8, [sp]
	add	x9, x21, x0
	add	x8, x9, x8
	str	x8, [sp]
LBB0_7:
	ldr	x8, [sp]
Lloh9:
	adrp	x9, _F5_WORKAROUND_MIN_MSG_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _F5_WORKAROUND_MIN_MSG_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_12
; %bb.8:
Lloh12:
	adrp	x9, _F5_WORKAROUND_MAX_MSG_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _F5_WORKAROUND_MAX_MSG_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	subs	x8, x9, x8
	b.ls	LBB0_12
; %bb.9:
	subs	x8, x8, #4
	csinc	x8, x8, xzr, hi
	str	x8, [sp]
Lloh15:
	adrp	x8, _TLSEXT_TYPE_padding@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLSEXT_TYPE_padding@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x1, [sp]
	add	x2, sp, #8
	mov	x0, x20
	bl	_WPACKET_sub_allocate_bytes_u16
	cbz	w0, LBB0_14
; %bb.11:
	ldp	x2, x0, [sp]
	mov	w1, #0
	bl	_memset
LBB0_12:
Lloh18:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh20:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh22:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_PADDING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_PADDING@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh31:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_OP_TLSEXT_PADDING,4,2      ; @SSL_OP_TLSEXT_PADDING
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_PADDING,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_PADDING
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_TLS1_3_VERSION,8,3             ; @TLS1_3_VERSION
	.comm	_PSK_PRE_BINDER_OVERHEAD,8,3    ; @PSK_PRE_BINDER_OVERHEAD
	.comm	_F5_WORKAROUND_MIN_MSG_LEN,8,3  ; @F5_WORKAROUND_MIN_MSG_LEN
	.comm	_F5_WORKAROUND_MAX_MSG_LEN,8,3  ; @F5_WORKAROUND_MAX_MSG_LEN
	.comm	_TLSEXT_TYPE_padding,4,2        ; @TLSEXT_TYPE_padding
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
