	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_MoveBandToRowOffset
_REBAR_MoveBandToRowOffset:             ## @REBAR_MoveBandToRowOffset
	.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
	movl	%r9d, %r15d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_REBAR_GetBand
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movq	_RBBS_BREAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	testl	%r15d, %r15d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %eax
	je	LBB0_6
## %bb.1:
	cmpl	%r14d, %r12d
	jge	LBB0_10
## %bb.2:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movq	_SEP_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	addl	8(%rax), %r15d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_next_visible
	movl	%eax, %r12d
	cmpl	%r14d, %eax
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%r15d, %ebx
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jle	LBB0_4
	jmp	LBB0_10
LBB0_6:
	cmpl	%r14d, %r12d
	jge	LBB0_10
## %bb.7:
	xorl	%r15d, %r15d
	movq	_SEP_WIDTH@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REBAR_GetBand
	movl	4(%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%r15d, %edx
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %ecx
	addl	8(%rax), %ecx
	addl	%ecx, %r15d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_next_visible
	movl	%eax, %r12d
	cmpl	%r14d, %eax
	jl	LBB0_8
LBB0_10:
	movl	4(%r13), %edi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_DPA_DeletePtr
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	setg	%al
	subl	%eax, %r12d
	movl	4(%r13), %edi
	movl	%r12d, %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_DPA_InsertPtr
	movq	_RBBS_BREAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	notl	%eax
	andl	%eax, (%rbx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movl	(%rcx), %r14d
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_REBAR_GetBand
	orl	%r14d, (%rax)
LBB0_12:
	movl	$-1, %eax
	cmpl	%r15d, (%r13)
	jne	LBB0_14
## %bb.13:
	movl	%r12d, (%r13)
	movl	%r12d, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBBS_BREAK,4,2                 ## @RBBS_BREAK
	.comm	_SEP_WIDTH,8,3                  ## @SEP_WIDTH
	.no_dead_strip	_REBAR_MoveBandToRowOffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_MoveBandToRowOffset
_REBAR_MoveBandToRowOffset:             ; @REBAR_MoveBandToRowOffset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_REBAR_GetBand
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_REBAR_GetBand
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RBBS_BREAK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RBBS_BREAK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	cbz	w25, LBB0_6
; %bb.1:
	mov	x25, x21
	cmp	w21, w24
	b.ge	LBB0_10
; %bb.2:
	mov	x25, x21
	tbnz	w23, #31, LBB0_10
; %bb.3:
	mov	w26, #0
Lloh3:
	adrp	x28, _SEP_WIDTH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SEP_WIDTH@GOTPAGEOFF]
	mov	x25, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_REBAR_GetBand
	ldr	w27, [x0, #8]
	ldr	w22, [x28]
	mov	x0, x19
	mov	x1, x25
	bl	_next_visible
	mov	x25, x0
	cmp	w0, w24
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, w27
	add	w26, w26, w8
	cmp	w26, w23
	b.le	LBB0_4
	b	LBB0_10
LBB0_6:
	mov	x25, x21
	cmp	w21, w24
	b.ge	LBB0_10
; %bb.7:
	mov	w28, #0
Lloh5:
	adrp	x26, _SEP_WIDTH@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SEP_WIDTH@GOTPAGEOFF]
	mov	x25, x21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_REBAR_GetBand
	ldr	w8, [x0, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w28, w8, asr #1
	cmp	w8, w23
	b.gt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0, #8]
	ldr	w9, [x26]
	add	w8, w9, w8
	add	w28, w28, w8
	mov	x0, x19
	mov	x1, x25
	bl	_next_visible
	mov	x25, x0
	cmp	w0, w24
	b.lt	LBB0_8
LBB0_10:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_DPA_DeletePtr
	cmp	w25, w20
	cset	w8, gt
	sub	w23, w25, w8
	ldr	w0, [x19, #4]
	mov	x1, x23
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x2, x22
	bl	_DPA_InsertPtr
Lloh7:
	adrp	x10, _RBBS_BREAK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RBBS_BREAK@GOTPAGEOFF]
	ldr	w8, [x10]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w22, [x10]
	mov	x0, x19
	mov	x1, x21
	bl	_REBAR_GetBand
	ldr	w8, [x0]
	orr	w8, w8, w22
	str	w8, [x0]
LBB0_12:
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.13:
	str	w23, [x19]
	b	LBB0_15
LBB0_14:
	mov	w23, #-1
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RBBS_BREAK,4,2                 ; @RBBS_BREAK
	.comm	_SEP_WIDTH,8,3                  ; @SEP_WIDTH
	.no_dead_strip	_REBAR_MoveBandToRowOffset
.subsections_via_symbols
