	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_session_ticket ## -- Begin function tls_construct_ctos_session_ticket
	.p2align	4, 0x90
_tls_construct_ctos_session_ticket:     ## @tls_construct_ctos_session_ticket
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_tls_use_ticket
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	cmpl	$0, 16(%rbx)
	movq	(%rbx), %rax
	je	LBB0_2
## %bb.6:
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpq	$0, 8(%rax)
	je	LBB0_12
## %bb.9:
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_OPENSSL_malloc
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	%r15, 8(%rax)
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_12
LBB0_2:
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.4:
	movq	(%rax), %rcx
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movq	8(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_15
LBB0_12:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	cmpq	$0, 8(%rax)
	je	LBB0_19
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movq	_TLSEXT_TYPE_session_ticket@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	(%rbx), %rax
	movq	16(%rax), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_18:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %r12
LBB0_19:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_TLS1_3_VERSION,8,3             ## @TLS1_3_VERSION
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_TLSEXT_TYPE_session_ticket,4,2 ## @TLSEXT_TYPE_session_ticket
	.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_session_ticket ; -- Begin function tls_construct_ctos_session_ticket
	.p2align	2
_tls_construct_ctos_session_ticket:     ; @tls_construct_ctos_session_ticket
	.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	x20, x1
	mov	x19, x0
	bl	_tls_use_ticket
	cbz	w0, LBB0_17
; %bb.1:
	ldr	w9, [x19, #16]
	ldr	x8, [x19]
	cbz	w9, LBB0_7
; %bb.2:
	cbz	x8, LBB0_11
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_11
; %bb.5:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_OPENSSL_malloc
	ldr	x8, [x19]
	str	x0, [x8, #16]
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #8]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	str	x21, [x8, #8]
	cbnz	x21, LBB0_14
	b	LBB0_11
LBB0_7:
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
; %bb.9:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _TLS1_3_VERSION@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.10:
	ldr	x21, [x8, #8]
	cbnz	x21, LBB0_14
LBB0_11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
LBB0_13:
	mov	x21, #0
LBB0_14:
Lloh3:
	adrp	x8, _TLSEXT_TYPE_session_ticket@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_TYPE_session_ticket@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_18
; %bb.15:
	ldr	x8, [x19]
	ldr	x1, [x8, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_18
; %bb.16:
Lloh6:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh8:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh10:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh19:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_TLS1_3_VERSION,8,3             ; @TLS1_3_VERSION
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_TLSEXT_TYPE_session_ticket,4,2 ; @TLSEXT_TYPE_session_ticket
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
