	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PROGRESS_UpdateMarquee
_PROGRESS_UpdateMarquee:                ## @PROGRESS_UpdateMarquee
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movl	%eax, %r14d
	movl	4(%r15), %edi
	callq	_GetWindowTheme
	movl	%eax, %r12d
	movq	_PBS_SMOOTH@GOTPCREL(%rip), %rax
	movl	%r14d, %ebx
	andl	(%rax), %ebx
	movl	4(%r15), %edi
	leaq	-36(%rbp), %rsi
	callq	_get_client_rect
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$1, %ebx
	testl	%r12d, %r12d
	je	LBB0_3
LBB0_2:
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_get_led_size
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_get_led_gap
	movl	%eax, %ebx
	addl	%r12d, %ebx
LBB0_3:
	leaq	-36(%rbp), %r12
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_get_bar_size
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	(%r15), %ecx
	incl	%ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	cmovll	%ecx, %edx
	movl	4(%r15), %edi
	movl	%edx, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_InvalidateRect
	movl	4(%r15), %edi
	callq	_UpdateWindow
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_PBS_SMOOTH,4,2                 ## @PBS_SMOOTH
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PROGRESS_UpdateMarquee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PROGRESS_UpdateMarquee
_PROGRESS_UpdateMarquee:                ; @PROGRESS_UpdateMarquee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_GetWindowTheme
	mov	x21, x0
Lloh3:
	adrp	x8, _PBS_SMOOTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PBS_SMOOTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w22, w8, w20
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	bl	_get_client_rect
	cmp	w22, #0
	ccmp	w21, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_get_led_size
	mov	x21, x0
	mov	x0, x19
	bl	_get_led_gap
	add	w21, w0, w21
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_bar_size
	add	w8, w21, w0
	sub	w8, w8, #1
	sdiv	w8, w8, w21
	ldp	w9, w0, [x19]
	add	w10, w9, #1
	cmp	w10, w8
	csinc	w8, wzr, w9, ge
	str	w8, [x19]
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_InvalidateRect
	ldr	w0, [x19, #4]
	bl	_UpdateWindow
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_PBS_SMOOTH,4,2                 ; @PBS_SMOOTH
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PROGRESS_UpdateMarquee
.subsections_via_symbols
