	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function advance_opt
_advance_opt:                           ## @advance_opt
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	32(%rdi), %r14d
	leal	1(%r14), %r13d
	movl	%r13d, 32(%rdi)
	xorl	%edi, %edi
	cmpl	(%rbx), %r14d
	setae	%dil
	callq	_assert
	cmpl	4(%rbx), %r14d
	jae	LBB0_9
## %bb.1:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	setne	%cl
	movq	_MAX_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setb	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	16(%rbx), %rax
	leaq	(%r14,%r14,2), %r12
	movl	8(%rbx), %ecx
	cmpl	%ecx, (%rax,%r12,4)
	ja	LBB0_5
## %bb.2:
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_compare_option
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	movl	8(%rbx), %ecx
	movq	16(%rbx), %rax
LBB0_5:
	movl	%ecx, (%rax,%r12,4)
	movq	24(%rbx), %rcx
	movl	(%rcx,%r15,4), %ecx
	movl	%ecx, 8(%rax,%r12,4)
LBB0_6:
	cmpl	4(%rbx), %r13d
	jae	LBB0_10
## %bb.7:
	movq	16(%rbx), %rcx
	xorl	%eax, %eax
	cmpl	$0, 4(%rcx,%r12,4)
	jne	LBB0_12
## %bb.8:
	movl	%r13d, (%rbx)
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_push_opt
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_next_opt
LBB0_11:
	movl	$1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.no_dead_strip	_advance_opt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function advance_opt
_advance_opt:                           ; @advance_opt
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w20, [x0, #32]
	add	w23, w20, #1
	str	w23, [x0, #32]
	ldr	w8, [x0]
	cmp	w20, w8
	cset	w0, hs
	bl	_assert
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.hs	LBB0_9
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #0
Lloh0:
	adrp	x9, _MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ccmp	w8, w9, #2, ne
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19, #16]
	mov	w9, #12
	mul	x9, x20, x9
	ldr	w10, [x8, x9]
	ldr	w9, [x19, #8]
	cmp	w10, w9
	b.hi	LBB0_5
; %bb.2:
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_compare_option
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w9, [x19, #8]
	ldr	x8, [x19, #16]
LBB0_5:
	mov	w10, #12
	madd	x8, x20, x10, x8
	str	w9, [x8]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, x21, lsl #2]
	str	w9, [x8, #8]
LBB0_6:
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.hs	LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	mov	w9, #12
	madd	x8, x20, x9, x8
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_11
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_push_opt
	mov	w0, #1
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_next_opt
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	str	w23, [x19]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.no_dead_strip	_advance_opt
.subsections_via_symbols
