	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_read_subchannel
_cdrom_read_subchannel:                 ## @cdrom_read_subchannel
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_CGC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-96(%rbp), %r12
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_init_cdrom_command
	movq	_GPCMD_READ_SUBCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx
	movl	%eax, (%rcx)
	movabsq	$274877906946, %rax             ## imm = 0x4000000002
	movq	%rax, 4(%rcx)
	cmpl	$1, %r15d
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, 12(%rcx)
	movl	$16, 32(%rcx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%r13)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-88(%rbp), %rcx
	movl	4(%rcx), %edx
	movl	%edx, (%rbx)
	movq	_CDROM_MSF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 40(%rbx)
	movl	20(%rcx), %edx
	andl	$15, %edx
	movl	%edx, 4(%rbx)
	movl	24(%rcx), %edx
	movl	%edx, 8(%rbx)
	movl	28(%rcx), %edx
	movl	%edx, 12(%rbx)
	movl	52(%rcx), %edx
	movl	%edx, 28(%rbx)
	movl	56(%rcx), %edx
	movl	%edx, 32(%rbx)
	movl	60(%rcx), %edx
	movl	%edx, 36(%rbx)
	movl	36(%rcx), %edx
	movl	%edx, 16(%rbx)
	movl	40(%rcx), %edx
	movl	%edx, 20(%rbx)
	movl	44(%rcx), %ecx
	movl	%ecx, 24(%rbx)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_READ,4,2              ## @CGC_DATA_READ
	.comm	_GPCMD_READ_SUBCHANNEL,4,2      ## @GPCMD_READ_SUBCHANNEL
	.comm	_CDROM_MSF,4,2                  ## @CDROM_MSF
	.no_dead_strip	_cdrom_read_subchannel
.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 cdrom_read_subchannel
lCPI0_0:
	.long	2                               ; 0x2
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cdrom_read_subchannel:                 ; @cdrom_read_subchannel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _CGC_DATA_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CGC_DATA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w23, #16
	add	x0, sp, #8
	add	x1, sp, #24
	mov	w2, #16
	bl	_init_cdrom_command
Lloh6:
	adrp	x8, _GPCMD_READ_SUBCHANNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPCMD_READ_SUBCHANNEL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	w8, [x9]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x9, #4]
	cmp	w20, #0
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [x9, #12]
	str	w23, [x9, #32]
	ldr	x8, [x22]
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	w9, [x8, #4]
	str	w9, [x19]
Lloh11:
	adrp	x9, _CDROM_MSF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CDROM_MSF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x19, #40]
	ldr	w9, [x8, #20]
	and	w9, w9, #0xf
	str	w9, [x19, #4]
	ldr	w9, [x8, #24]
	str	w9, [x19, #8]
	ldr	w9, [x8, #28]
	str	w9, [x19, #12]
	ldr	w9, [x8, #52]
	str	w9, [x19, #28]
	ldr	w9, [x8, #56]
	str	w9, [x19, #32]
	ldr	w9, [x8, #60]
	str	w9, [x19, #36]
	ldr	w9, [x8, #36]
	str	w9, [x19, #16]
	ldr	w9, [x8, #40]
	str	w9, [x19, #20]
	ldr	w8, [x8, #44]
	str	w8, [x19, #24]
LBB0_2:
	ldr	x8, [sp, #56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_READ,4,2              ; @CGC_DATA_READ
	.comm	_GPCMD_READ_SUBCHANNEL,4,2      ; @GPCMD_READ_SUBCHANNEL
	.comm	_CDROM_MSF,4,2                  ; @CDROM_MSF
	.no_dead_strip	_cdrom_read_subchannel
.subsections_via_symbols
