	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_Cust_InsertAvailButton
_TOOLBAR_Cust_InsertAvailButton:        ## @TOOLBAR_Cust_InsertAvailButton
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_IDC_AVAILBTN_LBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	8(%r14), %edi
	callq	_debugstr_w
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_LB_GETCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, %r12d
	movq	_LB_ADDSTRING@GOTPCREL(%rip), %rax
	cmpl	$2, %r12d
	jl	LBB0_6
## %bb.1:
	movl	$1, %ebx
	movq	_LB_GETITEMDATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	cltq
	movq	(%r14), %rcx
	cmpq	(%rax), %rcx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_2
## %bb.5:
	xorl	%ebx, %ebx
	movq	_LB_ADDSTRING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_LB_INSERTSTRING@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_LB_SETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r15d, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendMessageW                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_AVAILBTN_LBOX,4,2          ## @IDC_AVAILBTN_LBOX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"button %s, idCommand %d\n"

	.comm	_LB_GETCOUNT,4,2                ## @LB_GETCOUNT
	.comm	_LB_GETITEMDATA,4,2             ## @LB_GETITEMDATA
	.comm	_LB_INSERTSTRING,4,2            ## @LB_INSERTSTRING
	.comm	_LB_SETITEMDATA,4,2             ## @LB_SETITEMDATA
	.comm	_LB_ADDSTRING,4,2               ## @LB_ADDSTRING
	.no_dead_strip	_TOOLBAR_Cust_InsertAvailButton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_Cust_InsertAvailButton
_TOOLBAR_Cust_InsertAvailButton:        ; @TOOLBAR_Cust_InsertAvailButton
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
Lloh0:
	adrp	x8, _IDC_AVAILBTN_LBOX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_AVAILBTN_LBOX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_debugstr_w
	mov	x1, x0
	ldr	x2, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh5:
	adrp	x8, _LB_GETCOUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_GETCOUNT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x22, x0
	mov	w21, #1
Lloh8:
	adrp	x25, _LB_GETITEMDATA@GOTPAGE
Lloh9:
	ldr	x25, [x25, _LB_GETITEMDATA@GOTPAGEOFF]
Lloh10:
	adrp	x23, _LB_INSERTSTRING@GOTPAGE
Lloh11:
	ldr	x23, [x23, _LB_INSERTSTRING@GOTPAGEOFF]
Lloh12:
	adrp	x24, _LB_ADDSTRING@GOTPAGE
Lloh13:
	ldr	x24, [x24, _LB_ADDSTRING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19]
	ldr	x8, [x8]
	cmp	x9, x8
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_2
; %bb.4:
	mov	w21, #0
	mov	x23, x24
	b	LBB0_6
LBB0_5:
	mov	w21, #0
Lloh14:
	adrp	x23, _LB_ADDSTRING@GOTPAGE
Lloh15:
	ldr	x23, [x23, _LB_ADDSTRING@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_SendMessageW
	mov	x2, x0
Lloh16:
	adrp	x8, _LB_SETITEMDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LB_SETITEMDATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SendMessageW
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_AVAILBTN_LBOX,4,2          ; @IDC_AVAILBTN_LBOX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"button %s, idCommand %d\n"

	.comm	_LB_GETCOUNT,4,2                ; @LB_GETCOUNT
	.comm	_LB_GETITEMDATA,4,2             ; @LB_GETITEMDATA
	.comm	_LB_INSERTSTRING,4,2            ; @LB_INSERTSTRING
	.comm	_LB_SETITEMDATA,4,2             ; @LB_SETITEMDATA
	.comm	_LB_ADDSTRING,4,2               ; @LB_ADDSTRING
	.no_dead_strip	_TOOLBAR_Cust_InsertAvailButton
.subsections_via_symbols
