	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_mmc3_profile
_cdrom_mmc3_profile:                    ## @cdrom_mmc3_profile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_CGC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %r14
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_init_cdrom_command
	movq	_GPCMD_GET_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	$0, 4(%rcx)
	movl	$0, 12(%rcx)
	movl	$32, 32(%rcx)
	movl	$1, -72(%rbp)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movsbl	-58(%rbp), %ecx
	shll	$8, %ecx
	movsbl	-57(%rbp), %edx
	orl	%ecx, %edx
	testl	%eax, %eax
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovel	%edx, %eax
	movl	%eax, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_READ,4,2              ## @CGC_DATA_READ
	.comm	_GPCMD_GET_CONFIGURATION,4,2    ## @GPCMD_GET_CONFIGURATION
	.no_dead_strip	_cdrom_mmc3_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_mmc3_profile
_cdrom_mmc3_profile:                    ; @cdrom_mmc3_profile
	.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, x0
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, _CGC_DATA_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CGC_DATA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w20, #32
	add	x0, sp, #8
	add	x1, sp, #24
	mov	w2, #32
	bl	_init_cdrom_command
Lloh6:
	adrp	x8, _GPCMD_GET_CONFIGURATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPCMD_GET_CONFIGURATION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	str	xzr, [x9, #8]
	stp	w8, wzr, [x9]
	str	w20, [x9, #32]
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldrsb	w8, [sp, #30]
	ldrsb	w9, [sp, #31]
	orr	w8, w9, w8, lsl #8
	mov	w9, #65535
	cmp	w0, #0
	csel	w8, w8, w9, eq
	str	w8, [x19]
	ldur	x8, [x29, #-24]
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_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_READ,4,2              ; @CGC_DATA_READ
	.comm	_GPCMD_GET_CONFIGURATION,4,2    ; @GPCMD_GET_CONFIGURATION
	.no_dead_strip	_cdrom_mmc3_profile
.subsections_via_symbols
