	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_int                      ## -- Begin function parse_int
	.p2align	4, 0x90
_parse_int:                             ## @parse_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_buff@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_parse_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpb	$44, (%rdi,%rax)
	jne	LBB0_2
## %bb.1:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_2:
	addq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_sscanf
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movslq	-20(%rbp), %rax
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	movzbl	(%rcx,%rax), %eax
	cmpq	$44, %rax
	ja	LBB0_4
## %bb.3:
	movl	$1, %edi
	movabsq	$17592186045441, %rcx           ## imm = 0x100000000401
	btq	%rax, %rcx
	jb	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	cmpb	$13, %al
	sete	%dil
LBB0_5:
	callq	_assert
	movl	-24(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buff,8,3                       ## @buff
	.comm	_parse_pos,8,3                  ## @parse_pos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%u\"%n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_int                      ; -- Begin function parse_int
	.p2align	2
_parse_int:                             ; @parse_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _buff@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buff@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _parse_pos@GOTPAGE
Lloh3:
	ldr	x20, [x20, _parse_pos@GOTPAGEOFF]
	ldr	x9, [x20]
	ldrb	w10, [x8, x9]
	cmp	w10, #44
	b.ne	LBB0_2
; %bb.1:
	add	x9, x9, #1
	str	x9, [x20]
LBB0_2:
	add	x0, x8, x9
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sscanf
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	ldrsw	x8, [sp, #8]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	ldr	x9, [x19]
	ldrb	w8, [x9, x8]
	cmp	w8, #44
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #1025
	movk	x10, #4096, lsl #32
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	cmp	w8, #13
	cset	w0, eq
LBB0_5:
	bl	_assert
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_buff,8,3                       ; @buff
	.comm	_parse_pos,8,3                  ; @parse_pos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%u\"%n"

.subsections_via_symbols
