	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_MoveBand
_REBAR_MoveBand:                        ## @REBAR_MoveBand
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %rcx
	testq	%rsi, %rsi
	js	LBB0_5
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	cmpq	%r14, %rcx
	jle	LBB0_5
## %bb.3:
	testq	%r14, %r14
	js	LBB0_5
## %bb.4:
	cmpq	%rbx, %rcx
	jle	LBB0_5
## %bb.6:
	movq	%rdi, %r15
	movq	%rbx, %rsi
	callq	_REBAR_GetBand
	movq	%rax, %r12
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	callq	_DPA_DeletePtr
	movl	8(%r15), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_DPA_InsertPtr
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	movq	%r15, %rdi
	callq	_REBAR_DumpBand
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal MoveBand, from=%d, to=%d, current band count=%d\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"moved band %d to index %d\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_REBAR_MoveBand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_MoveBand
_REBAR_MoveBand:                        ; @REBAR_MoveBand
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x3, [x0]
	tbnz	x1, #63, LBB0_2
; %bb.1:
	cmp	x3, #0
	ccmp	x3, x19, #4, ne
	b.gt	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_ERR
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	tbnz	x19, #63, LBB0_2
; %bb.4:
	cmp	x3, x20
	b.le	LBB0_2
; %bb.5:
	mov	x21, x0
	mov	x1, x20
	bl	_REBAR_GetBand
	mov	x22, x0
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_DPA_DeletePtr
	ldr	w0, [x21, #8]
	mov	x1, x19
	mov	x2, x22
	bl	_DPA_InsertPtr
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	mov	x0, x21
	bl	_REBAR_DumpBand
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal MoveBand, from=%d, to=%d, current band count=%d\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"moved band %d to index %d\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_REBAR_MoveBand
.subsections_via_symbols
