	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATUSBAR_SetParts
_STATUSBAR_SetParts:                    ## @STATUSBAR_SetParts
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%r15, %r15
	je	LBB0_42
## %bb.1:
	movq	(%r14), %r12
	movq	%r15, (%r14)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	subq	%r15, %r12
	jbe	LBB0_6
## %bb.2:
	leaq	(%r15,%r15,2), %rax
	leaq	16(,%rax,8), %rbx
	movq	_SBT_OWNERDRAW@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	decq	%r12
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%r15), %ecx
	testl	%ecx, -16(%rax,%rbx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%rbx), %rdi
	callq	_Free
	jmp	LBB0_5
LBB0_6:
	jae	LBB0_17
## %bb.7:
	shll	$3, %r15d
	leal	(%r15,%r15,2), %edi
	callq	_Alloc
	testq	%rax, %rax
	je	LBB0_42
## %bb.8:
	movq	%rax, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.9:
	cmpq	$1, %rbx
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rcx
	andq	$-2, %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movq	16(%rsi,%rdx), %rdi
	movq	%rdi, 16(%r15,%rdx)
	movups	(%rsi,%rdx), %xmm0
	movups	%xmm0, (%r15,%rdx)
	movq	24(%r14), %rsi
	movq	40(%rsi,%rdx), %rdi
	movq	%rdi, 40(%r15,%rdx)
	movups	24(%rsi,%rdx), %xmm0
	movups	%xmm0, 24(%r15,%rdx)
	addq	$2, %rax
	addq	$48, %rdx
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_13:
	testb	$1, %bl
	je	LBB0_15
## %bb.14:
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	24(%r14), %rcx
	movq	16(%rcx,%rax), %rdx
	movq	%rdx, 16(%r15,%rax)
	movups	(%rcx,%rax), %xmm0
	movups	%xmm0, (%r15,%rax)
LBB0_15:
	movq	24(%r14), %rdi
	callq	_Free
	movq	%r15, 24(%r14)
LBB0_16:
	movq	(%r14), %r15
LBB0_17:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%r15, %rsi
	jne	LBB0_21
## %bb.18:
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.24:
	movq	24(%r14), %rcx
	addq	$8, %rcx
	xorl	%eax, %eax
	movq	_TRUE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	cmpq	(%r13,%rax,8), %rdx
	jne	LBB0_20
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rax
	addq	$24, %rcx
	cmpq	%rax, %rsi
	jne	LBB0_25
	jmp	LBB0_42
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	cmpq	%rsi, %rax
	je	LBB0_41
LBB0_21:
	testq	%r15, %r15
	je	LBB0_32
## %bb.22:
	movq	24(%r14), %rcx
	leaq	-1(%r15), %rdx
	movl	%r15d, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_27
## %bb.23:
	xorl	%edx, %edx
	jmp	LBB0_29
LBB0_27:
	andq	$-4, %r15
	leaq	80(%rcx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rdx,8), %rdi
	movq	%rdi, -72(%rsi)
	movq	8(%r13,%rdx,8), %rdi
	movq	%rdi, -48(%rsi)
	movq	16(%r13,%rdx,8), %rdi
	movq	%rdi, -24(%rsi)
	movq	24(%r13,%rdx,8), %rdi
	movq	%rdi, (%rsi)
	addq	$4, %rdx
	addq	$96, %rsi
	cmpq	%rdx, %r15
	jne	LBB0_28
LBB0_29:
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:
	leaq	(%rdx,%rdx,2), %rsi
	leaq	(%rcx,%rsi,8), %rcx
	addq	$8, %rcx
	leaq	(,%rdx,8), %rdx
	addq	%r13, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movq	%rdi, (%rcx)
	incq	%rsi
	addq	$24, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_31
LBB0_32:
	cmpq	$0, 16(%r14)
	je	LBB0_40
## %bb.33:
	movl	$0, -52(%rbp)
	leaq	-88(%rbp), %rdi
	movl	$32, %esi
	callq	_ZeroMemory
	movl	$32, -88(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -64(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	16(%r14), %rdi
	movq	_TTM_GETTOOLCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%rax, %rbx
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jae	LBB0_36
## %bb.34:
	leaq	-88(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	movq	_TTM_ADDTOOLW@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, -80(%rbp)
	movq	16(%r14), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_SendMessageW
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_35
	jmp	LBB0_40
LBB0_36:
	jbe	LBB0_40
## %bb.37:
	decq	%rbx
	cmpq	%rax, %rbx
	jb	LBB0_40
## %bb.38:
	leaq	-88(%rbp), %r15
	leaq	L_.str.2(%rip), %r12
	movq	_TTM_DELTOOLW@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, -80(%rbp)
	movq	16(%r14), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_SendMessageW
	decq	%rbx
	cmpq	(%r14), %rbx
	jae	LBB0_39
LBB0_40:
	movq	%r14, %rdi
	callq	_STATUSBAR_SetPartBounds
	movl	8(%r14), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_41:
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_42:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d,%p)\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SBT_OWNERDRAW,4,2              ## @SBT_OWNERDRAW
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_TTM_GETTOOLCOUNT,4,2           ## @TTM_GETTOOLCOUNT
L_.str.1:                               ## @.str.1
	.asciz	"add tool %d\n"

	.comm	_TTM_ADDTOOLW,4,2               ## @TTM_ADDTOOLW
L_.str.2:                               ## @.str.2
	.asciz	"delete tool %d\n"

	.comm	_TTM_DELTOOLW,4,2               ## @TTM_DELTOOLW
	.no_dead_strip	_STATUSBAR_SetParts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATUSBAR_SetParts
_STATUSBAR_SetParts:                    ; @STATUSBAR_SetParts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	x2, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cbz	x21, LBB0_33
; %bb.1:
	ldr	x23, [x19]
	str	x21, [x19]
	subs	x24, x23, x21
	b.ls	LBB0_6
; %bb.2:
	add	x8, x21, x21, lsl #1
	lsl	x21, x8, #3
Lloh4:
	adrp	x25, _SBT_OWNERDRAW@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SBT_OWNERDRAW@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #24
	subs	x24, x24, #1
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w9, [x8, x21]
	ldr	w10, [x25]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_Free
	b	LBB0_3
LBB0_6:
	b.hs	LBB0_13
; %bb.7:
	add	w8, w21, w21, lsl #1
	lsl	w0, w8, #3
	bl	_Alloc
	cbz	x0, LBB0_34
; %bb.8:
	mov	x21, x0
	cbz	x23, LBB0_11
; %bb.9:
	mov	x8, #0
	mov	x9, x23
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #24]
	add	x11, x21, x8
	add	x10, x10, x8
	ldr	q0, [x10]
	ldr	x10, [x10, #16]
	str	x10, [x11, #16]
	str	q0, [x11]
	add	x8, x8, #24
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	x0, [x19, #24]
	bl	_Free
	str	x21, [x19, #24]
LBB0_12:
	ldr	x21, [x19]
LBB0_13:
	cmp	x23, x21
	b.ne	LBB0_20
; %bb.14:
	mov	x8, #0
	cbz	x23, LBB0_19
; %bb.15:
	ldr	x9, [x19, #24]
	add	x9, x9, #8
Lloh6:
	adrp	x10, _TRUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x12, [x20, x8, lsl #3]
	cmp	x11, x12
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, #1
	add	x9, x9, #24
	cmp	x23, x8
	b.ne	LBB0_16
; %bb.18:
	mov	x22, x10
	b	LBB0_33
LBB0_19:
	cmp	x8, x23
	b.eq	LBB0_32
LBB0_20:
	cbz	x21, LBB0_23
; %bb.21:
	ldr	x8, [x19, #24]
	add	x8, x8, #8
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20], #8
	str	x9, [x8], #24
	subs	x21, x21, #1
	b.ne	LBB0_22
LBB0_23:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_31
; %bb.24:
	str	wzr, [sp, #12]
	mov	w20, #32
	add	x0, sp, #16
	mov	w1, #32
	bl	_ZeroMemory
	str	w20, [sp, #16]
	ldr	w8, [x19, #8]
	str	w8, [sp, #40]
	add	x8, sp, #12
	str	x8, [sp, #32]
	ldr	x0, [x19, #16]
Lloh8:
	adrp	x8, _TTM_GETTOOLCOUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TTM_GETTOOLCOUNT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x20, x0
	ldr	x8, [x19]
	cmp	x0, x8
	b.hs	LBB0_27
; %bb.25:
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh13:
	adrp	x23, _TTM_ADDTOOLW@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TTM_ADDTOOLW@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_TRACE
	str	x20, [sp, #24]
	ldr	x0, [x19, #16]
	ldr	w1, [x23]
	add	x3, sp, #16
	mov	w2, #0
	bl	_SendMessageW
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_26
	b	LBB0_31
LBB0_27:
	b.ls	LBB0_31
; %bb.28:
	sub	x20, x20, #1
	cmp	x20, x8
	b.lo	LBB0_31
; %bb.29:
Lloh15:
	adrp	x21, l_.str.2@PAGE
Lloh16:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh17:
	adrp	x23, _TTM_DELTOOLW@GOTPAGE
Lloh18:
	ldr	x23, [x23, _TTM_DELTOOLW@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_TRACE
	str	x20, [sp, #24]
	ldr	x0, [x19, #16]
	ldr	w1, [x23]
	add	x3, sp, #16
	mov	w2, #0
	bl	_SendMessageW
	sub	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.hs	LBB0_30
LBB0_31:
	mov	x0, x19
	bl	_STATUSBAR_SetPartBounds
	ldr	w0, [x19, #8]
	ldr	w2, [x22]
	mov	x1, #0
	bl	_InvalidateRect
LBB0_32:
Lloh19:
	adrp	x22, _TRUE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_34:
Lloh21:
	adrp	x22, _FALSE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	b	LBB0_33
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d,%p)\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SBT_OWNERDRAW,4,2              ; @SBT_OWNERDRAW
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_TTM_GETTOOLCOUNT,4,2           ; @TTM_GETTOOLCOUNT
l_.str.1:                               ; @.str.1
	.asciz	"add tool %d\n"

	.comm	_TTM_ADDTOOLW,4,2               ; @TTM_ADDTOOLW
l_.str.2:                               ; @.str.2
	.asciz	"delete tool %d\n"

	.comm	_TTM_DELTOOLW,4,2               ; @TTM_DELTOOLW
	.no_dead_strip	_STATUSBAR_SetParts
.subsections_via_symbols
