	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_person                   ## -- Begin function enter_person
	.p2align	4, 0x90
_enter_person:                          ## @enter_person
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_db@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DB_BTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_dbopen
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_3:
	movq	(%r14), %rdi
	movq	%rdi, -56(%rbp)
	callq	_strlen
	movl	%eax, -64(%rbp)
	movq	(%r15), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	cmpl	$1, %eax
	je	LBB0_7
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdi
	movl	$8, %edx
	callq	_memmove
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_7:
	movq	_entries@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_palloc
	movq	%rax, %rbx
	movq	%rax, -32(%rbp)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_userinfo
	movq	$0, (%rbx)
	movl	$8, -48(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	(%r15), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	*8(%rdi)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	movq	-32(%rbp), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db,8,3                         ## @db
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_DB_BTREE,4,2                   ## @DB_BTREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"db get"

	.comm	_entries,4,2                    ## @entries
L_.str.1:                               ## @.str.1
	.asciz	"db put"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enter_person                   ; -- Begin function enter_person
	.p2align	2
_enter_person:                          ; @enter_person
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x21, _db@GOTPAGE
Lloh1:
	ldr	x21, [x21, _db@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DB_BTREE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DB_BTREE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	x4, #0
	bl	_dbopen
	str	x0, [x21]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_3:
	ldr	x0, [x19]
	str	x0, [sp, #24]
	bl	_strlen
	str	w0, [sp, #16]
	ldr	x0, [x21]
	ldr	x8, [x0]
	add	x1, sp, #16
	add	x2, sp, #32
	mov	w3, #0
	blr	x8
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x1, [sp, #40]
	add	x0, sp, #8
	mov	w2, #8
	bl	_memmove
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
Lloh10:
	adrp	x8, _entries@GOTPAGE
Lloh11:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_palloc
	mov	x20, x0
	str	x0, [sp, #8]
	mov	x1, x19
	bl	_userinfo
	str	xzr, [x20]
	mov	w8, #8
	str	w8, [sp, #32]
	add	x8, sp, #8
	str	x8, [sp, #40]
	ldr	x0, [x21]
	ldr	x8, [x0, #8]
	add	x1, sp, #16
	add	x2, sp, #32
	mov	w3, #0
	blr	x8
	cbz	w0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_db,8,3                         ; @db
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_DB_BTREE,4,2                   ; @DB_BTREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"db get"

	.comm	_entries,4,2                    ; @entries
l_.str.1:                               ; @.str.1
	.asciz	"db put"

.subsections_via_symbols
