	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc417_register_read
_mc417_register_read:                   ## @mc417_register_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, %r15d
	movq	%rdi, %r13
	movq	_MCI_REGISTER_ADDRESS_BYTE0@GOTPCREL(%rip), %rax
	movl	%esi, %ecx
	shll	$8, %ecx
	movzwl	%cx, %ebx
	orl	(%rax), %ebx
	shll	$10, %ebx
	movl	%ebx, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movq	_ITVC_WRITE_DIR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_set_itvc_reg
	orl	$138240, %ebx                   ## imm = 0x21C00
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_set_itvc_reg
	movq	_MCI_REGISTER_ADDRESS_BYTE1@GOTPCREL(%rip), %rax
	andl	$65280, %r15d                   ## imm = 0xFF00
	orl	(%rax), %r15d
	shll	$10, %r15d
	movl	%r15d, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	orl	$138240, %r15d                  ## imm = 0x21C00
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_set_itvc_reg
	movq	_MCI_REGISTER_MODE@GOTPCREL(%rip), %rax
	movq	_MCI_MODE_REGISTER_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	shll	$10, %ebx
	movl	%ebx, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	orl	$138240, %ebx                   ## imm = 0x21C00
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_set_itvc_reg
	movq	%r13, %rdi
	callq	_wait_for_mci_complete
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MCI_REGISTER_DATA_BYTE0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movq	_ITVC_READ_DIR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$132096, %edx                   ## imm = 0x20400
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r12), %esi
	leaq	-44(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_get_itvc_reg
	movl	-44(%rbp), %eax
	shrl	$18, %eax
	movzbl	%al, %r15d
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$138240, %edx                   ## imm = 0x21C00
	callq	_set_itvc_reg
	movq	_MCI_REGISTER_DATA_BYTE1@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$132096, %edx                   ## imm = 0x20400
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_get_itvc_reg
	movl	-44(%rbp), %r14d
	shrl	$10, %r14d
	andl	$65280, %r14d                   ## imm = 0xFF00
	orl	%r15d, %r14d
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$138240, %edx                   ## imm = 0x21C00
	callq	_set_itvc_reg
	movq	_MCI_REGISTER_DATA_BYTE2@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$10, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r15), %edx
	shll	$10, %edx
	orl	$132096, %edx                   ## imm = 0x20400
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_get_itvc_reg
	movl	-44(%rbp), %r15d
	shrl	$2, %r15d
	andl	$16711680, %r15d                ## imm = 0xFF0000
	orl	%r14d, %r15d
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$138240, %edx                   ## imm = 0x21C00
	callq	_set_itvc_reg
	movq	_MCI_REGISTER_DATA_BYTE3@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$133120, %edx                   ## imm = 0x20800
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r14), %edx
	shll	$10, %edx
	orl	$132096, %edx                   ## imm = 0x20400
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_itvc_reg
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_get_itvc_reg
	movl	-44(%rbp), %ebx
	shll	$6, %ebx
	andl	$-16777216, %ebx                ## imm = 0xFF000000
	orl	%r15d, %ebx
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$138240, %edx                   ## imm = 0x21C00
	callq	_set_itvc_reg
	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	_MCI_REGISTER_ADDRESS_BYTE0,4,2 ## @MCI_REGISTER_ADDRESS_BYTE0
	.comm	_ITVC_WRITE_DIR,4,2             ## @ITVC_WRITE_DIR
	.comm	_MCI_REGISTER_ADDRESS_BYTE1,4,2 ## @MCI_REGISTER_ADDRESS_BYTE1
	.comm	_MCI_REGISTER_MODE,4,2          ## @MCI_REGISTER_MODE
	.comm	_MCI_MODE_REGISTER_READ,4,2     ## @MCI_MODE_REGISTER_READ
	.comm	_MCI_REGISTER_DATA_BYTE0,4,2    ## @MCI_REGISTER_DATA_BYTE0
	.comm	_ITVC_READ_DIR,4,2              ## @ITVC_READ_DIR
	.comm	_MCI_REGISTER_DATA_BYTE1,4,2    ## @MCI_REGISTER_DATA_BYTE1
	.comm	_MCI_REGISTER_DATA_BYTE2,4,2    ## @MCI_REGISTER_DATA_BYTE2
	.comm	_MCI_REGISTER_DATA_BYTE3,4,2    ## @MCI_REGISTER_DATA_BYTE3
	.no_dead_strip	_mc417_register_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc417_register_read
_mc417_register_read:                   ; @mc417_register_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MCI_REGISTER_ADDRESS_BYTE0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_REGISTER_ADDRESS_BYTE0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ubfiz	w9, w1, #8, #8
	orr	w8, w8, w9
	lsl	w23, w8, #10
	mov	w22, #2048
	movk	w22, #2, lsl #16
	orr	w2, w23, w22
Lloh3:
	adrp	x24, _ITVC_WRITE_DIR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ITVC_WRITE_DIR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_set_itvc_reg
	mov	w25, #7168
	movk	w25, #2, lsl #16
	orr	w2, w23, w25
	ldr	w1, [x24]
	mov	x0, x20
	bl	_set_itvc_reg
Lloh5:
	adrp	x8, _MCI_REGISTER_ADDRESS_BYTE1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MCI_REGISTER_ADDRESS_BYTE1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w9, w21, #0xff00
	orr	w8, w8, w9
	lsl	w21, w8, #10
	orr	w2, w21, w22
	ldr	w1, [x24]
	mov	x0, x20
	bl	_set_itvc_reg
	orr	w2, w21, w25
	ldr	w1, [x24]
	mov	x0, x20
	bl	_set_itvc_reg
Lloh8:
	adrp	x8, _MCI_REGISTER_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MCI_REGISTER_MODE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MCI_MODE_REGISTER_READ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MCI_MODE_REGISTER_READ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w21, w8, #10
	orr	w2, w21, w22
	ldr	w1, [x24]
	mov	x0, x20
	bl	_set_itvc_reg
	orr	w2, w21, w25
	ldr	w1, [x24]
	mov	x0, x20
	bl	_set_itvc_reg
	mov	x0, x20
	bl	_wait_for_mci_complete
	mov	x21, x0
Lloh14:
	adrp	x24, _MCI_REGISTER_DATA_BYTE0@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MCI_REGISTER_DATA_BYTE0@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w2, w22, w8, lsl #10
Lloh16:
	adrp	x23, _ITVC_READ_DIR@GOTPAGE
Lloh17:
	ldr	x23, [x23, _ITVC_READ_DIR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w8, [x24]
	sub	w24, w22, #1024
	orr	w2, w24, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_itvc_reg
	ldr	w25, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7168
	movk	w2, #2, lsl #16
	bl	_set_itvc_reg
Lloh18:
	adrp	x26, _MCI_REGISTER_DATA_BYTE1@GOTPAGE
Lloh19:
	ldr	x26, [x26, _MCI_REGISTER_DATA_BYTE1@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w2, w22, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w8, [x26]
	orr	w2, w24, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_itvc_reg
	ldr	w8, [sp, #12]
	lsr	w8, w8, #10
	and	w26, w8, #0xff00
	bfxil	w26, w25, #18, #8
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7168
	movk	w2, #2, lsl #16
	bl	_set_itvc_reg
Lloh20:
	adrp	x25, _MCI_REGISTER_DATA_BYTE2@GOTPAGE
Lloh21:
	ldr	x25, [x25, _MCI_REGISTER_DATA_BYTE2@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w2, w22, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w8, [x25]
	orr	w2, w24, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_itvc_reg
	ldr	w8, [sp, #12]
	lsr	w8, w8, #2
	and	w8, w8, #0xff0000
	orr	w25, w26, w8
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7168
	movk	w2, #2, lsl #16
	bl	_set_itvc_reg
Lloh22:
	adrp	x26, _MCI_REGISTER_DATA_BYTE3@GOTPAGE
Lloh23:
	ldr	x26, [x26, _MCI_REGISTER_DATA_BYTE3@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w2, w22, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w8, [x26]
	orr	w2, w24, w8, lsl #10
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_set_itvc_reg
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_itvc_reg
	ldr	w8, [sp, #12]
	lsr	w8, w8, #18
	bfi	w25, w8, #24, #8
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7168
	movk	w2, #2, lsl #16
	bl	_set_itvc_reg
	str	w25, [x19]
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_REGISTER_ADDRESS_BYTE0,4,2 ; @MCI_REGISTER_ADDRESS_BYTE0
	.comm	_ITVC_WRITE_DIR,4,2             ; @ITVC_WRITE_DIR
	.comm	_MCI_REGISTER_ADDRESS_BYTE1,4,2 ; @MCI_REGISTER_ADDRESS_BYTE1
	.comm	_MCI_REGISTER_MODE,4,2          ; @MCI_REGISTER_MODE
	.comm	_MCI_MODE_REGISTER_READ,4,2     ; @MCI_MODE_REGISTER_READ
	.comm	_MCI_REGISTER_DATA_BYTE0,4,2    ; @MCI_REGISTER_DATA_BYTE0
	.comm	_ITVC_READ_DIR,4,2              ; @ITVC_READ_DIR
	.comm	_MCI_REGISTER_DATA_BYTE1,4,2    ; @MCI_REGISTER_DATA_BYTE1
	.comm	_MCI_REGISTER_DATA_BYTE2,4,2    ; @MCI_REGISTER_DATA_BYTE2
	.comm	_MCI_REGISTER_DATA_BYTE3,4,2    ; @MCI_REGISTER_DATA_BYTE3
	.no_dead_strip	_mc417_register_read
.subsections_via_symbols
