	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_read_track_info
_cdrom_read_track_info:                 ## @cdrom_read_track_info
	.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	%r12
	pushq	%rbx
	subq	$432, %rsp                      ## imm = 0x1B0
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movabsq	$72057594037928274, %rax        ## imm = 0x100000000000152
	movq	%rax, -56(%rbp)
	movw	$128, -48(%rbp)
	leaq	-448(%rbp), %r12
	movl	$384, %esi                      ## imm = 0x180
	movq	%r12, %rdi
	callq	___bzero
	movl	$0, -456(%rbp)
	movl	$0, -452(%rbp)
	movb	%r15b, -51(%rbp)
	movq	_DIRECTION_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$384, %ecx                      ## imm = 0x180
	movl	$10, %r9d
	callq	_cdrom_send_command
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.1:
	leaq	-440(%rbp), %rsi
	leaq	-456(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	-424(%rbp), %rsi
	leaq	-452(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-456(%rbp), %edi
	callq	_swap_if_little32
	movl	%eax, -456(%rbp)
	movl	-452(%rbp), %edi
	callq	_swap_if_little32
	movl	%eax, -452(%rbp)
	movl	-456(%rbp), %esi
	movq	(%r14), %rcx
	movzbl	%r15b, %edx
	decq	%rdx
	shlq	$5, %rdx
	movl	%esi, (%rcx,%rdx)
	movl	-452(%rbp), %eax
	movl	%eax, 4(%rcx,%rdx)
	xorl	%eax, %eax
	cmpq	$0, 24(%rcx,%rdx)
	movl	$0, %edi
	jne	LBB0_3
## %bb.2:
	subl	8(%rcx,%rdx), %esi
	movl	%esi, %edi
LBB0_3:
	addl	-452(%rbp), %edi
	imull	$2352, %edi, %esi               ## imm = 0x930
	movl	%esi, 12(%rcx,%rdx)
	movb	-442(%rbp), %bl
	andb	$15, %bl
	movb	%bl, 16(%rcx,%rdx)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$432, %rsp                      ## imm = 0x1B0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_read_track_info.cdb:    ## @__const.cdrom_read_track_info.cdb
	.asciz	"R\001\000\000\000\000\000\001\200"

	.comm	_DIRECTION_IN,4,2               ## @DIRECTION_IN
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_cdrom_read_track_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_read_track_info
_cdrom_read_track_info:                 ; @cdrom_read_track_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l___const.cdrom_read_track_info.cdb@PAGE
Lloh4:
	add	x8, x8, l___const.cdrom_read_track_info.cdb@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #128
	sturh	w8, [x29, #-48]
	add	x8, sp, #16
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #352]
	stp	q0, q0, [x8, #320]
	stp	q0, q0, [x8, #288]
	stp	q0, q0, [x8, #256]
	stp	q0, q0, [x8, #224]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	xzr, [sp, #8]
	sturb	w1, [x29, #-51]
Lloh6:
	adrp	x8, _DIRECTION_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRECTION_IN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x21, sp, #16
	add	x2, sp, #16
	sub	x4, x29, #56
	mov	w3, #384
	mov	w5, #10
	mov	w6, #0
	bl	_cdrom_send_command
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	orr	x1, x21, #0x8
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x1, x21, #24
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_swap_if_little32
	str	w0, [sp, #12]
	ldr	w0, [sp, #8]
	bl	_swap_if_little32
	str	w0, [sp, #8]
	ldr	w9, [sp, #12]
	ldr	x8, [x20]
	mov	w10, w19
	sub	x10, x10, #1
	add	x8, x8, x10, lsl #5
	str	w9, [x8]
	ldr	w10, [sp, #8]
	str	w10, [x8, #4]
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_4
; %bb.3:
	mov	w9, #0
	b	LBB0_5
LBB0_4:
	ldr	w10, [x8, #8]
	sub	w9, w9, w10
LBB0_5:
	mov	w0, #0
	ldr	w10, [sp, #8]
	add	w9, w10, w9
	mov	w10, #2352
	mul	w9, w9, w10
	str	w9, [x8, #12]
	ldrb	w9, [sp, #22]
	and	w9, w9, #0xf
	strb	w9, [x8, #16]
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_read_track_info.cdb:    ; @__const.cdrom_read_track_info.cdb
	.asciz	"R\001\000\000\000\000\000\001\200"

	.comm	_DIRECTION_IN,4,2               ; @DIRECTION_IN
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_cdrom_read_track_info
.subsections_via_symbols
