	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ypmatch_cache_insert
_ypmatch_cache_insert:                  ## @ypmatch_cache_insert
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_ypmatch_cache_expire
	movq	(%r12), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_YPLIB_MAXCACHE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.4:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.5:
	movq	$-1, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rcx), %rsi
	cmpq	%rdx, %rsi
	cmovlq	%rcx, %rax
	movq	(%rcx), %rdi
	cmovlq	%rsi, %rdx
	movq	%rdi, %rcx
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.7:
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	$0, 40(%rax)
	movq	%r12, %rdi
	callq	_ypmatch_cache_expire
LBB0_9:
	movl	$56, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	callq	_time
	movq	_YPLIB_EXPIRE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 40(%rbx)
	movl	(%r15), %edx
	movl	%edx, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r15), %edi
	movq	32(%rbx), %rsi
	callq	_bcopy
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movq	16(%rbx), %rsi
	callq	_bcopy
	movq	8(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 8(%r12)
	incq	(%r12)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	_free
LBB0_12:
	movq	48(%rbx), %rdi
	callq	_free
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_YPLIB_MAXCACHE,8,3             ## @YPLIB_MAXCACHE
	.comm	_YPLIB_EXPIRE,8,3               ## @YPLIB_EXPIRE
	.no_dead_strip	_ypmatch_cache_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ypmatch_cache_insert
_ypmatch_cache_insert:                  ; @ypmatch_cache_insert
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ypmatch_cache_expire
	ldr	x8, [x19]
LBB0_2:
Lloh0:
	adrp	x9, _YPLIB_MAXCACHE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _YPLIB_MAXCACHE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.3:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_13
; %bb.4:
	mov	x8, #0
	mov	x10, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, #40]
	cmp	x11, x10
	csel	x8, x9, x8, lt
	csel	x10, x11, x10, lt
	ldr	x9, [x9]
	cbnz	x9, LBB0_5
; %bb.6:
	cbz	x8, LBB0_13
; %bb.7:
	str	xzr, [x8, #40]
	mov	x0, x19
	bl	_ypmatch_cache_expire
LBB0_8:
	mov	w0, #56
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x22, x0
	mov	x0, x23
	bl	_strdup
	str	x0, [x22, #48]
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w0, [x21]
	bl	_malloc
	str	x0, [x22, #32]
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x20]
	bl	_malloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, #0
	bl	_time
Lloh3:
	adrp	x8, _YPLIB_EXPIRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YPLIB_EXPIRE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0
	str	x8, [x22, #40]
	ldp	w2, w0, [x21]
	str	w2, [x22, #24]
	ldr	w8, [x20]
	str	w8, [x22, #8]
	ldr	x1, [x22, #32]
	bl	_bcopy
	ldr	x1, [x22, #16]
	ldp	w2, w0, [x20]
	bl	_bcopy
	ldp	x9, x8, [x19]
	str	x8, [x22]
	add	x8, x9, #1
	stp	x8, x22, [x19]
LBB0_13:
	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_14:
	bl	_free
LBB0_15:
	ldr	x0, [x22, #48]
	bl	_free
LBB0_16:
	mov	x0, x22
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_YPLIB_MAXCACHE,8,3             ; @YPLIB_MAXCACHE
	.comm	_YPLIB_EXPIRE,8,3               ; @YPLIB_EXPIRE
	.no_dead_strip	_ypmatch_cache_insert
.subsections_via_symbols
