	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_ticket_parse       ## -- Begin function mbedtls_ssl_ticket_parse
	.p2align	4, 0x90
_mbedtls_ssl_ticket_parse:              ## @mbedtls_ssl_ticket_parse
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	movq	%rcx, %r13
	cmpq	$33, %rcx
	ja	LBB0_6
LBB0_3:
	movq	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_ssl_ticket_update_keys
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movzwl	16(%r12), %eax
	rolw	$8, %ax
	movzwl	%ax, %r15d
	leaq	34(%r15), %rax
	cmpq	%r13, %rax
	jne	LBB0_3
## %bb.8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ssl_ticket_select_key
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	4(%r12), %rsi
	leaq	18(%r12), %rbx
	leaq	(%rbx,%r15), %r10
	subq	$8, %rsp
	leaq	-48(%rbp), %r11
	movq	%rax, %rdi
	movl	$12, %edx
	movq	%r12, %rcx
	movl	$18, %r8d
	movq	%rbx, %r9
	pushq	$16
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	pushq	%r15
	callq	_mbedtls_cipher_auth_decrypt
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	_MBEDTLS_ERR_CIPHER_AUTH_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.11:
	movq	_MBEDTLS_ERR_SSL_INVALID_MAC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	_MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	cmpq	%r15, -48(%rbp)
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ssl_load_session
	jmp	LBB0_5
LBB0_15:
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED,4,2 ## @MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED
	.comm	_MBEDTLS_ERR_CIPHER_AUTH_FAILED,4,2 ## @MBEDTLS_ERR_CIPHER_AUTH_FAILED
	.comm	_MBEDTLS_ERR_SSL_INVALID_MAC,4,2 ## @MBEDTLS_ERR_SSL_INVALID_MAC
	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ## @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_ticket_parse       ; -- Begin function mbedtls_ssl_ticket_parse
	.p2align	2
_mbedtls_ssl_ticket_parse:              ; @mbedtls_ssl_ticket_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x23, x3
	cmp	x3, #33
	b.hi	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x20, x2
	mov	x19, x1
	mov	x0, x22
	bl	_ssl_ticket_update_keys
	cbnz	w0, LBB0_5
; %bb.7:
	ldrh	w8, [x20, #16]
	rev16	w21, w8
	add	x8, x21, #34
	cmp	x8, x23
	b.ne	LBB0_3
; %bb.8:
	mov	x0, x22
	mov	x1, x20
	bl	_ssl_ticket_select_key
	cbz	x0, LBB0_11
; %bb.9:
	add	x1, x20, #4
	add	x22, x20, #18
	add	x8, x22, x21
	mov	w9, #16
	str	w9, [sp, #16]
	add	x9, sp, #24
	stp	x9, x8, [sp]
	mov	w2, #12
	mov	x3, x20
	mov	w4, #18
	mov	x5, x22
	mov	x6, x21
	mov	x7, x22
	bl	_mbedtls_cipher_auth_decrypt
	cbz	w0, LBB0_12
; %bb.10:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_CIPHER_AUTH_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_AUTH_FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MBEDTLS_ERR_SSL_INVALID_MAC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_ERR_SSL_INVALID_MAC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w0, w9, w0, eq
	b	LBB0_5
LBB0_11:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	ldr	x8, [sp, #24]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ssl_load_session
	b	LBB0_5
LBB0_14:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_SSL_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED,4,2 ; @MBEDTLS_ERR_SSL_SESSION_TICKET_EXPIRED
	.comm	_MBEDTLS_ERR_CIPHER_AUTH_FAILED,4,2 ; @MBEDTLS_ERR_CIPHER_AUTH_FAILED
	.comm	_MBEDTLS_ERR_SSL_INVALID_MAC,4,2 ; @MBEDTLS_ERR_SSL_INVALID_MAC
	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ; @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols
