	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rd_factor
_rd_factor:                             ## @rd_factor
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_rd_value
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	callq	_delspc
	movq	%rax, (%rbx)
	movzbl	(%rax), %ecx
	cmpb	$47, %cl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$42, %cl
	jne	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	$0, (%r13)
	movzbl	(%rax), %ecx
	cmpb	$47, %cl
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$42, %cl
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_rd_value
	imull	%eax, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_rd_value
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	jmp	LBB0_3
LBB0_12:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$7, (%rax)
	jl	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_printerr
	movl	$-1, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%5d (0x%04x): Starting to read factor (string=%s).\n"

	.comm	_stack,8,3                      ## @stack
	.comm	_sp,8,3                         ## @sp
	.comm	_addr,4,2                       ## @addr
L_.str.1:                               ## @.str.1
	.asciz	"division by zero\n"

L_.str.2:                               ## @.str.2
	.asciz	"%5d (0x%04x): rd_factor returned %d (%04x).\n"

	.no_dead_strip	_rd_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rd_factor
_rd_factor:                             ; @rd_factor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _verbose@GOTPAGE
Lloh1:
	ldr	x25, [x25, _verbose@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _stack@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stack@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _sp@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sp@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
Lloh11:
	adrp	x8, _addr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_rd_value
	mov	x24, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_delspc
	str	x0, [x23]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #42
	b.ne	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x20]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #42
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #1
	str	x8, [x23]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_rd_value
	mul	w24, w0, w24
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, #1
	str	x8, [x23]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_rd_value
	cbz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sdiv	w24, w24, w0
	b	LBB0_3
LBB0_10:
	ldr	w8, [x25]
	cmp	w8, #7
	b.lt	LBB0_12
; %bb.11:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _stack@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stack@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _sp@GOTPAGE
Lloh23:
	ldr	x9, [x9, _sp@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
Lloh25:
	adrp	x8, _addr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	stp	x24, x24, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_printerr
	mov	w24, #-1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%5d (0x%04x): Starting to read factor (string=%s).\n"

	.comm	_stack,8,3                      ; @stack
	.comm	_sp,8,3                         ; @sp
	.comm	_addr,4,2                       ; @addr
l_.str.1:                               ; @.str.1
	.asciz	"division by zero\n"

l_.str.2:                               ; @.str.2
	.asciz	"%5d (0x%04x): rd_factor returned %d (%04x).\n"

	.no_dead_strip	_rd_factor
.subsections_via_symbols
