	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_ticket_gen_key
_ssl_ticket_gen_key:                    ## @ssl_ticket_gen_key
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_KEY_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %r13
	movl	%ebx, %eax
	movl	8(%r12), %edi
	leaq	(%rax,%rax,2), %r14
	movq	(%r13,%r14,8), %rsi
	movl	$8, %edx
	callq	*(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%r12), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	*(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	8(,%r14,8), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_mbedtls_cipher_get_key_bitlen
	movq	_MBEDTLS_ENCRYPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_mbedtls_cipher_setkey
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mbedtls_zeroize
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KEY_BYTES,4,2              ## @MAX_KEY_BYTES
	.comm	_MBEDTLS_ENCRYPT,4,2            ## @MBEDTLS_ENCRYPT
	.no_dead_strip	_ssl_ticket_gen_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_ticket_gen_key
_ssl_ticket_gen_key:                    ; @ssl_ticket_gen_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_KEY_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_KEY_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x24, [x0, #16]
	ldr	x8, [x0]
	ldr	w0, [x0, #8]
	mov	w9, #24
	umull	x9, w1, w9
	ldr	x1, [x24, x9]
	mov	w2, #8
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x22, #8]
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w8, w21
	mov	w9, #24
	madd	x8, x8, x9, x24
	add	x21, x8, #8
	mov	x0, x21
	bl	_mbedtls_cipher_get_key_bitlen
	mov	x2, x0
Lloh8:
	adrp	x8, _MBEDTLS_ENCRYPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ENCRYPT@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_mbedtls_cipher_setkey
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_zeroize
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x23
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KEY_BYTES,4,2              ; @MAX_KEY_BYTES
	.comm	_MBEDTLS_ENCRYPT,4,2            ; @MBEDTLS_ENCRYPT
	.no_dead_strip	_ssl_ticket_gen_key
.subsections_via_symbols
