	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_it
_lock_it:                               ## @lock_it
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LOCKFILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_rump_sys_stat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, -16(%rbp)
LBB0_2:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%rbx), %edi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	callq	_rump_sys_close
	movq	-16(%rbp), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCKFILE,4,2                   ## @LOCKFILE
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.no_dead_strip	_lock_it
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_it
_lock_it:                               ; @lock_it
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _LOCKFILE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LOCKFILE@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_rump_sys_stat
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [sp, #8]
LBB0_2:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #438
	bl	_rump_sys_open
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_rump_sys_close
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCKFILE,4,2                   ; @LOCKFILE
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.no_dead_strip	_lock_it
.subsections_via_symbols
