	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfi_staa_lock
_cfi_staa_lock:                         ## @cfi_staa_lock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %eax
	decl	%eax
	testl	%esi, %eax
	jne	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	testl	%edx, %eax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	leal	(%rsi,%r13), %eax
	cmpl	4(%rdi), %eax
	jle	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.5:
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movb	8(%r15), %cl
	movl	%esi, %r12d
	sarl	%cl, %r12d
	movl	%r12d, %eax
	shll	%cl, %eax
	subl	%eax, %esi
	movslq	%esi, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	subl	%eax, %r13d
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_do_lock_oneblock
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r14), %rax
	addq	%rax, %rbx
	movzbl	8(%r15), %ecx
	movq	%rbx, %rdx
	shrq	%cl, %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	xorl	%ebx, %ebx
	cmpl	12(%r15), %r12d
	jl	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cfi_staa_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfi_staa_lock
_cfi_staa_lock:                         ; @cfi_staa_lock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	sub	w8, w8, #1
	tst	w8, w1
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	tst	w8, w2
	b.ne	LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #4]
	add	w9, w19, w1
	cmp	w9, w8
	b.le	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	cbz	w19, LBB0_12
; %bb.6:
	ldr	x21, [x20, #8]
	ldr	x23, [x21]
	ldr	w8, [x23, #8]
	asr	w24, w1, w8
	lsl	w8, w24, w8
	sub	w8, w1, w8
	sxtw	x22, w8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	sub	w19, w19, w8
	cbz	w19, LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	add	x1, x8, w24, sxtw #2
	mov	x0, x21
	mov	x2, x22
	bl	_do_lock_oneblock
	cbnz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x20]
	add	x22, x22, x8
	ldr	w9, [x23, #8]
	lsr	x9, x22, x9
	cbz	x9, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w9, [x23, #12]
	cmp	w24, w9
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cfi_staa_lock
.subsections_via_symbols
