	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_or_open
_lookup_or_open:                        ## @lookup_or_open
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_table_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_lookup
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_metadata_open
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_table_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	movq	_table_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	___destroy_persistent_data_objects
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rbx
	jmp	LBB0_5
LBB0_4:
	movq	_table@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	_table_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_table_lock,4,2                 ## @table_lock
	.comm	_table,4,2                      ## @table
	.no_dead_strip	_lookup_or_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_or_open
_lookup_or_open:                        ; @lookup_or_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _table_lock@GOTPAGE
Lloh1:
	ldr	x25, [x25, _table_lock@GOTPAGEOFF]
	mov	x0, x25
	bl	_mutex_lock
	mov	x0, x20
	bl	_lookup
	mov	x19, x0
	mov	x0, x25
	bl	_mutex_unlock
	cbnz	x19, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_metadata_open
	mov	x19, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x0, _table_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _table_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	_lookup
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x0, _table_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _table_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	___destroy_persistent_data_objects
	mov	x0, x19
	bl	_kfree
	mov	x19, x20
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x1, _table@GOTPAGE
Lloh7:
	ldr	x1, [x1, _table@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
Lloh8:
	adrp	x0, _table_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _table_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_table_lock,4,2                 ; @table_lock
	.comm	_table,4,2                      ; @table
	.no_dead_strip	_lookup_or_open
.subsections_via_symbols
