	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_whole_file                ## -- Begin function lock_whole_file
	.p2align	4, 0x90
_lock_whole_file:                       ## @lock_whole_file
	.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
	movl	%edi, %ebx
	movl	%esi, _lock_whole_file.L(%rip)
	leaq	_lock_whole_file.L(%rip), %rdx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _lock_whole_file.L+24(%rip)
	xorps	%xmm0, %xmm0
	movups	%xmm0, _lock_whole_file.L+8(%rip)
	movq	_F_SETLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fcntl
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jns	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	movl	$-1, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lock_whole_file.L,32,3 ## @lock_whole_file.L
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_F_SETLK,4,2                    ## @F_SETLK
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot lock file %d: %m\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_whole_file                ; -- Begin function lock_whole_file
	.p2align	2
_lock_whole_file:                       ; @lock_whole_file
	.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, x0
Lloh0:
	adrp	x2, _lock_whole_file.L@PAGE
Lloh1:
	add	x2, x2, _lock_whole_file.L@PAGEOFF
	str	w1, [x2]
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x2, #24]
	stp	xzr, xzr, [x2, #8]
Lloh5:
	adrp	x8, _F_SETLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_SETLK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_fcntl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lock_whole_file.L,32,3 ; @lock_whole_file.L
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_F_SETLK,4,2                    ; @F_SETLK
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot lock file %d: %m\n"

.subsections_via_symbols
