	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dotlockLock
_dotlockLock:                           ## @dotlockLock
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %eax
	movq	_NO_LOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movl	%r15d, (%rbx)
	xorl	%esi, %esi
	callq	_utimes
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_osMkdir
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	movl	%eax, %r14d
	movl	%r15d, (%rbx)
	jmp	LBB0_8
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_SQLITE_IOERR_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_sqliteErrorFromPosixError
	movl	%eax, %r14d
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_storeLastErrno
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_NO_LOCK,4,2                    ## @NO_LOCK
	.comm	_errno,4,2                      ## @errno
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_SQLITE_BUSY,4,2                ## @SQLITE_BUSY
	.comm	_SQLITE_IOERR_LOCK,4,2          ## @SQLITE_IOERR_LOCK
	.no_dead_strip	_dotlockLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dotlockLock
_dotlockLock:                           ; @dotlockLock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _NO_LOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	str	w21, [x19]
	mov	x1, #0
	bl	_utimes
Lloh3:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_2:
	mov	w1, #511
	bl	_osMkdir
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x20, x0
	str	w21, [x19]
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _EEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _SQLITE_BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _SQLITE_IOERR_LOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SQLITE_IOERR_LOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sqliteErrorFromPosixError
	mov	x20, x0
Lloh18:
	adrp	x8, _SQLITE_BUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SQLITE_BUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_storeLastErrno
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_NO_LOCK,4,2                    ; @NO_LOCK
	.comm	_errno,4,2                      ; @errno
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_SQLITE_BUSY,4,2                ; @SQLITE_BUSY
	.comm	_SQLITE_IOERR_LOCK,4,2          ; @SQLITE_IOERR_LOCK
	.no_dead_strip	_dotlockLock
.subsections_via_symbols
