	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_ShrinkBandsRTL
_REBAR_ShrinkBandsRTL:                  ## @REBAR_ShrinkBandsRTL
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_prev_visible
	cmpq	%r14, %rax
	jl	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r12
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_REBAR_GetBand
	movq	%rax, %r14
	movq	(%rax), %rdi
	subq	%r15, %rdi
	movl	16(%rax), %esi
	callq	_max
	movq	%rax, %r15
	subq	(%r14), %r15
	addq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r14)
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, 8(%r14)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%r14)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_prev_visible
	movq	%rax, %r13
	cmpq	%r14, %rax
	jge	LBB0_2
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %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	"Shrinking bands [%d..%d) by %d, right-to-left\n"

	.no_dead_strip	_REBAR_ShrinkBandsRTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_ShrinkBandsRTL
_REBAR_ShrinkBandsRTL:                  ; @REBAR_ShrinkBandsRTL
	.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, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	mov	x1, x23
	bl	_prev_visible
	cmp	x0, x21
	b.lt	LBB0_7
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_REBAR_GetBand
	mov	x24, x0
	ldr	x8, [x0]
	sub	x0, x8, x19
	ldr	w1, [x24, #16]
	bl	_max
	ldr	x8, [x24]
	sub	x8, x0, x8
	str	x0, [x24]
	cbz	x20, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x24, #8]
	cmp	x9, x0
	b.le	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x24, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x8, x19
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_prev_visible
	mov	x23, x0
	cmp	x0, x21
	b.ge	LBB0_2
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shrinking bands [%d..%d) by %d, right-to-left\n"

	.no_dead_strip	_REBAR_ShrinkBandsRTL
.subsections_via_symbols
