	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PROGRESS_SetPos
_PROGRESS_SetPos:                       ## @PROGRESS_SetPos
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_PBS_MARQUEE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PROGRESS_UpdateMarquee
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %r14d
	cmpl	%r15d, %r14d
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	callq	_PROGRESS_CoercePos
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_TRACE
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_PROGRESS_Invalidate
	movl	4(%rbx), %edi
	callq	_UpdateWindow
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_PBS_MARQUEE,4,2                ## @PBS_MARQUEE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PBM_SETPOS: current pos changed from %d to %d\n"

	.no_dead_strip	_PROGRESS_SetPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PROGRESS_SetPos
_PROGRESS_SetPos:                       ; @PROGRESS_SetPos
	.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
	mov	x20, x1
	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
Lloh3:
	adrp	x8, _PBS_MARQUEE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PBS_MARQUEE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PROGRESS_UpdateMarquee
	mov	w20, #1
	b	LBB0_4
LBB0_2:
	ldr	w21, [x19]
	cmp	w21, w20
	b.eq	LBB0_4
; %bb.3:
	str	w20, [x19]
	mov	x0, x19
	bl	_PROGRESS_CoercePos
	ldr	w2, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_PROGRESS_Invalidate
	ldr	w0, [x19, #4]
	bl	_UpdateWindow
	mov	x20, x21
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_PBS_MARQUEE,4,2                ; @PBS_MARQUEE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PBM_SETPOS: current pos changed from %d to %d\n"

	.no_dead_strip	_PROGRESS_SetPos
.subsections_via_symbols
