	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_cache_obtain               ## -- Begin function key_cache_obtain
	.p2align	4, 0x90
_key_cache_obtain:                      ## @key_cache_obtain
	.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
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_key_cache_search
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	8(%rax), %rax
	cmpq	%r12, (%rax)
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_lock_rw_unlock
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi
	callq	_dname_is_root
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_dname_remove_label
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	jmp	LBB0_1
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_key_entry_copy_toregion
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_lock_rw_unlock
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_cache_obtain               ; -- Begin function key_cache_obtain
	.p2align	2
_key_cache_obtain:                      ; @key_cache_obtain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x0
	stp	x2, x1, [sp]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x3, x21
	mov	w4, #0
	bl	_key_cache_search
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x8, x20
	b.ge	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_lock_rw_unlock
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp, #8]
	bl	_dname_is_root
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #8
	mov	x1, sp
	bl	_dname_remove_label
	ldp	x2, x1, [sp]
	b	LBB0_1
LBB0_6:
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x23
	mov	x1, x19
	bl	_key_entry_copy_toregion
	mov	x19, x0
	mov	x0, x23
	bl	_lock_rw_unlock
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
