	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc417_memory_read              ## -- Begin function mc417_memory_read
	.p2align	4, 0x90
_mc417_memory_read:                     ## @mc417_memory_read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MC417_OEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MC417_MIRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r14
	callq	_cx_write
	movq	_MC417_MIRD@GOTPCREL(%rip), %rdx
	movq	_MCI_MEMORY_ADDRESS_BYTE2@GOTPCREL(%rip), %rax
	movq	_MCI_MODE_MEMORY_READ@GOTPCREL(%rip), %rcx
	movl	%r12d, %ebx
	shrl	$16, %ebx
	andl	$63, %ebx
	orl	(%rdx), %ebx
	movq	%rdx, %r15
	orl	(%r14), %ebx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_MC417_RWD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movq	_MC417_MICS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%rax, %r13
	movq	_MC417_MIWR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movl	%r12d, %eax
	movzbl	%ah, %ebx
	orl	(%r15), %ebx
	movq	_MC417_MIRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MCI_MEMORY_ADDRESS_BYTE1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	orl	(%r13), %ebx
	movq	_MC417_MIWR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movzbl	%r12b, %ebx
	orl	(%r15), %ebx
	movq	_MC417_MIRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MCI_MEMORY_ADDRESS_BYTE0@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	orl	(%r13), %ebx
	movq	_MC417_MIWR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mc417_wait_ready
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MC417_OEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MC417_MIDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MC417_MIRDY@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	callq	_cx_write
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	%r15, %r13
	movq	_MCI_MEMORY_DATA_BYTE3@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	movq	_MC417_MIWR@GOTPCREL(%rip), %r15
	orl	(%r15), %esi
	orl	(%rbx), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r14), %edi
	callq	_cx_read
	movl	%eax, %ebx
	movl	(%r13), %esi
	orl	(%r15), %esi
	movq	_MC417_MICS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	shll	$24, %ebx
	orl	(%r12), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	orl	(%r13), %esi
	movq	_MCI_MEMORY_DATA_BYTE2@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	orl	(%r15), %esi
	orl	(%r13), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r14), %edi
	callq	_cx_read
	movzbl	%al, %r13d
	shll	$16, %r13d
	movq	_MC417_MIRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	_MC417_MICS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	%ebx, %r13d
	orl	(%r12), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	movq	_MC417_MIRD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MCI_MEMORY_DATA_BYTE1@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	%r15, %r12
	orl	(%rbx), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r14), %edi
	callq	_cx_read
	shll	$8, %eax
	movzwl	%ax, %r15d
	movq	_MC417_MIRD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r12), %esi
	movq	_MC417_MICS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	%r13d, %r15d
	movq	_MC417_MIRDY@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	orl	(%rbx), %esi
	movq	_MCI_MEMORY_DATA_BYTE0@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r12), %esi
	movq	_MC417_MIWR@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	orl	(%r13), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movl	(%r14), %edi
	callq	_cx_read
	movzbl	%al, %ebx
	movq	_MC417_MIRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	movq	_MC417_MICS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	%r15d, %ebx
	movq	_MC417_MIRDY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r14), %edi
	callq	_cx_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC417_OEN,4,2                  ## @MC417_OEN
	.comm	_MC417_MIRDY,4,2                ## @MC417_MIRDY
	.comm	_MC417_MIRD,4,2                 ## @MC417_MIRD
	.comm	_MCI_MEMORY_ADDRESS_BYTE2,4,2   ## @MCI_MEMORY_ADDRESS_BYTE2
	.comm	_MCI_MODE_MEMORY_READ,4,2       ## @MCI_MODE_MEMORY_READ
	.comm	_MC417_RWD,4,2                  ## @MC417_RWD
	.comm	_MC417_MICS,4,2                 ## @MC417_MICS
	.comm	_MC417_MIWR,4,2                 ## @MC417_MIWR
	.comm	_MCI_MEMORY_ADDRESS_BYTE1,4,2   ## @MCI_MEMORY_ADDRESS_BYTE1
	.comm	_MCI_MEMORY_ADDRESS_BYTE0,4,2   ## @MCI_MEMORY_ADDRESS_BYTE0
	.comm	_MC417_MIDATA,4,2               ## @MC417_MIDATA
	.comm	_MCI_MEMORY_DATA_BYTE3,4,2      ## @MCI_MEMORY_DATA_BYTE3
	.comm	_MCI_MEMORY_DATA_BYTE2,4,2      ## @MCI_MEMORY_DATA_BYTE2
	.comm	_MCI_MEMORY_DATA_BYTE1,4,2      ## @MCI_MEMORY_DATA_BYTE1
	.comm	_MCI_MEMORY_DATA_BYTE0,4,2      ## @MCI_MEMORY_DATA_BYTE0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc417_memory_read              ; -- Begin function mc417_memory_read
	.p2align	2
_mc417_memory_read:                     ; @mc417_memory_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x28, _MC417_OEN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MC417_OEN@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x23, _MC417_MIRDY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MC417_MIRDY@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_cx_write
Lloh4:
	adrp	x24, _MC417_MIRD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MC417_MIRD@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x23]
Lloh6:
	adrp	x10, _MCI_MEMORY_ADDRESS_BYTE2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MCI_MEMORY_ADDRESS_BYTE2@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MCI_MODE_MEMORY_READ@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MCI_MODE_MEMORY_READ@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	ubfx	w12, w21, #16, #6
	orr	w8, w8, w12
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w22, w8, w11
Lloh12:
	adrp	x25, _MC417_RWD@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MC417_RWD@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x22
	bl	_cx_write
Lloh14:
	adrp	x26, _MC417_MICS@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MC417_MICS@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh16:
	adrp	x27, _MC417_MIWR@GOTPAGE
Lloh17:
	ldr	x27, [x27, _MC417_MIWR@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w22
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
Lloh18:
	adrp	x10, _MCI_MEMORY_ADDRESS_BYTE1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MCI_MEMORY_ADDRESS_BYTE1@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	ubfx	w11, w21, #8, #8
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w22, w8, w10
	ldr	w0, [x25]
	mov	x1, x22
	bl	_cx_write
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w8, w22
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
Lloh21:
	adrp	x10, _MCI_MEMORY_ADDRESS_BYTE0@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MCI_MEMORY_ADDRESS_BYTE0@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w11, w21, #0xff
	orr	w8, w8, w11
	orr	w8, w8, w9
	orr	w21, w8, w10
	ldr	w0, [x25]
	mov	x1, x21
	bl	_cx_write
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w8, w21
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	mov	x0, x20
	bl	_mc417_wait_ready
	mov	x20, x0
	ldr	w0, [x28]
	ldr	w8, [x23]
Lloh24:
	adrp	x9, _MC417_MIDATA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MC417_MIDATA@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh27:
	adrp	x21, _MCI_MEMORY_DATA_BYTE3@GOTPAGE
Lloh28:
	ldr	x21, [x21, _MCI_MEMORY_DATA_BYTE3@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w0, [x25]
	bl	_cx_read
	lsl	w21, w0, #24
	ldr	w8, [x27]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh29:
	adrp	x22, _MCI_MEMORY_DATA_BYTE2@GOTPAGE
Lloh30:
	ldr	x22, [x22, _MCI_MEMORY_DATA_BYTE2@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w0, [x25]
	bl	_cx_read
	bfi	w21, w0, #16, #8
	ldr	w8, [x27]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh31:
	adrp	x22, _MCI_MEMORY_DATA_BYTE1@GOTPAGE
Lloh32:
	ldr	x22, [x22, _MCI_MEMORY_DATA_BYTE1@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w0, [x25]
	bl	_cx_read
	bfi	w21, w0, #8, #8
	ldr	w8, [x27]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh33:
	adrp	x22, _MCI_MEMORY_DATA_BYTE0@GOTPAGE
Lloh34:
	ldr	x22, [x22, _MCI_MEMORY_DATA_BYTE0@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	ldr	w0, [x25]
	bl	_cx_read
	bfxil	w21, w0, #0, #8
	ldr	w8, [x27]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w1, w8, w9
	ldr	w0, [x25]
	bl	_cx_write
	str	w21, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MC417_OEN,4,2                  ; @MC417_OEN
	.comm	_MC417_MIRDY,4,2                ; @MC417_MIRDY
	.comm	_MC417_MIRD,4,2                 ; @MC417_MIRD
	.comm	_MCI_MEMORY_ADDRESS_BYTE2,4,2   ; @MCI_MEMORY_ADDRESS_BYTE2
	.comm	_MCI_MODE_MEMORY_READ,4,2       ; @MCI_MODE_MEMORY_READ
	.comm	_MC417_RWD,4,2                  ; @MC417_RWD
	.comm	_MC417_MICS,4,2                 ; @MC417_MICS
	.comm	_MC417_MIWR,4,2                 ; @MC417_MIWR
	.comm	_MCI_MEMORY_ADDRESS_BYTE1,4,2   ; @MCI_MEMORY_ADDRESS_BYTE1
	.comm	_MCI_MEMORY_ADDRESS_BYTE0,4,2   ; @MCI_MEMORY_ADDRESS_BYTE0
	.comm	_MC417_MIDATA,4,2               ; @MC417_MIDATA
	.comm	_MCI_MEMORY_DATA_BYTE3,4,2      ; @MCI_MEMORY_DATA_BYTE3
	.comm	_MCI_MEMORY_DATA_BYTE2,4,2      ; @MCI_MEMORY_DATA_BYTE2
	.comm	_MCI_MEMORY_DATA_BYTE1,4,2      ; @MCI_MEMORY_DATA_BYTE1
	.comm	_MCI_MEMORY_DATA_BYTE0,4,2      ; @MCI_MEMORY_DATA_BYTE0
.subsections_via_symbols
