	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menelaus_mmc_cd_work
_menelaus_mmc_cd_work:                  ## @menelaus_mmc_cd_work
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MENELAUS_MCT_PIN_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_menelaus_read_reg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	testb	$1, %al
	movq	_MCT_PIN_ST_S1_CD_ST@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %esi
	cmovnel	%edx, %esi
	testb	$2, %al
	movq	_MCT_PIN_ST_S2_CD_ST@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovnel	%edx, %eax
	orl	%esi, %eax
	movl	(%rbx), %edi
	movzbl	%al, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENELAUS_MCT_PIN_ST,4,2        ## @MENELAUS_MCT_PIN_ST
	.comm	_MCT_PIN_ST_S1_CD_ST,1,0        ## @MCT_PIN_ST_S1_CD_ST
	.comm	_MCT_PIN_ST_S2_CD_ST,1,0        ## @MCT_PIN_ST_S2_CD_ST
	.no_dead_strip	_menelaus_mmc_cd_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menelaus_mmc_cd_work
_menelaus_mmc_cd_work:                  ; @menelaus_mmc_cd_work
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _MENELAUS_MCT_PIN_ST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENELAUS_MCT_PIN_ST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_menelaus_read_reg
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MCT_PIN_ST_S1_CD_ST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCT_PIN_ST_S1_CD_ST@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w0, #0x1
	csel	w8, w8, wzr, eq
Lloh5:
	adrp	x9, _MCT_PIN_ST_S2_CD_ST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MCT_PIN_ST_S2_CD_ST@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w0, #0x2
	csel	w9, w9, wzr, eq
	orr	w8, w9, w8
	ldr	w0, [x19]
	and	w1, w8, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MENELAUS_MCT_PIN_ST,4,2        ; @MENELAUS_MCT_PIN_ST
	.comm	_MCT_PIN_ST_S1_CD_ST,1,0        ; @MCT_PIN_ST_S1_CD_ST
	.comm	_MCT_PIN_ST_S2_CD_ST,1,0        ; @MCT_PIN_ST_S2_CD_ST
	.no_dead_strip	_menelaus_mmc_cd_work
.subsections_via_symbols
