	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_file_timeout
_lock_file_timeout:                     ## @lock_file_timeout
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	cmpb	$0, _lock_file_timeout.random_initialized(%rip)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %edi
	callq	_srand
	movb	$1, _lock_file_timeout.random_initialized(%rip)
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_lock_file
	testl	%eax, %eax
	jns	LBB0_8
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movl	$0, %r14d
	cmovgq	%rax, %r14
	movl	$1, %r15d
	movl	$1, %ebx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setg	%cl
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%r14, %r14
	setle	%dl
	movl	$-1, %eax
	movq	_EEXIST@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	andb	%dl, %cl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_INITIAL_BACKOFF_MS@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movslq	%ebx, %r12
	imulq	%r12, %r13
	xorl	%eax, %eax
	callq	_rand
	cltq
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	imull	$500, %ecx, %ecx                ## imm = 0x1F4
	negl	%ecx
	addl	%ecx, %eax
	addl	$750, %eax                      ## imm = 0x2EE
	imulq	%r13, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_sleep_millisec
	subq	%rbx, %r14
	leal	(%r12,%r15,2), %eax
	incl	%eax
	movq	_BACKOFF_MAX_MULTIPLIER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%r12d, %r12d
	cmpl	%ebx, %eax
	setle	%r12b
	cmovll	%eax, %ebx
	addl	%r15d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_lock_file
	movl	%r12d, %r15d
	testl	%eax, %eax
	js	LBB0_5
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock_file                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lock_file_timeout.random_initialized,1,2 ## @lock_file_timeout.random_initialized
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_INITIAL_BACKOFF_MS,4,2         ## @INITIAL_BACKOFF_MS
	.comm	_BACKOFF_MAX_MULTIPLIER,4,2     ## @BACKOFF_MAX_MULTIPLIER
	.no_dead_strip	_lock_file_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_file_timeout
_lock_file_timeout:                     ; @lock_file_timeout
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	cbz	x3, LBB0_9
; %bb.1:
	mov	x21, x3
	adrp	x23, _lock_file_timeout.random_initialized@PAGE
	ldrb	w8, [x23, _lock_file_timeout.random_initialized@PAGEOFF]
	tbnz	w8, #0, LBB0_3
; %bb.2:
	bl	_getpid
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_srand
	mov	w8, #1
	strb	w8, [x23, _lock_file_timeout.random_initialized@PAGEOFF]
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_lock_file
	tbz	w0, #31, LBB0_8
; %bb.4:
	cmp	x21, #0
	csel	x24, x21, xzr, gt
	mov	w25, #1
	mov	x28, #63439
	movk	x28, #58195, lsl #16
	movk	x28, #39845, lsl #32
	movk	x28, #8388, lsl #48
Lloh0:
	adrp	x27, _BACKOFF_MAX_MULTIPLIER@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BACKOFF_MAX_MULTIPLIER@GOTPAGEOFF]
	mov	w26, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, #0
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x8]
	ccmp	x24, #1, #0, gt
	cset	w8, lt
	mov	w0, #-1
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w8, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x8, _INITIAL_BACKOFF_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INITIAL_BACKOFF_MS@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	sxtw	x9, w26
	mul	x23, x8, x9
	bl	_rand
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	mov	w9, #500
	msub	w8, w8, w9, w0
	add	w8, w8, #750
	mul	x8, x8, x23
	smulh	x8, x8, x28
	asr	x9, x8, #7
	add	x23, x9, x8, lsr #63
	mov	x0, x23
	bl	_sleep_millisec
	sub	x24, x24, x23
	add	w8, w26, w25, lsl #1
	add	w9, w8, #1
	ldr	w10, [x27]
	cmp	w9, w10
	csinc	w26, w10, w8, ge
	cinc	w25, w25, le
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_lock_file
	tbnz	w0, #31, LBB0_5
LBB0_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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_lock_file
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lock_file_timeout.random_initialized,1,2 ; @lock_file_timeout.random_initialized
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_INITIAL_BACKOFF_MS,4,2         ; @INITIAL_BACKOFF_MS
	.comm	_BACKOFF_MAX_MULTIPLIER,4,2     ; @BACKOFF_MAX_MULTIPLIER
	.no_dead_strip	_lock_file_timeout
.subsections_via_symbols
