	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_ctos_cookie      ## -- Begin function tls_construct_ctos_cookie
	.p2align	4, 0x90
_tls_construct_ctos_cookie:             ## @tls_construct_ctos_cookie
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_TLSEXT_TYPE_cookie@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_WPACKET_put_bytes_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_WPACKET_start_sub_packet_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_WPACKET_sub_memcpy_u16
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_WPACKET_close
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_CTOS_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
LBB0_8:
	movq	8(%rbx), %rdi
	callq	_OPENSSL_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	jmp	LBB0_9
LBB0_1:
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_cookie,4,2         ## @TLSEXT_TYPE_cookie
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_COOKIE,4,2 ## @SSL_F_TLS_CONSTRUCT_CTOS_COOKIE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.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_cookie      ; -- Begin function tls_construct_ctos_cookie
	.p2align	2
_tls_construct_ctos_cookie:             ; @tls_construct_ctos_cookie
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _TLSEXT_TYPE_cookie@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_TYPE_cookie@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WPACKET_put_bytes_u16
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_WPACKET_start_sub_packet_u16
	cbz	w0, LBB0_6
; %bb.3:
	ldp	x2, x1, [x19]
	mov	x0, x21
	bl	_WPACKET_sub_memcpy_u16
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_WPACKET_close
	cbz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_CTOS_COOKIE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_CTOS_COOKIE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_OPENSSL_free
	stp	xzr, xzr, [x19]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
LBB0_9:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_TLSEXT_TYPE_cookie,4,2         ; @TLSEXT_TYPE_cookie
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_CTOS_COOKIE,4,2 ; @SSL_F_TLS_CONSTRUCT_CTOS_COOKIE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
