	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_WrapToolbar
_TOOLBAR_WrapToolbar:                   ## @TOOLBAR_WrapToolbar
	.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	%rdi, %r15
	movq	_TBSTYLE_WRAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	_TBSTYLE_EX_VERTICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_58
LBB0_2:
	movq	56(%r15), %r14
	movq	8(%r15), %rbx
	movq	40(%r15), %rcx
	subq	48(%r15), %rcx
	movq	16(%r15), %rsi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	$0, 32(%r15)
	je	LBB0_58
## %bb.3:
	movq	%rbx, %r11
	movq	%r14, %r8
	leaq	-32(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	xorl	%r14d, %r14d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jmp	LBB0_6
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r11, %r12
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	%r12, %r11
	cmpq	32(%r15), %r14
	jae	LBB0_58
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_41 Depth 2
                                        ##     Child Loop BB0_48 Depth 2
	movl	(%r9), %eax
	notl	%eax
	movq	%r14, %r13
	shlq	$5, %r13
	andl	(%r8,%r13), %eax
	movl	%eax, (%r8,%r13)
	testl	%eax, (%r10)
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r8,%r13), %r12
	movq	8(%r8,%r13), %rsi
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r8,%r13), %edx
	movq	_BTNS_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %rbx
	cmpq	32(%r15), %rbx
	jae	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rcx
	shlq	$5, %rcx
	testl	%eax, 16(%r8,%rcx)
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r9), %eax
	orl	%eax, (%r12)
	movq	8(%r15), %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_BTNS_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r8,%r13)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_CCS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_39
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rbx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rsi
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_button_has_ddarrow
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_DDARROW_WIDTH@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rsi,%r11), %r12
	movq	16(%r15), %rax
	movslq	24(%r15), %rcx
	subq	%rcx, %rax
	shrq	%rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	cmpq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	ja	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	8(%r15), %r11
	jne	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	jbe	LBB0_37
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_BTNS_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BTNS_DROPDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r10), %ecx
	addq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	movq	_FALSE@GOTPCREL(%rip), %rsi
	movq	_TRUE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	48(%r13), %edi
	testl	%edi, %eax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	andl	%edx, %edi
	je	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=2
	testl	%ecx, 32(%r13)
	je	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=2
	cmpq	32(%r15), %r14
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=2
	incq	%r14
	addq	$32, %r13
	movq	%rbx, %rsi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rsi), %rsi
	movq	32(%r15), %rdx
	testq	%rsi, %rsi
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %r14
	jae	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	decq	%r14
	movl	16(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%r11, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r9), %eax
	orl	%eax, (%r13)
	movq	8(%r15), %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %r14
	jae	LBB0_58
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%r9), %esi
	movl	(%r13), %edi
	testl	%edi, %esi
	je	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rbx
	movq	_TRUE@GOTPCREL(%rip), %r12
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_36
	jmp	LBB0_47
LBB0_37:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r8,%r13), %edx
	leaq	L_.str.6(%rip), %rdi
	movq	%rsi, %r8
	movq	%r14, %rsi
	movq	%r11, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_5
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-1(%r14), %rbx
	movl	16(%r13), %edx
	testl	%eax, %edx
	movq	_TRUE@GOTPCREL(%rip), %r12
	jne	LBB0_43
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r8,%r13), %rbx
	testq	%rbx, %rbx
	jg	LBB0_11
## %bb.40:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_SEPARATOR_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-32(%r13), %edi
	testl	%edi, %esi
	jne	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=2
	movl	-16(%r13), %edx
	addq	$-32, %r13
	decq	%rbx
	testl	%eax, %edx
	je	LBB0_41
LBB0_43:                                ##   in Loop: Header=BB0_6 Depth=1
	andl	%ecx, %edi
	jne	LBB0_41
## %bb.44:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r11, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	8(%r15), %r11
	movl	(%r9), %eax
	orl	%eax, (%r13)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rbx
LBB0_46:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_36
LBB0_47:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r9), %eax
	movl	(%r10), %ecx
	movq	%rbx, %r14
	shlq	$5, %rbx
	addq	%r8, %rbx
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-32(%rbx), %edx
	testl	%edx, %eax
	jne	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=2
	addq	$-32, %rbx
	decq	%r14
	testl	%edx, %ecx
	jne	LBB0_48
## %bb.50:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rbx), %edx
	movq	(%r12), %r13
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%r11, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movq	%r12, %rcx
	movq	8(%r15), %r12
	movl	(%r9), %eax
	orl	%eax, (%rbx)
	testq	%r13, %r13
	je	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	jmp	LBB0_5
LBB0_52:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %r14
	jmp	LBB0_54
LBB0_53:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r11
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_54:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rbx
	shlq	$5, %rbx
	movl	16(%r8,%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	%r11, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	_TBSTATE_WRAP@GOTPCREL(%rip), %r9
	movl	(%r9), %eax
	orl	%eax, (%r8,%rbx)
	movq	8(%r15), %r12
	movq	_BTNS_SEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r8,%rbx)
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_56:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_57:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TBSTATE_HIDDEN@GOTPCREL(%rip), %r10
	jmp	LBB0_5
LBB0_58:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBSTYLE_WRAPABLE,4,2           ## @TBSTYLE_WRAPABLE
	.comm	_TBSTYLE_EX_VERTICAL,4,2        ## @TBSTYLE_EX_VERTICAL
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start ButtonWidth=%d, BitmapWidth=%d, width=%d, nIndent=%d\n"

	.comm	_TBSTATE_WRAP,4,2               ## @TBSTATE_WRAP
	.comm	_TBSTATE_HIDDEN,4,2             ## @TBSTATE_HIDDEN
	.comm	_BTNS_SEP,4,2                   ## @BTNS_SEP
	.comm	_CCS_VERT,4,2                   ## @CCS_VERT
	.comm	_SEPARATOR_WIDTH,8,3            ## @SEPARATOR_WIDTH
	.comm	_DDARROW_WIDTH,8,3              ## @DDARROW_WIDTH
L_.str.1:                               ## @.str.1
	.asciz	"wrap point 1 btn %d style %02x\n"

	.comm	_BTNS_DROPDOWN,4,2              ## @BTNS_DROPDOWN
	.comm	_TRUE,8,3                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"wrap point 2 btn %d style %02x, x=%d, cx=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"wrap point 3 btn %d style %02x, x=%d, cx=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"wrap point 4 btn %d style %02x, x=%d, cx=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"wrap point 5 btn %d style %02x, x=%d, cx=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"wrap point 6 btn %d style %02x, x=%d, cx=%d\n"

	.no_dead_strip	_TOOLBAR_WrapToolbar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_WrapToolbar
_TOOLBAR_WrapToolbar:                   ; @TOOLBAR_WrapToolbar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TBSTYLE_WRAPABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBSTYLE_WRAPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _TBSTYLE_EX_VERTICAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TBSTYLE_EX_VERTICAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_50
LBB0_2:
	ldp	x9, x28, [x19, #48]
	ldr	x8, [x19, #40]
	sub	x8, x8, x9
Lloh6:
	adrp	x9, _FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x9]
	ldp	x22, x1, [x19, #8]
	ldr	w2, [x19, #24]
	stp	x8, x22, [sp]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_50
; %bb.3:
	mov	x26, #0
	sub	x8, x28, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh11:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh12:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
Lloh13:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh14:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
Lloh15:
	adrp	x20, _TRUE@GOTPAGE
Lloh16:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x26, x26, #1
	ldr	w2, [x24, #16]
	stp	x22, x21, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x26
	bl	_TRACE
Lloh19:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh20:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
Lloh21:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh22:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	ldr	w8, [x14]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	ldr	x22, [x19, #8]
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	x23, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldr	x8, [x19, #32]
	cmp	x26, x8
	b.hs	LBB0_50
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_42 Depth 2
	ldr	w8, [x14]
	add	x27, x28, x26, lsl #5
	ldr	w9, [x27]
	bic	w8, w9, w8
	str	w8, [x27]
	ldr	w9, [x15]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x27, #8]
	cmp	x21, #0
	b.le	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x23, LBB0_22
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x26, lsl #5
	ldr	w2, [x8, #16]
Lloh26:
	adrp	x8, _BTNS_SEP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BTNS_SEP@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x26, #1
	ldr	x9, [x19, #32]
	cmp	x24, x9
	b.hs	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x28, x24, lsl #5
	ldr	w9, [x9, #16]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_TRACE
Lloh31:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh32:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
Lloh33:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh34:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	ldr	w8, [x14]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
	ldr	x22, [x19, #8]
Lloh35:
	adrp	x8, _FALSE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh37:
	ldr	x23, [x8]
	mov	x26, x24
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x26, lsl #5
	ldr	w8, [x8, #16]
Lloh38:
	adrp	x9, _BTNS_SEP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BTNS_SEP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
Lloh41:
	adrp	x9, _CCS_VERT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _CCS_VERT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x19, #16]
	cbz	x21, LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x24
	cbnz	x23, LBB0_9
	b	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x26, lsl #5
	ldr	x8, [x8, #24]
Lloh44:
	adrp	x9, _SEPARATOR_WIDTH@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SEPARATOR_WIDTH@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x24, x8, x9, gt
	cbnz	x21, LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x27
	bl	_button_has_ddarrow
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh47:
	adrp	x8, _DDARROW_WIDTH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DDARROW_WIDTH@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	add	x21, x8, x24
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x24
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh50:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh51:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
Lloh52:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh53:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
	cbnz	x23, LBB0_9
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x21, x22
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #24]
	sub	x8, x8, x9
	sub	x8, x24, x8, lsr #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.hi	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.ne	LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x21, x8
	b.ls	LBB0_35
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh54:
	adrp	x8, _BTNS_SEP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BTNS_SEP@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _BTNS_DROPDOWN@GOTPAGE
Lloh58:
	ldr	x9, [x9, _BTNS_DROPDOWN@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x9]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x9, x26, lsl #5
Lloh60:
	adrp	x11, _FALSE@GOTPAGE
Lloh61:
	ldr	x11, [x11, _FALSE@GOTPAGEOFF]
	ldr	w9, [x15]
LBB0_26:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x24, #48]
	and	w13, w8, w12
	and	w12, w10, w12
	cmp	w13, #0
	ccmp	w12, #0, #0, ne
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	w12, [x24, #32]
	tst	w9, w12
	b.eq	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=2
	ldr	x12, [x19, #32]
	cmp	x26, x12
	b.hs	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=2
	add	x26, x26, #1
	add	x24, x24, #32
	mov	x11, x20
	b	LBB0_26
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x11]
	ldr	x10, [x19, #32]
	cmp	x25, #0
	ccmp	x26, x10, #2, ne
	b.lo	LBB0_4
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, x10
	b.hs	LBB0_50
; %bb.32:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x14]
	ldr	w11, [x24]
	tst	w10, w11
	b.eq	LBB0_36
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x26
	cbz	x25, LBB0_41
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x27
	b	LBB0_5
LBB0_35:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x26, lsl #5
	ldr	w2, [x8, #16]
	stp	x22, x21, [sp]
Lloh62:
	adrp	x0, l_.str.6@PAGE
Lloh63:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x26
	bl	_TRACE
Lloh64:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh65:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
Lloh66:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh67:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	mov	x22, x24
	b	LBB0_5
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x27, x26, #1
	ldr	w2, [x24, #16]
	tst	w2, w8
	b.eq	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w11, w9, w11
	cbz	w11, LBB0_40
LBB0_38:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w11, [x24, #-32]
	tst	w10, w11
	b.ne	LBB0_33
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=2
	ldur	w2, [x24, #-16]
	and	w12, w2, w8
	and	w11, w9, w11
	sub	x24, x24, #32
	sub	x27, x27, #1
	cmp	w12, #0
	ccmp	w11, #0, #0, ne
	b.ne	LBB0_38
LBB0_40:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x20]
	stp	x22, x21, [sp]
Lloh68:
	adrp	x0, l_.str.3@PAGE
Lloh69:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x27
	bl	_TRACE
	ldr	x22, [x19, #8]
Lloh70:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh71:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	ldr	w8, [x14]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
Lloh72:
	adrp	x8, _FALSE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh74:
	ldr	x23, [x8]
Lloh75:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh76:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
	cbnz	x25, LBB0_34
LBB0_41:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x14]
	ldr	w9, [x15]
	add	x23, x28, x27, lsl #5
	mov	x26, x27
LBB0_42:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w10, [x23, #-32]
	tst	w8, w10
	b.ne	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=2
	sub	x23, x23, #32
	sub	x26, x26, #1
	and	w10, w9, w10
	cbnz	w10, LBB0_42
; %bb.44:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x20]
	ldr	w2, [x23, #16]
	stp	x22, x21, [sp]
Lloh77:
	adrp	x0, l_.str.4@PAGE
Lloh78:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x26
	bl	_TRACE
Lloh79:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh80:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	ldr	x22, [x19, #8]
	ldr	w8, [x14]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	cbnz	x24, LBB0_48
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x27
LBB0_46:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x28, x26, lsl #5
	ldr	w2, [x23, #16]
	stp	x22, x21, [sp]
Lloh81:
	adrp	x0, l_.str.5@PAGE
Lloh82:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x26
	bl	_TRACE
Lloh83:
	adrp	x14, _TBSTATE_WRAP@GOTPAGE
Lloh84:
	ldr	x14, [x14, _TBSTATE_WRAP@GOTPAGEOFF]
	ldr	w8, [x14]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	ldr	x22, [x19, #8]
	ldr	w8, [x23, #16]
Lloh85:
	adrp	x9, _BTNS_SEP@GOTPAGE
Lloh86:
	ldr	x9, [x9, _BTNS_SEP@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh88:
	adrp	x8, _FALSE@GOTPAGE
Lloh89:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh90:
	ldr	x23, [x8]
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x20]
LBB0_49:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh91:
	adrp	x15, _TBSTATE_HIDDEN@GOTPAGE
Lloh92:
	ldr	x15, [x15, _TBSTATE_HIDDEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_50:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.comm	_TBSTYLE_WRAPABLE,4,2           ; @TBSTYLE_WRAPABLE
	.comm	_TBSTYLE_EX_VERTICAL,4,2        ; @TBSTYLE_EX_VERTICAL
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start ButtonWidth=%d, BitmapWidth=%d, width=%d, nIndent=%d\n"

	.comm	_TBSTATE_WRAP,4,2               ; @TBSTATE_WRAP
	.comm	_TBSTATE_HIDDEN,4,2             ; @TBSTATE_HIDDEN
	.comm	_BTNS_SEP,4,2                   ; @BTNS_SEP
	.comm	_CCS_VERT,4,2                   ; @CCS_VERT
	.comm	_SEPARATOR_WIDTH,8,3            ; @SEPARATOR_WIDTH
	.comm	_DDARROW_WIDTH,8,3              ; @DDARROW_WIDTH
l_.str.1:                               ; @.str.1
	.asciz	"wrap point 1 btn %d style %02x\n"

	.comm	_BTNS_DROPDOWN,4,2              ; @BTNS_DROPDOWN
	.comm	_TRUE,8,3                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"wrap point 2 btn %d style %02x, x=%d, cx=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"wrap point 3 btn %d style %02x, x=%d, cx=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"wrap point 4 btn %d style %02x, x=%d, cx=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"wrap point 5 btn %d style %02x, x=%d, cx=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"wrap point 6 btn %d style %02x, x=%d, cx=%d\n"

	.no_dead_strip	_TOOLBAR_WrapToolbar
.subsections_via_symbols
