	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_op                        ## -- Begin function read_op
	.p2align	4, 0x90
_read_op:                               ## @read_op
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_s@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_gets
	movq	(%rbx), %rax
LBB0_2:
	movq	_s@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rbx)
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movzbl	-1(%rcx,%rax), %edx
	cmpb	$9, %dl
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$32, %dl
	je	LBB0_14
## %bb.5:
	testb	%dl, %dl
	jne	LBB0_7
## %bb.6:
	movq	$0, (%rbx)
	movb	$10, %al
	jmp	LBB0_13
LBB0_7:
	movsbl	%dl, %edi
	callq	_isdigit
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movsbl	(%rcx,%rdx), %eax
	addl	$-48, %eax
	movq	_n@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%r15)
	leaq	1(%rdx), %rax
	movq	%rax, (%rbx)
	movsbl	1(%rcx,%rdx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %eax
	leal	(%rax,%rax,4), %eax
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	movsbl	(%rcx,%rdx), %esi
	leal	(%rsi,%rax,2), %eax
	addl	$-48, %eax
	jmp	LBB0_11
LBB0_12:
	movq	_NUMBER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	jmp	LBB0_13
LBB0_8:
	leaq	1(%rdx), %rax
	movq	%rax, (%rbx)
	movb	(%rcx,%rdx), %al
LBB0_13:
	movsbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pos,8,3                        ## @pos
	.comm	_s,8,3                          ## @s
	.comm	_n,4,2                          ## @n
	.comm	_NUMBER,1,0                     ## @NUMBER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_op                        ; -- Begin function read_op
	.p2align	2
_read_op:                               ; @read_op
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _pos@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pos@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _s@GOTPAGE
Lloh3:
	ldr	x20, [x20, _s@GOTPAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_gets
	ldr	x8, [x19]
LBB0_2:
	ldr	x9, [x20]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x8]
	cmp	w10, #9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #32
	b.eq	LBB0_3
; %bb.6:
	cbnz	w10, LBB0_8
; %bb.7:
	str	xzr, [x19]
	mov	w8, #10
	b	LBB0_14
LBB0_8:
	sxtb	w0, w10
	bl	_isdigit
	ldr	x8, [x20]
	ldr	x9, [x19]
	cbz	x0, LBB0_13
; %bb.9:
	ldrsb	w10, [x8, x9]
Lloh4:
	adrp	x21, _n@GOTPAGE
Lloh5:
	ldr	x21, [x21, _n@GOTPAGEOFF]
	sub	w10, w10, #48
	str	w10, [x21]
	add	x9, x9, #1
	str	x9, [x19]
	ldrsb	w0, [x8, x9]
	bl	_isdigit
	cbz	x0, LBB0_12
; %bb.10:
	mov	w22, #10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	x9, [x20]
	ldr	x10, [x19]
	ldrsb	w11, [x9, x10]
	madd	w8, w8, w22, w11
	sub	w8, w8, #48
	str	w8, [x21]
	add	x8, x10, #1
	str	x8, [x19]
	ldrsb	w0, [x9, x8]
	bl	_isdigit
	cbnz	x0, LBB0_11
LBB0_12:
Lloh6:
	adrp	x8, _NUMBER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUMBER@GOTPAGEOFF]
	ldrb	w8, [x8]
	b	LBB0_14
LBB0_13:
	add	x10, x9, #1
	str	x10, [x19]
	ldrb	w8, [x8, x9]
LBB0_14:
	sxtb	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pos,8,3                        ; @pos
	.comm	_s,8,3                          ; @s
	.comm	_n,4,2                          ; @n
	.comm	_NUMBER,1,0                     ; @NUMBER
.subsections_via_symbols
