	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_bin_cue                   ## -- Begin function load_bin_cue
	.p2align	4, 0x90
_load_bin_cue:                          ## @load_bin_cue
	.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	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %r12d
	testq	%r14, %r14
	je	LBB0_51
## %bb.1:
	movq	%rsp, -408(%rbp)                ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -400(%rbp)                ## 8-byte Spill
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_50
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rax,%rbp), %rdi
	addq	$-305, %rdi                     ## imm = 0xFECF
	callq	_skip_whitespace_rev
	cmpq	%rbx, %rax
	jbe	LBB0_50
## %bb.3:
	movq	%rax, %rdi
	callq	_skip_nonspace_rev
	cmpq	%rbx, %rax
	jbe	LBB0_50
## %bb.4:
	movq	%rax, %rdi
	callq	_skip_whitespace_rev
	cmpq	%rbx, %rax
	jbe	LBB0_50
## %bb.5:
	cmpb	$34, (%rax)
	jne	LBB0_7
## %bb.6:
	movb	$0, (%rax)
	leaq	-304(%rbp), %rdi
	movl	$34, %esi
	jmp	LBB0_8
LBB0_7:
	movb	$0, 1(%rax)
	leaq	-304(%rbp), %rdi
	movl	$32, %esi
LBB0_8:
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_50
## %bb.9:
	incq	%rax
	movq	-400(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcpy
	movq	_DIR_SEPARATOR_CHAR@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	movq	%r13, %rdi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	movq	%rsp, -384(%rbp)                ## 8-byte Spill
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	(%r15), %esi
	movq	%rdi, %r15
	callq	_getcwd
	movb	$0, (%rbx)
	movq	%r13, %rdi
	callq	_chdir
	leaq	L_.str(%rip), %rsi
	movq	-400(%rbp), %rdi                ## 8-byte Reload
	callq	_fopen
	movq	_cd_bin@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
	movq	_DIR_SEPARATOR_CHAR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rbx)
	movq	%r15, %rdi
	callq	_chdir
	movq	-384(%rbp), %rsp                ## 8-byte Reload
	movq	_cd_bin@GOTPCREL(%rip), %rax
	movq	32(%rax), %rax
	jmp	LBB0_12
LBB0_50:
	movq	-408(%rbp), %rsp                ## 8-byte Reload
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_51:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.52:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	-400(%rbp), %rdi                ## 8-byte Reload
	callq	_fopen
	movq	_cd_bin@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
LBB0_12:
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movq	-400(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	_cd_bin@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	$0, (%rax,%rbx)
	movq	24(%r15), %rax
	movq	$0, 8(%rax,%rbx)
	movq	24(%r15), %rax
	movq	$0, 16(%rax,%rbx)
	movq	24(%r15), %rax
	movq	$0, 24(%rax,%rbx)
	movq	24(%r15), %rax
	movq	$0, 32(%rax,%rbx)
	addq	$40, %rbx
	cmpq	$800, %rbx                      ## imm = 0x320
	jne	LBB0_15
## %bb.16:
	movq	$-1, (%r15)
	movl	$0, 8(%r15)
	movq	$0, 48(%r15)
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_34
## %bb.17:
	movl	$-1, -384(%rbp)                 ## 4-byte Folded Spill
	leaq	-304(%rbp), %rdi
	xorl	%eax, %eax
	movq	%rax, -424(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_36:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdi
	leaq	L_.str.8(%rip), %rsi
	leaq	-368(%rbp), %rdx
	leaq	-372(%rbp), %rcx
	leaq	-392(%rbp), %r8
	xorl	%eax, %eax
	callq	_sscanf
	imull	$75, -372(%rbp), %eax
	imull	$4500, -368(%rbp), %ecx         ## imm = 0x1194
	addl	-392(%rbp), %ebx
	addl	%eax, %ebx
	addl	%ecx, %ebx
LBB0_39:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r14, %rdx
	callq	_fgets
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_34
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r12
	callq	_skip_whitespace
	movsbl	(%rax), %ecx
	cmpl	$73, %ecx
	je	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$80, %ecx
	je	LBB0_36
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$84, %ecx
	jne	LBB0_39
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, -388(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-372(%rbp), %rdx
	leaq	-368(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	movl	-384(%rbp), %ecx                ## 4-byte Reload
	incl	%ecx
	movq	40(%r15), %rax
	movl	%ecx, -384(%rbp)                ## 4-byte Spill
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rbx
	movl	$2352, (%rax,%rcx,8)            ## imm = 0x930
	movl	-368(%rbp), %edx
	movl	$1229215041, %esi               ## imm = 0x49445541
	xorl	%esi, %edx
	movzwl	-364(%rbp), %esi
	xorl	$79, %esi
	orl	%edx, %esi
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$0, 4(%rax,%rcx,8)
	movl	$2352, (%rbx)                   ## imm = 0x930
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-368(%rbp), %rdx
	movabsq	$3689062933431865165, %rsi      ## imm = 0x33322F3145444F4D
	xorq	%rsi, %rdx
	movq	-365(%rbp), %rsi
	movabsq	$14132242837090629, %rdi        ## imm = 0x323533322F3145
	xorq	%rdi, %rsi
	orq	%rdx, %rsi
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$4, 4(%rax,%rcx,8)
	movl	$2352, (%rbx)                   ## imm = 0x930
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-368(%rbp), %rdx
	movabsq	$3472890151318081357, %rsi      ## imm = 0x30322F3145444F4D
	xorq	%rsi, %rdx
	movq	-365(%rbp), %rsi
	movabsq	$15819980300824901, %rdi        ## imm = 0x383430322F3145
	xorq	%rdi, %rsi
	orq	%rdx, %rsi
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$4, 4(%rax,%rcx,8)
	movl	$2048, (%rbx)                   ## imm = 0x800
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r15), %rcx
	movslq	-372(%rbp), %rax
	movq	%rbx, (%rcx,%rax,8)
	incl	8(%r15)
	movl	(%r15), %ecx
	cmpl	$-1, %ecx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	%ecx, %eax
	jge	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, (%r15)
LBB0_30:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, -424(%rbp)                ## 8-byte Spill
	movl	4(%r15), %ecx
	cmpl	$-1, %ecx
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	%ecx, %eax
	jle	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%eax, 4(%r15)
LBB0_33:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	-388(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdi
	leaq	L_.str.9(%rip), %rsi
	leaq	-368(%rbp), %rdx
	leaq	-372(%rbp), %rcx
	leaq	-392(%rbp), %r8
	leaq	-412(%rbp), %r9
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, -368(%rbp)
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_18 Depth=1
	imull	$75, -392(%rbp), %eax
	addl	-412(%rbp), %eax
	imull	$4500, -372(%rbp), %ecx         ## imm = 0x1194
	addl	%eax, %ecx
	movq	-424(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, 8(%rax)
	movl	%ecx, 12(%rax)
	jmp	LBB0_39
LBB0_34:
	movl	8(%r15), %edx
	cmpl	$2, %edx
	jl	LBB0_35
## %bb.40:
	decl	%edx
	movq	40(%r15), %rcx
	movq	48(%r15), %rax
	movl	12(%rcx), %edi
	movq	%rdx, %r11
	leaq	(,%rdx,8), %rdx
	leaq	(%rdx,%rdx,2), %r8
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	movl	36(%rcx,%rsi), %r9d
	movl	%r9d, %ebx
	subl	%edi, %ebx
	movl	%ebx, 16(%rcx,%rsi)
	movl	%edx, 20(%rcx,%rsi)
	movslq	%ebx, %r10
	imull	(%rcx,%rsi), %ebx
	addl	%edx, %ebx
	addl	8(%rcx,%rsi), %edi
	movl	%edi, 12(%rcx,%rsi)
	addq	%r10, %rax
	addq	$24, %rsi
	movl	%r9d, %edi
	cmpq	%rsi, %r8
	jne	LBB0_41
## %bb.42:
	movq	%rax, 48(%r15)
	movq	%r11, -384(%rbp)                ## 8-byte Spill
	jmp	LBB0_43
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	movq	-400(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	-408(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_51
LBB0_35:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -384(%rbp)                ## 8-byte Spill
LBB0_43:
	movq	32(%r15), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_fseek
	movq	32(%r15), %rdi
	callq	_ftell
	movl	%eax, -388(%rbp)                ## 4-byte Spill
	movq	32(%r15), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	movq	40(%r15), %rcx
	movq	-384(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rax,2), %rsi
	movl	%ebx, 20(%rcx,%rsi,8)
	movl	8(%rcx,%rsi,8), %eax
	addl	%eax, 12(%rcx,%rsi,8)
	movl	-388(%rbp), %eax                ## 4-byte Reload
	subl	%ebx, %eax
	cltd
	idivl	(%rcx,%rsi,8)
	movl	%eax, 16(%rcx,%rsi,8)
	cltq
	addq	%rax, 48(%r15)
	leaq	L_.str.10(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	32(%r15), %rdx
	leaq	L_.str.11(%rip), %rdi
	movq	-400(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movl	(%r15), %esi
	movl	4(%r15), %edx
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r15), %ebx
	cmpl	4(%r15), %ebx
	jle	LBB0_44
LBB0_49:
	movq	$0, 16(%r15)
	movq	%r14, %rdi
	callq	_fclose
	movq	-408(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_51
LBB0_44:
	movslq	%ebx, %r13
	decq	%r13
	jmp	LBB0_45
LBB0_47:                                ##   in Loop: Header=BB0_45 Depth=1
	movl	20(%rax), %esi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%r15), %rax
	movq	8(%rax,%r13,8), %rax
	movl	12(%rax), %esi
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%r15), %rax
	movq	8(%rax,%r13,8), %rax
	movl	(%rax), %esi
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_48:                                ##   in Loop: Header=BB0_45 Depth=1
	movslq	4(%r15), %rax
	incq	%r13
	incl	%ebx
	cmpq	%rax, %r13
	jge	LBB0_49
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	8(%rax,%r13,8), %rdx
	leaq	L_.str.13(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%r15), %rax
	movq	8(%rax,%r13,8), %rax
	testq	%rax, %rax
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	leaq	L_str.19(%rip), %rdi
	callq	_puts
	jmp	LBB0_48
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"loading cue file %s\n"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_DIR_SEPARATOR_CHAR,1,0         ## @DIR_SEPARATOR_CHAR
	.comm	_cd_bin,56,3                    ## @cd_bin
L_.str.2:                               ## @.str.2
	.asciz	"can't open bin file: \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"found bin file: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"TRACK %d %s"

L_.str.5:                               ## @.str.5
	.asciz	"AUDIO"

L_.str.6:                               ## @.str.6
	.asciz	"MODE1/2352"

L_.str.7:                               ## @.str.7
	.asciz	"MODE1/2048"

L_.str.8:                               ## @.str.8
	.asciz	"PREGAP %d:%d:%d"

L_.str.9:                               ## @.str.9
	.asciz	"INDEX %d %d:%d:%d"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.10:                              ## @.str.10
	.asciz	"finished loading cue %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"bin file: %s (%p)\n"

L_.str.12:                              ## @.str.12
	.asciz	"first track: %d, last track: %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"track %d (%p):\n"

L_.str.15:                              ## @.str.15
	.asciz	"  physical offset 0x%x\n"

L_.str.16:                              ## @.str.16
	.asciz	"  sector offset 0x%x\n"

L_.str.17:                              ## @.str.17
	.asciz	"  sector size %d\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_str:                                  ## @str
	.asciz	"error: invalid/unsupported .cue file"

L_str.19:                               ## @str.19
	.asciz	"  (invalid)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function load_bin_cue
lCPI0_0:
	.long	2352                            ; 0x930
	.long	0                               ; 0x0
lCPI0_1:
	.long	2352                            ; 0x930
	.long	4                               ; 0x4
lCPI0_2:
	.long	2048                            ; 0x800
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_load_bin_cue
	.p2align	2
_load_bin_cue:                          ; @load_bin_cue
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #352
	mov	x19, sp
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	str	x21, [sp, #-16]!
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	cbz	x20, LBB0_12
; %bb.1:
	mov	x26, sp
Lloh7:
	adrp	x25, _MAX_PATH@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	add	x23, x19, #80
	add	x0, x19, #80
	mov	w1, #255
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.2:
	add	x0, x19, #80
	bl	_strlen
	add	x8, x23, w0, sxtw
	sub	x0, x8, #1
	bl	_skip_whitespace_rev
	cmp	x0, x23
	b.ls	LBB0_11
; %bb.3:
	bl	_skip_nonspace_rev
	add	x23, x19, #80
	cmp	x0, x23
	b.ls	LBB0_11
; %bb.4:
	bl	_skip_whitespace_rev
	cmp	x0, x23
	b.ls	LBB0_11
; %bb.5:
	ldrb	w8, [x0]
	cmp	w8, #34
	b.ne	LBB0_7
; %bb.6:
	strb	wzr, [x0]
	add	x0, x19, #80
	mov	w1, #34
	b	LBB0_8
LBB0_7:
	strb	wzr, [x0, #1]
	add	x0, x19, #80
	mov	w1, #32
LBB0_8:
	bl	_strrchr
	cbz	x0, LBB0_11
; %bb.9:
	add	x1, x0, #1
	mov	x0, x22
	bl	_strcpy
Lloh11:
	adrp	x8, _DIR_SEPARATOR_CHAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIR_SEPARATOR_CHAR@GOTPAGEOFF]
Lloh13:
	ldrsb	w1, [x8]
	mov	x0, x21
	bl	_strrchr
Lloh14:
	adrp	x27, _cd_bin@GOTPAGE
Lloh15:
	ldr	x27, [x27, _cd_bin@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.10:
	mov	x23, x0
	mov	x28, sp
	ldr	w8, [x25]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w1, [x25]
	mov	x0, x24
	bl	_getcwd
	strb	wzr, [x23]
	mov	x0, x21
	bl	_chdir
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	str	x0, [x27, #32]
Lloh20:
	adrp	x8, _DIR_SEPARATOR_CHAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DIR_SEPARATOR_CHAR@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x23]
	mov	x0, x24
	bl	_chdir
	mov	sp, x28
	ldr	x0, [x27, #32]
	b	LBB0_16
LBB0_11:
	mov	sp, x26
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-128]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.14:
	sub	sp, x29, #112
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	str	x0, [x27, #32]
LBB0_16:
	sub	sp, sp, #16
	cbz	x0, LBB0_44
; %bb.17:
	str	x22, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	x8, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x27, #24]
	str	xzr, [x9, x8]
	add	x8, x8, #8
	cmp	x8, #800
	b.ne	LBB0_18
; %bb.19:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x27]
	str	wzr, [x27, #8]
	str	xzr, [x27, #48]
	add	x0, x19, #80
	mov	w1, #256
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_40
; %bb.20:
	mov	x24, #0
	mov	w28, #0
	mov	w23, #-1
	add	x25, x19, #12
Lloh31:
	adrp	x8, lCPI0_0@PAGE
Lloh32:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh33:
	adrp	x8, lCPI0_1@PAGE
Lloh34:
	ldr	d9, [x8, lCPI0_1@PAGEOFF]
Lloh35:
	adrp	x8, lCPI0_2@PAGE
Lloh36:
	ldr	d10, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x19, #8
	stp	x25, x8, [sp, #-16]!
	add	x2, x19, #16
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	ldp	w8, w9, [x19, #8]
	ldr	w10, [x19, #16]
	add	w8, w8, w28
	mov	w11, #75
	madd	w8, w9, w11, w8
	mov	w9, #4500
	madd	w28, w10, w9, w8
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x0, x19, #80
	mov	w1, #256
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_40
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #80
	bl	_skip_whitespace
	ldrsb	w8, [x0]
	cmp	w8, #73
	b.eq	LBB0_38
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #80
	b.eq	LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #84
	b.ne	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x19, #16
	str	x8, [sp, #-16]!
	add	x2, x19, #12
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sscanf
	add	sp, sp, #16
	add	w23, w23, #1
	ldr	x8, [x27, #40]
	mov	w9, #24
	smaddl	x24, w23, w9, x8
	mov	w8, #2352
	str	w8, [x24]
	ldr	w8, [x19, #16]
	mov	w9, #21825
	movk	w9, #18756, lsl #16
	eor	w8, w8, w9
	ldrh	w9, [x19, #20]
	mov	w10, #79
	eor	w9, w9, w10
	orr	w8, w8, w9
	cbnz	w8, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	str	d8, [x24]
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #16]
	mov	x9, #20301
	movk	x9, #17732, lsl #16
	movk	x9, #12081, lsl #32
	movk	x9, #13106, lsl #48
	eor	x8, x8, x9
	ldur	x9, [x19, #19]
	mov	x10, #12613
	movk	x10, #12847, lsl #16
	movk	x10, #13619, lsl #32
	movk	x10, #50, lsl #48
	eor	x9, x9, x10
	orr	x8, x8, x9
	cbnz	x8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	str	d9, [x24]
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #16]
	mov	x9, #20301
	movk	x9, #17732, lsl #16
	movk	x9, #12081, lsl #32
	movk	x9, #12338, lsl #48
	eor	x8, x8, x9
	ldur	x9, [x19, #19]
	mov	x10, #12613
	movk	x10, #12847, lsl #16
	movk	x10, #13360, lsl #32
	movk	x10, #56, lsl #48
	eor	x9, x9, x10
	orr	x8, x8, x9
	cbnz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
	str	d10, [x24]
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x27, #24]
	ldrsw	x8, [x19, #12]
	str	x24, [x9, x8, lsl #3]
	ldr	w9, [x27, #8]
	add	w9, w9, #1
	str	w9, [x27, #8]
	ldr	w9, [x27]
	cmn	w9, #1
	b.eq	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, w9
	b.ge	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	str	w8, [x27]
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w9, [x27, #4]
	cmn	w9, #1
	b.eq	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, w9
	b.le	LBB0_22
LBB0_37:                                ;   in Loop: Header=BB0_23 Depth=1
	str	w8, [x27, #4]
	b	LBB0_22
LBB0_38:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	sp, sp, #32
	add	x8, x19, #4
	str	x8, [sp, #16]
	add	x2, x19, #16
	add	x8, x19, #8
	stp	x25, x8, [sp]
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_sscanf
	add	sp, sp, #32
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.39:                               ;   in Loop: Header=BB0_23 Depth=1
	ldp	w8, w9, [x19, #4]
	mov	w10, #75
	madd	w8, w9, w10, w8
	ldr	w9, [x19, #12]
	mov	w10, #4500
	madd	w8, w9, w10, w8
	stp	w28, w8, [x24, #8]
	b	LBB0_22
LBB0_40:
	ldr	w8, [x27, #8]
	cmp	w8, #2
	b.lt	LBB0_45
; %bb.41:
	mov	w24, #0
	sub	w25, w8, #1
	ldp	x9, x8, [x27, #40]
	ldr	w11, [x9, #12]
	add	x9, x9, #20
	mov	x10, x25
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, #16]
	sub	w13, w12, w11
	stp	w13, w24, [x9, #-4]
	ldur	w14, [x9, #-20]
	madd	w24, w14, w13, w24
	ldur	w14, [x9, #-12]
	add	w11, w14, w11
	stur	w11, [x9, #-8]
	add	x8, x8, w13, sxtw
	add	x9, x9, #24
	mov	x11, x12
	subs	x10, x10, #1
	b.ne	LBB0_42
; %bb.43:
	str	x8, [x27, #48]
	b	LBB0_46
LBB0_44:
	str	x22, [sp]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w0, #-1
	mov	sp, x26
	b	LBB0_13
LBB0_45:
	mov	w24, #0
	mov	x25, #0
LBB0_46:
	ldr	x0, [x27, #32]
Lloh45:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	ldr	x0, [x27, #32]
	bl	_ftell
	mov	x23, x0
	ldr	x0, [x27, #32]
Lloh48:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	ldr	x8, [x27, #40]
	mov	w9, #24
	madd	x8, x25, x9, x8
	ldp	w9, w10, [x8, #8]
	add	w9, w10, w9
	sub	w10, w23, w24
	ldr	w11, [x8]
	sdiv	w10, w10, w11
	str	w9, [x8, #12]
	stp	w10, w24, [x8, #16]
	ldr	x8, [x27, #48]
	add	x8, x8, w10, sxtw
	str	x8, [x27, #48]
	str	x21, [sp, #-16]!
Lloh51:
	adrp	x0, l_.str.10@PAGE
Lloh52:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x27, #32]
	stp	x22, x8, [sp, #-16]!
Lloh53:
	adrp	x0, l_.str.11@PAGE
Lloh54:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldp	w8, w9, [x27]
	stp	x8, x9, [sp, #-16]!
Lloh55:
	adrp	x0, l_.str.12@PAGE
Lloh56:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldp	w28, w8, [x27]
                                        ; kill: def $w28 killed $w28 def $x28
	sxtw	x28, w28
	cmp	w28, w8
	b.le	LBB0_48
LBB0_47:
	str	xzr, [x27, #16]
	mov	x0, x20
	bl	_fclose
	mov	sp, x26
	mov	w0, #0
	b	LBB0_13
LBB0_48:
Lloh57:
	adrp	x21, l_.str.13@PAGE
Lloh58:
	add	x21, x21, l_.str.13@PAGEOFF
Lloh59:
	adrp	x23, l_.str.15@PAGE
Lloh60:
	add	x23, x23, l_.str.15@PAGEOFF
Lloh61:
	adrp	x24, l_.str.16@PAGE
Lloh62:
	add	x24, x24, l_.str.16@PAGEOFF
Lloh63:
	adrp	x25, l_.str.17@PAGE
Lloh64:
	add	x25, x25, l_.str.17@PAGEOFF
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_51 Depth=1
	ldr	w8, [x8, #20]
	str	x8, [sp, #-16]!
	mov	x0, x23
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x27, #24]
	ldr	x8, [x8, x22]
	ldr	w8, [x8, #12]
	str	x8, [sp, #-16]!
	mov	x0, x24
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x27, #24]
	ldr	x8, [x8, x22]
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
	mov	x0, x25
	bl	_printf
	add	sp, sp, #16
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x8, x28, #1
	ldrsw	x9, [x27, #4]
	cmp	x28, x9
	mov	x28, x8
	b.ge	LBB0_47
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, #24]
	lsl	x22, x28, #3
	ldr	x8, [x8, x22]
	stp	x28, x8, [sp, #-16]!
	mov	x0, x21
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x27, #24]
	ldr	x8, [x8, x22]
	cbnz	x8, LBB0_49
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
Lloh65:
	adrp	x0, l_str.19@PAGE
Lloh66:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
	b	LBB0_50
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdr	Lloh35, Lloh36
	.loh AdrpAdrp	Lloh33, Lloh35
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpAdrp	Lloh31, Lloh33
	.loh AdrpLdr	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"loading cue file %s\n"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_DIR_SEPARATOR_CHAR,1,0         ; @DIR_SEPARATOR_CHAR
	.comm	_cd_bin,56,3                    ; @cd_bin
l_.str.2:                               ; @.str.2
	.asciz	"can't open bin file: \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"found bin file: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"TRACK %d %s"

l_.str.5:                               ; @.str.5
	.asciz	"AUDIO"

l_.str.6:                               ; @.str.6
	.asciz	"MODE1/2352"

l_.str.7:                               ; @.str.7
	.asciz	"MODE1/2048"

l_.str.8:                               ; @.str.8
	.asciz	"PREGAP %d:%d:%d"

l_.str.9:                               ; @.str.9
	.asciz	"INDEX %d %d:%d:%d"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.10:                              ; @.str.10
	.asciz	"finished loading cue %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"bin file: %s (%p)\n"

l_.str.12:                              ; @.str.12
	.asciz	"first track: %d, last track: %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"track %d (%p):\n"

l_.str.15:                              ; @.str.15
	.asciz	"  physical offset 0x%x\n"

l_.str.16:                              ; @.str.16
	.asciz	"  sector offset 0x%x\n"

l_.str.17:                              ; @.str.17
	.asciz	"  sector size %d\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_str:                                  ; @str
	.asciz	"error: invalid/unsupported .cue file"

l_str.19:                               ; @str.19
	.asciz	"  (invalid)"

.subsections_via_symbols
