	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_init                       ## -- Begin function log_init
	.p2align	4, 0x90
_log_init:                              ## @log_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsi)
	movl	$1, 16(%rsi)
	movq	$0, 24(%rsi)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rsi)
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rdi, %r14
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_DB_RECNO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	callq	_dbopen
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_msgq
	movq	_F_NOLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	movl	$1, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_DB_RECNO,4,2                   ## @DB_RECNO
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"009|Log file"

	.comm	_F_NOLOG,4,2                    ## @F_NOLOG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_init                       ; -- Begin function log_init
	.p2align	2
_log_init:                              ; @log_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [x1, #32]
	mov	w8, #1
	str	w8, [x1, #16]
	str	xzr, [x1, #24]
	movi.2s	v0, #1
	str	d0, [x1]
Lloh0:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh9:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh11:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh15:
	adrp	x8, _DB_RECNO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DB_RECNO@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, #0
	bl	_dbopen
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msgq
Lloh23:
	adrp	x8, _F_NOLOG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_NOLOG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_DB_RECNO,4,2                   ; @DB_RECNO
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"009|Log file"

	.comm	_F_NOLOG,4,2                    ; @F_NOLOG
.subsections_via_symbols
