	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_MinimizeBand
_REBAR_MinimizeBand:                    ## @REBAR_MinimizeBand
	.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, %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
	movl	%ebx, %esi
	callq	_REBAR_GetBand
	movq	%rax, %r15
	movq	_RBBS_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_WARN
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ERR
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_prev_visible
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REBAR_GetBand
	movq	8(%rax), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_8
## %bb.12:
	movq	24(%r15), %r13
	subq	16(%r15), %r13
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	addq	%r13, 24(%rax)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movq	24(%rax), %r13
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movq	%r13, 32(%rax)
	movq	16(%r15), %rax
	movq	%rax, 24(%r15)
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_row_begin_for_band
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_row_end_for_band
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_REBAR_SetRowRectsX
	movq	_CCS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_REBAR_CalcVertBand
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_next_visible
	movl	%eax, %r12d
	cltq
	cmpq	%rax, (%r14)
	jle	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movq	8(%rax), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_REBAR_MaximizeBand
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_REBAR_CalcHorzBand
LBB0_15:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_REBAR_MoveChildWindows
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal MinimizeBand, 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 minimize request on a hidden band (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%d): Minimizing the first band in row is by maximizing the second\n"

L_.str.3:                               ## @.str.3
	.asciz	"(%d): Only one band in row - nothing to do\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CCS_VERT,4,2                   ## @CCS_VERT
	.no_dead_strip	_REBAR_MinimizeBand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_MinimizeBand
_REBAR_MinimizeBand:                    ; @REBAR_MinimizeBand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_prev_visible
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_GetBand
	ldr	x8, [x0, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldp	x9, x8, [x21, #16]
	sub	x23, x8, x9
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_GetBand
	ldr	x8, [x0, #24]
	add	x8, x23, x8
	str	x8, [x0, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_GetBand
	ldr	x23, [x0, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_GetBand
	str	x23, [x0, #32]
	ldr	x8, [x21, #16]
	stp	x8, x8, [x21, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_get_row_begin_for_band
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_row_end_for_band
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_REBAR_SetRowRectsX
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _CCS_VERT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CCS_VERT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	tst	w9, w8
	b.eq	LBB0_17
; %bb.11:
	bl	_REBAR_CalcVertBand
	b	LBB0_18
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_next_visible
	ldr	x8, [x19]
	cmp	x8, w0, sxtw
	b.le	LBB0_15
; %bb.13:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_GetBand
	ldr	x8, [x0, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_REBAR_MaximizeBand
	b	LBB0_16
LBB0_15:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_TRACE
LBB0_16:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	bl	_REBAR_CalcHorzBand
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_REBAR_MoveChildWindows
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal MinimizeBand, 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 minimize request on a hidden band (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%d): Minimizing the first band in row is by maximizing the second\n"

l_.str.3:                               ; @.str.3
	.asciz	"(%d): Only one band in row - nothing to do\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CCS_VERT,4,2                   ; @CCS_VERT
	.no_dead_strip	_REBAR_MinimizeBand
.subsections_via_symbols
