	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2HandleTrackInfLoop          ## -- Begin function SH2HandleTrackInfLoop
	.p2align	4, 0x90
_SH2HandleTrackInfLoop:                 ## @SH2HandleTrackInfLoop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	%eax, %ecx
	notl	%ecx
	testl	$35200, %ecx                    ## imm = 0x8980
	je	LBB0_3
## %bb.2:
	andl	$43008, %eax                    ## imm = 0xA800
	cmpl	$43008, %eax                    ## imm = 0xA800
	jne	LBB0_12
LBB0_3:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rdx
	addq	$8, %rax
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-8(%rax), %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rax
	decq	%rsi
	jne	LBB0_5
LBB0_8:
	movl	12(%rbx), %esi
	movq	16(%rbx), %rax
	cmpl	%esi, %ecx
	jl	LBB0_10
## %bb.9:
	shll	$3, %esi
	movq	%rax, %rdi
	callq	_realloc
	movq	%rax, 16(%rbx)
	shll	12(%rbx)
	movl	8(%rbx), %ecx
LBB0_10:
	movq	32(%rbx), %rdx
	addq	$8, %rbx
	movslq	%ecx, %rsi
	shlq	$4, %rsi
	movq	%rdx, (%rax,%rsi)
	movl	$1, 8(%rax,%rsi)
	jmp	LBB0_11
LBB0_6:
	movl	(%rax), %ecx
	movq	%rax, %rbx
LBB0_11:
	incl	%ecx
	movl	%ecx, (%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2HandleTrackInfLoop          ; -- Begin function SH2HandleTrackInfLoop
	.p2align	2
_SH2HandleTrackInfLoop:                 ; @SH2HandleTrackInfLoop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #35200
	bic	w9, w9, w8
	mov	w10, #43008
	and	w8, w8, w10
	cmp	w9, #0
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_11
; %bb.2:
	mov	x20, x19
	ldr	w8, [x20, #8]!
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x10, [x19, #32]
	ldr	x9, [x19, #16]
	add	x9, x9, #8
	mov	x11, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-8]
	cmp	x10, x12
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x11, x11, #1
	b.ne	LBB0_4
LBB0_6:
	ldr	w9, [x19, #12]
	ldr	x0, [x19, #16]
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.7:
	lsl	w1, w9, #3
	bl	_realloc
	str	x0, [x19, #16]
	ldp	w8, w9, [x19, #8]
	lsl	w9, w9, #1
	str	w9, [x19, #12]
LBB0_8:
	ldr	x9, [x19, #32]
	add	x10, x0, w8, sxtw #4
	str	x9, [x10]
	mov	w9, #1
	str	w9, [x10, #8]
	b	LBB0_10
LBB0_9:
	ldr	w8, [x9]
	mov	x20, x9
LBB0_10:
	add	w8, w8, #1
	str	w8, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
