	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdd_change_track
_cdd_change_track:                      ## @cdd_change_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movl	%edi, %edx
	movq	_cdd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %esi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	movl	%edx, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edi
	leaq	(%rdi,%rdi,2), %rdi
	cmpq	$0, 16(%rax,%rdi,8)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rsi), %edi
	cmpl	$1, %esi
	movl	%edi, %esi
	jg	LBB0_2
## %bb.4:
	xorl	%esi, %esi
LBB0_5:
	movslq	%esi, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	16(%rax,%rsi,8), %rsi
	movq	_Pico_mcd@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rsi, (%rdi)
	movslq	%edx, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	(%rax,%rsi,8), %r14d
	movl	4(%rax,%rsi,8), %edi
	movl	%ecx, %r15d
	subl	%edi, %r15d
	movl	8(%rax,%rsi,8), %ebx
	subl	%edi, %ebx
	movq	_EL_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %r8d
	callq	_elprintf
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cdda_start_play                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cdd,8,3                        ## @cdd
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_EL_CD,4,2                      ## @EL_CD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"play #%d lba %d base %d"

	.no_dead_strip	_cdd_change_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdd_change_track
_cdd_change_track:                      ; @cdd_change_track
	.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	x3, x1
	mov	x2, x0
Lloh0:
	adrp	x8, _cdd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cdd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x9, x0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w10, #24
	mov	x9, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	umaddl	x11, w9, w10, x8
	ldr	x11, [x11, #16]
	cbnz	x11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w9, w9, #1
	b.gt	LBB0_2
; %bb.4:
	mov	w9, #0
LBB0_5:
	mov	w10, #24
	smaddl	x9, w9, w10, x8
Lloh3:
	adrp	x11, _Pico_mcd@GOTPAGE
Lloh4:
	ldr	x11, [x11, _Pico_mcd@GOTPAGEOFF]
	ldr	x9, [x9, #16]
Lloh5:
	ldr	x11, [x11]
	str	x9, [x11]
	smaddl	x8, w2, w10, x8
	ldp	w19, w9, [x8]
	sub	w20, w3, w9
	ldr	w8, [x8, #8]
	sub	w21, w8, w9
Lloh6:
	adrp	x8, _EL_CD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EL_CD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x19
	bl	_elprintf
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	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
	b	_cdda_start_play
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cdd,8,3                        ; @cdd
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_EL_CD,4,2                      ; @EL_CD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"play #%d lba %d base %d"

	.no_dead_strip	_cdd_change_track
.subsections_via_symbols
