	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ssl_write_new_session_ticket
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ssl_write_new_session_ticket:          ## @ssl_write_new_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_SSL_MSG_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_MBEDTLS_SSL_HS_NEW_SESSION_TICKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdx
	movl	%eax, (%rdx)
	movq	32(%rbx), %rax
	movl	8(%rax), %edi
	movl	24(%rbx), %esi
	movq	_MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	addq	$40, %rdx
	leaq	-24(%rbp), %r8
	leaq	-12(%rbp), %r9
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	movq	$0, -24(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	-24(%rbp), %eax
LBB0_3:
	movl	-12(%rbp), %ecx
	movl	%ecx, %edx
	shrl	$16, %edx
	movl	%ecx, %esi
	shrl	$8, %esi
	movd	%edx, %xmm0
	pinsrd	$1, %esi, %xmm0
	pinsrd	$2, %ecx, %xmm0
	shrl	$24, %ecx
	movq	(%rbx), %rdx
	movl	%eax, %esi
	shrl	$8, %esi
	pinsrd	$3, %esi, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movl	%ecx, 16(%rdx)
	movdqu	%xmm0, 20(%rdx)
	movzbl	%al, %ecx
	movl	%ecx, 36(%rdx)
	addl	$10, %eax
	movl	%eax, 8(%rbx)
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_write_record
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> write new session ticket"

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,4,2  ## @MBEDTLS_SSL_MSG_HANDSHAKE
	.comm	_MBEDTLS_SSL_HS_NEW_SESSION_TICKET,4,2 ## @MBEDTLS_SSL_HS_NEW_SESSION_TICKET
	.comm	_MBEDTLS_SSL_MAX_CONTENT_LEN,4,2 ## @MBEDTLS_SSL_MAX_CONTENT_LEN
L_.str.1:                               ## @.str.1
	.asciz	"mbedtls_ssl_ticket_write"

L_.str.2:                               ## @.str.2
	.asciz	"mbedtls_ssl_write_record"

L_.str.3:                               ## @.str.3
	.asciz	"<= write new session ticket"

	.no_dead_strip	_ssl_write_new_session_ticket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ssl_write_new_session_ticket
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ssl_write_new_session_ticket:          ; @ssl_write_new_session_ticket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh2:
	adrp	x8, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh5:
	adrp	x8, _MBEDTLS_SSL_HS_NEW_SESSION_TICKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_SSL_HS_NEW_SESSION_TICKET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19]
	mov	x2, x9
	str	w8, [x2], #40
	ldr	x8, [x19, #32]
	ldr	x10, [x8]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #24]
Lloh8:
	adrp	x8, _MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_SSL_MAX_CONTENT_LEN@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x3, x9, x8, lsl #2
	add	x4, sp, #8
	add	x5, sp, #4
	blr	x10
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_RET
	mov	w8, #0
	str	xzr, [sp, #8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #8]
LBB0_3:
	ldr	w9, [sp, #4]
	lsr	w10, w9, #24
	ldr	x11, [x19]
	str	w10, [x11, #16]
	dup.2s	v0, w9
Lloh13:
	adrp	x10, lCPI0_0@PAGE
Lloh14:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x11, #20]
	and	w9, w9, #0xff
	ubfx	w10, w8, #8, #8
	stp	w9, w10, [x11, #28]
	and	w9, w8, #0xff
	str	w9, [x11, #36]
	add	w8, w8, #10
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_write_record
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> write new session ticket"

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,4,2  ; @MBEDTLS_SSL_MSG_HANDSHAKE
	.comm	_MBEDTLS_SSL_HS_NEW_SESSION_TICKET,4,2 ; @MBEDTLS_SSL_HS_NEW_SESSION_TICKET
	.comm	_MBEDTLS_SSL_MAX_CONTENT_LEN,4,2 ; @MBEDTLS_SSL_MAX_CONTENT_LEN
l_.str.1:                               ; @.str.1
	.asciz	"mbedtls_ssl_ticket_write"

l_.str.2:                               ; @.str.2
	.asciz	"mbedtls_ssl_write_record"

l_.str.3:                               ; @.str.3
	.asciz	"<= write new session ticket"

	.no_dead_strip	_ssl_write_new_session_ticket
.subsections_via_symbols
