	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_InsertBandT
_REBAR_InsertBandT:                     ## @REBAR_InsertBandT
	.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	_FALSE@GOTPCREL(%rip), %r15
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.1:
	movq	%rdx, %r13
	movq	(%rdx), %rax
	movq	_REBARBANDINFOA_V3_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jl	LBB0_20
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r13, %rdi
	callq	_REBAR_DumpBandInfo
	movl	$48, %edi
	callq	_Alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %r12
	movl	(%r14), %eax
	cmpl	%ebx, %eax
	movq	%r14, %rcx
	movl	%ebx, %r14d
	cmovll	%eax, %r14d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	44(%rcx), %edi
	cmpl	$-1, %ebx
	cmovel	%eax, %r14d
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_DPA_InsertPtr
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	(%rbx)
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	8(%rbx), %rcx
	movq	_CLR_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.6:
	movq	16(%rbx), %rcx
LBB0_7:
	movq	%rcx, (%r12)
	movq	24(%rbx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.8:
	movq	32(%rbx), %rcx
LBB0_9:
	movq	%rcx, 8(%r12)
	movl	$-1, 16(%r12)
	movl	40(%rbx), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_REBAR_CommonSetupBand
	movq	(%r13), %rax
	movq	_REBARBANDINFOA_V6_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.10:
	movq	_RBBS_VARIABLEHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r12)
	jne	LBB0_12
LBB0_11:
	movl	40(%r12), %eax
	movl	%eax, 44(%r12)
	movl	$2147483647, 24(%r12)           ## imm = 0x7FFFFFFF
	movq	$0, 32(%r12)
LBB0_12:
	movq	_RBBIM_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_17
## %bb.13:
	movq	16(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.14:
	movq	%r12, %rdi
	addq	$28, %rdi
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:
	callq	_Str_SetPtrW
	jmp	LBB0_17
LBB0_4:
	movq	%r12, %rdi
	callq	_Free
	jmp	LBB0_20
LBB0_16:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Str_SetPtrAtoW
LBB0_17:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_REBAR_ValidateBand
	cmpl	$2, (%rbx)
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_REBAR_GetBand
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_REBAR_ValidateBand
LBB0_19:
	movq	%rbx, %rdi
	callq	_REBAR_DumpBand
	movq	%rbx, %rdi
	callq	_REBAR_Layout
	movl	40(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_20:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REBARBANDINFOA_V3_SIZE,8,3     ## @REBARBANDINFOA_V3_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"insert band at %d (bUnicode=%d)!\n"

L_.str.1:                               ## @.str.1
	.asciz	"index %d!\n"

	.comm	_CLR_NONE,8,3                   ## @CLR_NONE
	.comm	_REBARBANDINFOA_V6_SIZE,8,3     ## @REBARBANDINFOA_V6_SIZE
	.comm	_RBBS_VARIABLEHEIGHT,4,2        ## @RBBS_VARIABLEHEIGHT
	.comm	_RBBIM_TEXT,4,2                 ## @RBBIM_TEXT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_REBAR_InsertBandT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_InsertBandT
_REBAR_InsertBandT:                     ; @REBAR_InsertBandT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x2, LBB0_16
; %bb.1:
	mov	x22, x2
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _REBARBANDINFOA_V3_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REBARBANDINFOA_V3_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.2:
	mov	x20, x3
	mov	x23, x1
	mov	x19, x0
	str	x3, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	bl	_REBAR_DumpBandInfo
	mov	w0, #48
	bl	_Alloc
	cbz	x0, LBB0_16
; %bb.3:
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, w23
	mov	w9, #-1
	ccmp	w23, w9, #4, ge
	csel	w23, w8, w23, eq
	ldr	w0, [x19, #44]
	mov	x1, x23
	mov	x2, x21
	bl	_DPA_InsertPtr
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	mov	x0, x21
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x9, [x19, #8]
Lloh7:
	adrp	x8, _CLR_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CLR_NONE@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	x9, [x19, #16]
LBB0_6:
	str	x9, [x21]
	ldr	x9, [x19, #24]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x19, #32]
LBB0_8:
	str	x9, [x21, #8]
	mov	w8, #-1
	str	w8, [x21, #16]
	ldr	w0, [x19, #40]
	mov	x1, x22
	mov	x2, x21
	bl	_REBAR_CommonSetupBand
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _REBARBANDINFOA_V6_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REBARBANDINFOA_V6_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	ldr	w8, [x21, #20]
Lloh12:
	adrp	x9, _RBBS_VARIABLEHEIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RBBS_VARIABLEHEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
LBB0_10:
	ldr	w8, [x21, #40]
	str	w8, [x21, #44]
	mov	w8, #2147483647
	str	w8, [x21, #24]
	str	xzr, [x21, #32]
LBB0_11:
	ldr	w8, [x22, #8]
Lloh15:
	adrp	x9, _RBBIM_TEXT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RBBIM_TEXT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.12:
	ldr	x1, [x22, #16]
	cbz	x1, LBB0_19
; %bb.13:
	add	x0, x21, #28
	cbz	x20, LBB0_18
; %bb.14:
	bl	_Str_SetPtrW
	b	LBB0_19
LBB0_15:
	mov	x0, x21
	bl	_Free
LBB0_16:
Lloh18:
	adrp	x19, _FALSE@GOTPAGE
Lloh19:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_Str_SetPtrAtoW
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_REBAR_ValidateBand
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	bl	_REBAR_GetBand
	mov	x1, x0
	mov	x0, x19
	bl	_REBAR_ValidateBand
LBB0_21:
	mov	x0, x19
	bl	_REBAR_DumpBand
	mov	x0, x19
	bl	_REBAR_Layout
	ldr	w0, [x19, #40]
Lloh20:
	adrp	x19, _TRUE@GOTPAGE
Lloh21:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x1, #0
	bl	_InvalidateRect
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REBARBANDINFOA_V3_SIZE,8,3     ; @REBARBANDINFOA_V3_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insert band at %d (bUnicode=%d)!\n"

l_.str.1:                               ; @.str.1
	.asciz	"index %d!\n"

	.comm	_CLR_NONE,8,3                   ; @CLR_NONE
	.comm	_REBARBANDINFOA_V6_SIZE,8,3     ; @REBARBANDINFOA_V6_SIZE
	.comm	_RBBS_VARIABLEHEIGHT,4,2        ; @RBBS_VARIABLEHEIGHT
	.comm	_RBBIM_TEXT,4,2                 ; @RBBIM_TEXT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_REBAR_InsertBandT
.subsections_via_symbols
