	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check
_check:                                 ## @check
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movl	$-239017, %eax                  ## imm = 0xFFFC5A57
	cmpl	%esi, %r12d
	jl	LBB0_15
## %bb.3:
	movl	%edx, %r15d
	cmpl	%edx, %r12d
	jg	LBB0_15
## %bb.4:
	movl	4(%rbx), %r13d
	cmpl	%esi, %r13d
	jl	LBB0_15
## %bb.5:
	cmpl	%r15d, %r13d
	jg	LBB0_15
## %bb.6:
	testb	$1, %r12b
	jne	LBB0_7
## %bb.11:
	movq	24(%rbx), %rdi
	leal	-1(%r12), %edx
	callq	_check
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	movl	%r13d, %esi
	orl	$1, %esi
	incl	%esi
	movl	%r15d, %edx
	callq	_check
	cmpl	%eax, %r14d
	movl	$-239017, %eax                  ## imm = 0xFFFC5A57
	cmovnel	%eax, %r14d
	testb	$1, %r13b
	jne	LBB0_13
## %bb.12:
	movq	8(%rbx), %rdi
	leal	2(%r12), %esi
	leal	-1(%r13), %edx
	callq	_check
	cmpl	%eax, %r14d
	movl	$-239017, %eax                  ## imm = 0xFFFC5A57
	cmovnel	%eax, %r14d
	cmpl	%r12d, %r13d
	jl	LBB0_15
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testb	$1, %r13b
	jne	LBB0_8
## %bb.9:
	cmpl	%r12d, %r13d
	jl	LBB0_15
	jmp	LBB0_10
LBB0_13:
	incl	%r12d
	cmpl	%r12d, %r13d
	jne	LBB0_15
LBB0_14:
	incl	%r14d
	movl	%r14d, %eax
	jmp	LBB0_15
LBB0_8:
	cmpl	%r12d, %r13d
	jne	LBB0_15
LBB0_10:
	movl	$1, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check
_check:                                 ; @check
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x20, x0
	mov	w19, #23127
	movk	w19, #65532, lsl #16
	ldr	w23, [x0]
	cmp	w23, w1
	ccmp	w23, w2, #0, ge
	b.gt	LBB0_7
; %bb.2:
	ldr	w24, [x20, #4]
	cmp	w24, w1
	ccmp	w24, w21, #0, ge
	b.gt	LBB0_7
; %bb.3:
	tbnz	w23, #0, LBB0_8
; %bb.4:
	ldr	x0, [x20, #24]
	sub	w2, w23, #1
	bl	_check
	mov	x22, x0
	ldr	x0, [x20, #16]
	orr	w8, w24, #0x1
	add	w1, w8, #1
	mov	x2, x21
	bl	_check
	cmp	w22, w0
	csel	w21, w22, w19, eq
	tbnz	w24, #0, LBB0_10
; %bb.5:
	ldr	x0, [x20, #8]
	add	w1, w23, #2
	sub	w2, w24, #1
	bl	_check
	cmp	w21, w0
	csel	w21, w21, w19, eq
	cmp	w24, w23
	b.lt	LBB0_7
	b	LBB0_11
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	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_8:
	cmp	w24, w23
	tbnz	w24, #0, LBB0_12
; %bb.9:
	b.lt	LBB0_7
	b	LBB0_13
LBB0_10:
	add	w8, w23, #1
	cmp	w24, w8
	b.ne	LBB0_7
LBB0_11:
	add	w19, w21, #1
	b	LBB0_7
LBB0_12:
	b.ne	LBB0_7
LBB0_13:
	mov	w19, #1
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check
.subsections_via_symbols
