	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_MaximizeBand
_REBAR_MaximizeBand:                    ## @REBAR_MaximizeBand
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rdi), %rdx
	cmpq	%rsi, %rdx
	jle	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	js	LBB0_3
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	movq	%rbx, %rsi
	callq	_REBAR_GetBand
	movq	%rax, %r13
	movq	_RBBS_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	8(%r13), %r15d
	addl	4(%r13), %r15d
	movq	_REBAR_POST_CHILD@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	cmpl	%r15d, 12(%r13)
	jl	LBB0_9
LBB0_8:
	movl	12(%r14), %r15d
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_row_begin_for_band
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_row_end_for_band
	movl	%eax, %ecx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	subl	12(%r13), %r15d
	movl	%r15d, %r12d
	jle	LBB0_13
## %bb.10:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_REBAR_ShrinkBandsRTL
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_next_visible
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_REBAR_ShrinkBandsLTR
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_13:
	movl	%r15d, %r8d
	subl	%r12d, %r8d
	addl	12(%r13), %r8d
	movl	%r8d, 12(%r13)
	movl	%r8d, 16(%r13)
	movl	%r12d, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%ecx, %r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_TRACE
	movq	%r14, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_REBAR_SetRowRectsX
	movq	_CCS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_REBAR_CalcVertBand
	jmp	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_REBAR_CalcHorzBand
LBB0_16:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_REBAR_MoveChildWindows
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$40, %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	"Illegal MaximizeBand, requested=%d, current band count=%d\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_RBBS_HIDDEN,4,2                ## @RBBS_HIDDEN
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring maximize request on a hidden band (%d)\n"

	.comm	_REBAR_POST_CHILD,4,2           ## @REBAR_POST_CHILD
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"(%d, %ld): Wanted size %d, obtained %d (shrink %d, %d)\n"

	.comm	_CCS_VERT,4,2                   ## @CCS_VERT
	.no_dead_strip	_REBAR_MaximizeBand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_MaximizeBand
_REBAR_MaximizeBand:                    ; @REBAR_MaximizeBand
	.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	x21, x2
	mov	x20, x1
	ldr	x2, [x0]
	cmp	x2, x1
	b.le	LBB0_5
; %bb.1:
	tbnz	x20, #63, LBB0_5
; %bb.2:
	cbz	x2, LBB0_5
; %bb.3:
	mov	x19, x0
	mov	x1, x20
	bl	_REBAR_GetBand
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RBBS_HIDDEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RBBS_HIDDEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_WARN
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_ERR
LBB0_6:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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:
	mov	x24, x0
	cbz	x21, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _REBAR_POST_CHILD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REBAR_POST_CHILD@GOTPAGEOFF]
	ldp	w9, w10, [x24, #4]
Lloh11:
	ldr	w8, [x8]
	add	w9, w10, w9
	add	w25, w9, w8
	ldr	w8, [x24, #12]
	cmp	w8, w25
	b.lt	LBB0_11
LBB0_10:
	ldr	w25, [x19, #12]
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_get_row_begin_for_band
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_row_end_for_band
	mov	x23, x0
	ldr	w8, [x24, #12]
	sub	w26, w25, w8
	mov	x27, x26
	cmp	w26, #1
	b.lt	LBB0_14
; %bb.12:
Lloh12:
	adrp	x28, _TRUE@GOTPAGE
Lloh13:
	ldr	x28, [x28, _TRUE@GOTPAGEOFF]
	ldr	w4, [x28]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x26
	bl	_REBAR_ShrinkBandsRTL
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_next_visible
	mov	x1, x0
	ldr	w4, [x28]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x27
	bl	_REBAR_ShrinkBandsLTR
	mov	x27, x0
LBB0_14:
	ldr	w8, [x24, #12]
	sub	w9, w26, w27
	add	w4, w8, w9
	stp	w4, w4, [x24, #12]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x25
	mov	x5, x26
	mov	x6, x27
	bl	_TRACE
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_REBAR_SetRowRectsX
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x9, _CCS_VERT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CCS_VERT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	bl	_REBAR_CalcVertBand
	b	LBB0_17
LBB0_16:
	bl	_REBAR_CalcHorzBand
LBB0_17:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_REBAR_MoveChildWindows
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal MaximizeBand, requested=%d, current band count=%d\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_RBBS_HIDDEN,4,2                ; @RBBS_HIDDEN
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring maximize request on a hidden band (%d)\n"

	.comm	_REBAR_POST_CHILD,4,2           ; @REBAR_POST_CHILD
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"(%d, %ld): Wanted size %d, obtained %d (shrink %d, %d)\n"

	.comm	_CCS_VERT,4,2                   ; @CCS_VERT
	.no_dead_strip	_REBAR_MaximizeBand
.subsections_via_symbols
