	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_Cust_MoveButton
_TOOLBAR_Cust_MoveButton:               ## @TOOLBAR_Cust_MoveButton
	.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	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_TRACE
	cmpq	%r13, %r15
	je	LBB0_3
## %bb.1:
	movq	%r15, -80(%rbp)
	movl	(%r14), %esi
	movq	_TBN_QUERYINSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rdi
	callq	_TOOLBAR_SendNotify
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_IDC_TOOLBARBTN_LBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_GetDlgItem
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r12d
	movq	_LB_GETCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_LB_GETITEMDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_LB_DELETESTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_LB_INSERTSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_LB_SETITEMDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_SendMessageW
	movq	_LB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_IDC_MOVEUP_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_GetDlgItem
	testq	%r13, %r13
	movq	_TRUE@GOTPCREL(%rip), %r12
	movq	%r12, %rcx
	cmovleq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	$-2, %eax
	movslq	%eax, %r14
	movq	_IDC_MOVEDN_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	cmpq	%r13, %r14
	cmovleq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_TB_DELETEBUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	4(%rbx), %edi
	movq	_TB_INSERTBUTTONW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_SendMessageW
	movl	(%rbx), %esi
	movq	_TBN_TOOLBARCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-68(%rbp), %rdi
	callq	_TOOLBAR_SendNotify
LBB0_3:
	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	"index from %d, index to %d\n"

	.comm	_TBN_QUERYINSERT,4,2            ## @TBN_QUERYINSERT
	.comm	_IDC_TOOLBARBTN_LBOX,4,2        ## @IDC_TOOLBARBTN_LBOX
	.comm	_LB_GETCOUNT,4,2                ## @LB_GETCOUNT
	.comm	_LB_GETITEMDATA,4,2             ## @LB_GETITEMDATA
	.comm	_LB_DELETESTRING,4,2            ## @LB_DELETESTRING
	.comm	_LB_INSERTSTRING,4,2            ## @LB_INSERTSTRING
	.comm	_LB_SETITEMDATA,4,2             ## @LB_SETITEMDATA
	.comm	_LB_SETCURSEL,4,2               ## @LB_SETCURSEL
	.comm	_IDC_MOVEUP_BTN,4,2             ## @IDC_MOVEUP_BTN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_IDC_MOVEDN_BTN,4,2             ## @IDC_MOVEDN_BTN
	.comm	_TB_DELETEBUTTON,4,2            ## @TB_DELETEBUTTON
	.comm	_TB_INSERTBUTTONW,4,2           ## @TB_INSERTBUTTONW
	.comm	_TBN_TOOLBARCHANGE,4,2          ## @TBN_TOOLBARCHANGE
	.no_dead_strip	_TOOLBAR_Cust_MoveButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_Cust_MoveButton
_TOOLBAR_Cust_MoveButton:               ; @TOOLBAR_Cust_MoveButton
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	bl	_TRACE
	cmp	x21, x20
	b.eq	LBB0_3
; %bb.1:
	str	x21, [sp, #24]
	ldr	w1, [x19]
Lloh2:
	adrp	x8, _TBN_QUERYINSERT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TBN_QUERYINSERT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x0, sp, #16
	bl	_TOOLBAR_SendNotify
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _IDC_TOOLBARBTN_LBOX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDC_TOOLBARBTN_LBOX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GetDlgItem
	mov	x25, x0
Lloh8:
	adrp	x8, _LB_GETCOUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LB_GETCOUNT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x24, x0
Lloh11:
	adrp	x8, _LB_GETITEMDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LB_GETITEMDATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
	mov	x23, x0
Lloh14:
	adrp	x8, _LB_DELETESTRING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LB_DELETESTRING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
Lloh17:
	adrp	x8, _LB_INSERTSTRING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LB_INSERTSTRING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x20
	mov	w3, #0
	bl	_SendMessageW
Lloh20:
	adrp	x8, _LB_SETITEMDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LB_SETITEMDATA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x20
	mov	x3, x23
	bl	_SendMessageW
Lloh23:
	adrp	x8, _LB_SETCURSEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LB_SETCURSEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x20
	mov	w3, #0
	bl	_SendMessageW
Lloh26:
	adrp	x8, _IDC_MOVEUP_BTN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IDC_MOVEUP_BTN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GetDlgItem
Lloh29:
	adrp	x25, _FALSE@GOTPAGE
Lloh30:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
Lloh31:
	adrp	x26, _TRUE@GOTPAGE
Lloh32:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	cmp	x20, #1
	csel	x8, x25, x26, lt
	ldr	w1, [x8]
	bl	_EnableWindow
	sub	w8, w24, #2
	sxtw	x24, w8
Lloh33:
	adrp	x8, _IDC_MOVEDN_BTN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IDC_MOVEDN_BTN@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GetDlgItem
	cmp	x24, x20
	csel	x8, x26, x25, gt
	ldr	w1, [x8]
	bl	_EnableWindow
	ldr	w0, [x19, #4]
Lloh36:
	adrp	x8, _TB_DELETEBUTTON@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TB_DELETEBUTTON@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
	ldr	w0, [x19, #4]
Lloh39:
	adrp	x8, _TB_INSERTBUTTONW@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TB_INSERTBUTTONW@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x23
	bl	_SendMessageW
	ldr	w1, [x19]
Lloh42:
	adrp	x8, _TBN_TOOLBARCHANGE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TBN_TOOLBARCHANGE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_TOOLBAR_SendNotify
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index from %d, index to %d\n"

	.comm	_TBN_QUERYINSERT,4,2            ; @TBN_QUERYINSERT
	.comm	_IDC_TOOLBARBTN_LBOX,4,2        ; @IDC_TOOLBARBTN_LBOX
	.comm	_LB_GETCOUNT,4,2                ; @LB_GETCOUNT
	.comm	_LB_GETITEMDATA,4,2             ; @LB_GETITEMDATA
	.comm	_LB_DELETESTRING,4,2            ; @LB_DELETESTRING
	.comm	_LB_INSERTSTRING,4,2            ; @LB_INSERTSTRING
	.comm	_LB_SETITEMDATA,4,2             ; @LB_SETITEMDATA
	.comm	_LB_SETCURSEL,4,2               ; @LB_SETCURSEL
	.comm	_IDC_MOVEUP_BTN,4,2             ; @IDC_MOVEUP_BTN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_IDC_MOVEDN_BTN,4,2             ; @IDC_MOVEDN_BTN
	.comm	_TB_DELETEBUTTON,4,2            ; @TB_DELETEBUTTON
	.comm	_TB_INSERTBUTTONW,4,2           ; @TB_INSERTBUTTONW
	.comm	_TBN_TOOLBARCHANGE,4,2          ; @TBN_TOOLBARCHANGE
	.no_dead_strip	_TOOLBAR_Cust_MoveButton
.subsections_via_symbols
