	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ui_spinner
_ui_spinner:                            ## @ui_spinner
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SPIN_LBL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, 48(%r13)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	*32(%r13)
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %rdi
	callq	_time
	leaq	16(%r13), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_pthread_mutex_lock
	movq	(%r13), %rax
	movq	_SPN_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_7:
	movq	48(%r13), %rax
	movq	_conf@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LC_NUMERIC@GOTPCREL(%rip), %r15
	movq	_conf@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	20(%r13), %edi
	movl	28(%r13), %ecx
	movl	44(%r13), %r8d
	movl	40(%r13), %r9d
	subq	$8, %rsp
	movq	%r14, %rsi
	leaq	L_.str.3(%rip), %rdx
	pushq	32(%r13)
	callq	_draw_header
	addq	$16, %rsp
	movl	20(%r13), %r14d
	movq	%r12, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_COLOR_PAIR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_wattron
	movl	28(%r13), %esi
	movl	20(%r13), %edi
	movl	24(%r13), %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r15d
	incl	%r15d
	andl	$3, %ecx
	leaq	_ui_spinner.spin_chars(%rip), %rax
	movsbl	(%rcx,%rax), %ecx
	callq	_mvwaddch
	movl	20(%r13), %r14d
	movq	(%r12), %rax
	movq	%rbx, %r12
	movl	(%rax), %edi
	callq	_COLOR_PAIR
	movl	%r14d, %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_wattroff
	movl	20(%r13), %edi
	callq	_wrefresh
	movl	%r15d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_LC_NUMERIC@GOTPCREL(%rip), %r15
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	_SPIN_UPDATE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usleep
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	(%r13), %rax
	movq	_SPN_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_setlocale
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SPIN_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	56(%r13), %ecx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rcx
	movq	8(%r13), %rax
	movq	(%rax), %r8
	movl	$0, %r9d
	subq	-96(%rbp), %rcx
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r8, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r8, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r9
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r9d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SPIN_FMTM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	56(%r13), %ecx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_setlocale
	cmpq	$0, 48(%r13)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_20
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
_ui_spinner.spin_chars:                 ## @ui_spinner.spin_chars
	.asciz	"/-\\|"

	.comm	_SPIN_LBL,4,2                   ## @SPIN_LBL
	.comm	_SPN_END,8,3                    ## @SPN_END
	.comm	_conf,8,3                       ## @conf
	.comm	_stderr,4,2                     ## @stderr
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_LC_NUMERIC,4,2                 ## @LC_NUMERIC
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_SPIN_FMT,8,3                   ## @SPIN_FMT
	.comm	_SPIN_FMTM,8,3                  ## @SPIN_FMTM
L_.str.2:                               ## @.str.2
	.asciz	"POSIX"

L_.str.3:                               ## @.str.3
	.asciz	" %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s\r"

	.comm	_SPIN_UPDATE_INTERVAL,4,2       ## @SPIN_UPDATE_INTERVAL
	.no_dead_strip	_ui_spinner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ui_spinner
_ui_spinner:                            ; @ui_spinner
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SPIN_LBL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPIN_LBL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	blr	x8
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	sub	x0, x29, #96
	bl	_time
	add	x23, x19, #16
	mov	x0, x23
	bl	_pthread_mutex_lock
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _SPN_END@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPN_END@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x27, _conf@GOTPAGE
Lloh12:
	ldr	x27, [x27, _conf@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_4:
	ldr	x8, [x19, #48]
	ldr	x9, [x27]
	orr	x8, x8, x9
	cbnz	x8, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.7:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w25, #0
Lloh21:
	adrp	x24, _LC_NUMERIC@GOTPAGE
Lloh22:
	ldr	x24, [x24, _LC_NUMERIC@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #20]
	ldr	w3, [x19, #28]
	ldp	w5, w4, [x19, #40]
	ldr	x6, [x19, #32]
	mov	x1, x21
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_draw_header
	ldr	w28, [x19, #20]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_COLOR_PAIR
	mov	x1, x0
	mov	x0, x28
	bl	_wattron
	ldp	w2, w1, [x19, #24]
	ldr	w0, [x19, #20]
	add	w26, w25, #1
	and	x8, x25, #0x3
Lloh25:
	adrp	x9, _ui_spinner.spin_chars@PAGE
Lloh26:
	add	x9, x9, _ui_spinner.spin_chars@PAGEOFF
	ldrsb	w3, [x9, x8]
	bl	_mvwaddch
	ldr	w28, [x19, #20]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_COLOR_PAIR
	mov	x1, x0
	mov	x0, x28
	bl	_wattroff
	ldr	w0, [x19, #20]
	bl	_wrefresh
	mov	x25, x26
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_pthread_mutex_unlock
Lloh27:
	adrp	x8, _SPIN_UPDATE_INTERVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SPIN_UPDATE_INTERVAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_usleep
	mov	x0, x23
	bl	_pthread_mutex_lock
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _SPN_END@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPN_END@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_setlocale
	ldr	x8, [x27]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh35:
	adrp	x8, _SPIN_FMT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SPIN_FMT@GOTPAGEOFF]
Lloh37:
	ldr	x2, [x8]
	ldr	w3, [x19, #56]
	mov	x0, x21
	mov	x1, x20
	bl	_snprintf
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, #0
	bl	_time
	ldur	x8, [x29, #-96]
	sub	x8, x0, x8
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	sdiv	x10, x9, x8
	cmp	x8, #1
	csel	x8, xzr, x10, lt
Lloh38:
	adrp	x10, _SPIN_FMTM@GOTPAGE
Lloh39:
	ldr	x10, [x10, _SPIN_FMTM@GOTPAGEOFF]
Lloh40:
	ldr	x2, [x10]
	ldr	w3, [x19, #56]
	stp	x9, x8, [sp, #-16]!
	mov	x0, x21
	mov	x1, x20
	bl	_snprintf
	add	sp, sp, #16
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x24]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_setlocale
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27]
	cbnz	x8, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	str	x21, [sp, #-16]!
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_10
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_ui_spinner.spin_chars:                 ; @ui_spinner.spin_chars
	.asciz	"/-\\|"

	.comm	_SPIN_LBL,4,2                   ; @SPIN_LBL
	.comm	_SPN_END,8,3                    ; @SPN_END
	.comm	_conf,8,3                       ; @conf
	.comm	_stderr,4,2                     ; @stderr
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_LC_NUMERIC,4,2                 ; @LC_NUMERIC
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_SPIN_FMT,8,3                   ; @SPIN_FMT
	.comm	_SPIN_FMTM,8,3                  ; @SPIN_FMTM
l_.str.2:                               ; @.str.2
	.asciz	"POSIX"

l_.str.3:                               ; @.str.3
	.asciz	" %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s\r"

	.comm	_SPIN_UPDATE_INTERVAL,4,2       ; @SPIN_UPDATE_INTERVAL
	.no_dead_strip	_ui_spinner
.subsections_via_symbols
