	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chdstream_find_special_track
_chdstream_find_special_track:          ## @chdstream_find_special_track
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %ebx
	leaq	-56(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_chdstream_find_track_number
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %ebx
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHDSTREAM_TRACK_LAST@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %r13d
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %r13d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %r13d
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %eax
	cmpl	%r15d, %eax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_4:
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	-56(%rbp), %rax
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_chdstream_find_track_number
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHDSTREAM_TRACK_LAST,4,2       ## @CHDSTREAM_TRACK_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AUDIO"

	.no_dead_strip	_chdstream_find_special_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chdstream_find_special_track
_chdstream_find_special_track:          ; @chdstream_find_special_track
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	w20, #0
	mov	w25, #0
	mov	w23, #1
Lloh0:
	adrp	x26, _CHDSTREAM_TRACK_LAST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CHDSTREAM_TRACK_LAST@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	x1, x23
	bl	_chdstream_find_track_number
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #2
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	cmp	w8, w22
	b.eq	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #128
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w20, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #128
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #129
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [sp]
	cmp	w8, w25
	csel	w20, w9, w20, gt
	csel	w25, w8, w25, gt
	b	LBB0_1
LBB0_12:
	ldr	x8, [sp]
	str	x8, [x19]
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_chdstream_find_track_number
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHDSTREAM_TRACK_LAST,4,2       ; @CHDSTREAM_TRACK_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUDIO"

	.no_dead_strip	_chdstream_find_special_track
.subsections_via_symbols
