	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_get_mcn
_pcd_get_mcn:                           ## @pcd_get_mcn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_GPCMD_READ_SUBCHANNEL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -28(%rbp)
	movw	$16384, -27(%rbp)               ## imm = 0x4000
	movb	$2, -25(%rbp)
	movabsq	$103079215104, %rax             ## imm = 0x1800000000
	movq	%rax, -24(%rbp)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %r8
	leaq	-28(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	movl	$24, %edx
	callq	_pcd_atapi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %rdi
	leaq	-55(%rbp), %rsi
	movl	$13, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	$0, 104(%rax)
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCMD_READ_SUBCHANNEL,4,2      ## @GPCMD_READ_SUBCHANNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get mcn"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pcd_get_mcn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_get_mcn
_pcd_get_mcn:                           ; @pcd_get_mcn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	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, #-24]
Lloh3:
	adrp	x8, _GPCMD_READ_SUBCHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPCMD_READ_SUBCHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sturb	w8, [x29, #-36]
	mov	w8, #16384
	sturh	w8, [x29, #-35]
	mov	w8, #2
	sturb	w8, [x29, #-33]
	mov	x8, #103079215104
	stur	x8, [x29, #-32]
	ldr	w0, [x0]
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	add	x20, sp, #12
	sub	x1, x29, #36
	add	x3, sp, #12
	mov	w2, #24
	bl	_pcd_atapi
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19]
	add	x1, x20, #9
	mov	w2, #13
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x19]
	str	xzr, [x8, #104]
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCMD_READ_SUBCHANNEL,4,2      ; @GPCMD_READ_SUBCHANNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get mcn"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pcd_get_mcn
.subsections_via_symbols
