	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CBResetPos
_CBResetPos:                            ## @CBResetPos
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_CB_GETTYPE
	movq	%rax, %r15
	movq	_CBS_SIMPLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_CBF_EDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %rdx
	movq	24(%rbx), %r8
	subq	%rdx, %r8
	movq	(%rbx), %rcx
	movq	8(%rbx), %r9
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rsi
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rsi), %eax
	subq	%rcx, %r9
	movl	12(%r12), %edi
	movl	$0, %esi
	cmpq	%r14, %r15
	je	LBB0_3
## %bb.2:
	movq	_SWP_NOREDRAW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_3:
	orl	%esi, %eax
	movl	%eax, (%rsp)
	xorl	%esi, %esi
	callq	_SetWindowPos
LBB0_4:
	movq	16(%r13), %rdx
	movq	24(%r13), %r8
	subq	%rdx, %r8
	movq	(%r13), %rcx
	movq	8(%r13), %r9
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rsi
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rsi), %eax
	subq	%rcx, %r9
	movl	8(%r12), %edi
	movl	$0, %esi
	cmpq	%r14, %r15
	je	LBB0_6
## %bb.5:
	movq	_SWP_NOREDRAW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_6:
	orl	%esi, %eax
	movl	%eax, (%rsp)
	xorl	%esi, %esi
	callq	_SetWindowPos
	cmpq	%r14, %r15
	je	LBB0_11
## %bb.7:
	movl	(%r12), %eax
	movq	_CBF_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movl	8(%r12), %edi
	movq	_SW_HIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:
	movq	_CBF_NOREDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_12
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	4(%r12), %edi
	movq	_RDW_INVALIDATE@GOTPCREL(%rip), %rax
	movq	_RDW_ERASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RDW_UPDATENOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RedrawWindow                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CBS_SIMPLE,8,3                 ## @CBS_SIMPLE
	.comm	_CBF_EDIT,4,2                   ## @CBF_EDIT
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.comm	_SWP_NOREDRAW,4,2               ## @SWP_NOREDRAW
	.comm	_CBF_DROPPED,4,2                ## @CBF_DROPPED
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_CBF_NOREDRAW,4,2               ## @CBF_NOREDRAW
	.comm	_RDW_INVALIDATE,4,2             ## @RDW_INVALIDATE
	.comm	_RDW_ERASE,4,2                  ## @RDW_ERASE
	.comm	_RDW_UPDATENOW,4,2              ## @RDW_UPDATENOW
	.no_dead_strip	_CBResetPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CBResetPos
_CBResetPos:                            ; @CBResetPos
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_CB_GETTYPE
	mov	x21, x0
Lloh0:
	adrp	x8, _CBS_SIMPLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CBS_SIMPLE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _CBF_EDIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CBF_EDIT@GOTPAGEOFF]
Lloh5:
	adrp	x26, _SWP_NOACTIVATE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x27, _SWP_NOZORDER@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SWP_NOZORDER@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SWP_NOREDRAW@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SWP_NOREDRAW@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	ldp	x2, x8, [x23, #16]
	sub	x4, x8, x2
	ldp	x3, x8, [x23]
	sub	x5, x8, x3
	ldr	w8, [x27]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x25]
	cmp	x21, x24
	csel	w9, wzr, w9, eq
	orr	w6, w8, w9
	mov	w1, #0
	bl	_SetWindowPos
LBB0_2:
	ldr	w0, [x19, #8]
	ldp	x2, x8, [x22, #16]
	sub	x4, x8, x2
	ldp	x3, x8, [x22]
	sub	x5, x8, x3
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x25]
	cmp	x21, x24
	csel	w9, wzr, w9, eq
	orr	w6, w8, w9
	mov	w1, #0
	bl	_SetWindowPos
	cmp	x21, x24
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _CBF_DROPPED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CBF_DROPPED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _CBF_NOREDRAW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CBF_NOREDRAW@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	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:
	ldr	w0, [x19, #4]
Lloh21:
	adrp	x8, _RDW_INVALIDATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RDW_INVALIDATE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RDW_ERASE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RDW_ERASE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _RDW_UPDATENOW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RDW_UPDATENOW@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x1, #0
	mov	w2, #0
	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
	b	_RedrawWindow
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CBS_SIMPLE,8,3                 ; @CBS_SIMPLE
	.comm	_CBF_EDIT,4,2                   ; @CBF_EDIT
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.comm	_SWP_NOREDRAW,4,2               ; @SWP_NOREDRAW
	.comm	_CBF_DROPPED,4,2                ; @CBF_DROPPED
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_CBF_NOREDRAW,4,2               ; @CBF_NOREDRAW
	.comm	_RDW_INVALIDATE,4,2             ; @RDW_INVALIDATE
	.comm	_RDW_ERASE,4,2                  ; @RDW_ERASE
	.comm	_RDW_UPDATENOW,4,2              ; @RDW_UPDATENOW
	.no_dead_strip	_CBResetPos
.subsections_via_symbols
