	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function progress_handler
_progress_handler:                      ## @progress_handler
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	incq	%rdx
	movq	%rdx, (%rdi)
	cmpq	%rax, %rdx
	jl	LBB0_6
## %bb.1:
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_raw_printf
	movl	16(%rbx), %eax
	movq	_SHELL_PROGRESS_RESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
LBB0_4:
	movq	_SHELL_PROGRESS_ONCE@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	$0, 8(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_SHELL_PROGRESS_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_raw_printf
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Progress limit reached (%u)\n"

	.comm	_SHELL_PROGRESS_RESET,4,2       ## @SHELL_PROGRESS_RESET
	.comm	_SHELL_PROGRESS_ONCE,4,2        ## @SHELL_PROGRESS_ONCE
	.comm	_SHELL_PROGRESS_QUIET,4,2       ## @SHELL_PROGRESS_QUIET
L_.str.1:                               ## @.str.1
	.asciz	"Progress %u\n"

	.no_dead_strip	_progress_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function progress_handler
_progress_handler:                      ; @progress_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x9, [x0]
	add	x2, x8, #1
	str	x2, [x0]
	cmp	x2, x9
	ccmp	x9, #1, #8, ge
	b.ge	LBB0_4
; %bb.1:
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _SHELL_PROGRESS_QUIET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHELL_PROGRESS_QUIET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_raw_printf
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_raw_printf
	ldr	w8, [x19, #16]
Lloh7:
	adrp	x9, _SHELL_PROGRESS_RESET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SHELL_PROGRESS_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	str	xzr, [x19]
LBB0_6:
Lloh10:
	adrp	x9, _SHELL_PROGRESS_ONCE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SHELL_PROGRESS_ONCE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Progress limit reached (%u)\n"

	.comm	_SHELL_PROGRESS_RESET,4,2       ; @SHELL_PROGRESS_RESET
	.comm	_SHELL_PROGRESS_ONCE,4,2        ; @SHELL_PROGRESS_ONCE
	.comm	_SHELL_PROGRESS_QUIET,4,2       ; @SHELL_PROGRESS_QUIET
l_.str.1:                               ; @.str.1
	.asciz	"Progress %u\n"

	.no_dead_strip	_progress_handler
.subsections_via_symbols
