	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_cache_set          ## -- Begin function mbedtls_ssl_cache_set
	.p2align	4, 0x90
_mbedtls_ssl_cache_set:                 ## @mbedtls_ssl_cache_set
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movl	8(%r12), %edi
	movl	16(%rax), %edx
	movl	20(%rax), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	40(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	cmpl	4(%r14), %ebx
	jge	LBB0_7
LBB0_9:
	movl	$1, %r15d
	movl	$1, %edi
	movl	$48, %esi
	callq	_mbedtls_calloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %rdi
	testq	%r13, %r13
	jne	LBB0_13
## %bb.11:
	movq	%rdi, 16(%r14)
	jmp	LBB0_14
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_9
LBB0_7:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.12:
	movq	40(%rdi), %rax
	movq	%rax, 16(%r14)
	movq	$0, 40(%rdi)
LBB0_13:
	movq	%rdi, 40(%r13)
	jmp	LBB0_14
LBB0_4:
	movq	%r13, %rdi
LBB0_14:
	addq	$8, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_cache_set          ; -- Begin function mbedtls_ssl_cache_set
	.p2align	2
_mbedtls_ssl_cache_set:                 ; @mbedtls_ssl_cache_set
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	w0, [x19, #8]
	ldp	w2, w1, [x8, #16]
	bl	_memcmp
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
	mov	w21, #0
LBB0_5:
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.ge	LBB0_9
; %bb.6:
	mov	w21, #1
	mov	w0, #1
	mov	w1, #48
	bl	_mbedtls_calloc
	cbz	x0, LBB0_15
; %bb.7:
	cbz	x22, LBB0_12
; %bb.8:
	str	x0, [x22, #40]
	b	LBB0_13
LBB0_9:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x9, [x8, #40]
	str	x9, [x20, #16]
	str	xzr, [x8, #40]
	str	x8, [x22, #40]
	mov	x22, x8
	b	LBB0_14
LBB0_11:
	mov	w21, #1
	b	LBB0_15
LBB0_12:
	str	x0, [x20, #16]
LBB0_13:
	mov	x22, x0
LBB0_14:
	add	x0, x22, #8
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	mov	w21, #0
LBB0_15:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
