	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_mode
_check_mode:                            ## @check_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movslq	%esi, %rbx
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_2
## %bb.1:
	leaq	(,%rbx,4), %rdi
	addq	8(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_6
LBB0_2:
	leaq	(,%rbx,4), %r15
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	addq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_atomic_set
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_mode
_check_mode:                            ; @check_mode
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x8, [x0]
	sxtw	x20, w1
	ldr	x8, [x8, w1, sxtw #3]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	x1, [x8, x20, lsl #3]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_atomic_set
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_mode
.subsections_via_symbols
