	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function read_srom_word
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_read_srom_word:                        ## @read_srom_word
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_DCR9@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_CR9_SROM_READ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_outl
	movq	_CR9_SRCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_outl
	movq	_SROM_DATA_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	movq	_SROM_DATA_0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	testb	$32, %r13b
	movq	%rbx, %rax
	cmoveq	%r12, %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	testb	$16, %r13b
	movq	%rbx, %rax
	cmoveq	%r12, %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %r15d
	testb	$8, %r15b
	movq	%rbx, %rax
	cmovneq	%r12, %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	testb	$4, %r15b
	movq	%rbx, %rax
	cmovneq	%r12, %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	testb	$2, %r15b
	movq	%rbx, %rax
	cmovneq	%r12, %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	testb	$1, %r15b
	cmovneq	%r12, %rbx
	movl	(%rbx), %r13d
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_SROM_CLK_WRITE
	movq	_CR9_SRCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CR9_SROM_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	%r14, %rsi
	callq	_outl
	movl	$17, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CR9_SRCS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_CR9_SROM_READ@GOTPCREL(%rip), %r15
	orl	(%r15), %edi
	movq	_CR9_SRCLK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	%r14, %rsi
	callq	_outl
	movl	$5, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_inl
	xorl	%ecx, %ecx
	movq	_CR9_CRDOUT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	setne	%cl
	leal	(%rcx,%r13,2), %r13d
	movl	(%r12), %edi
	orl	(%r15), %edi
	movq	%r14, %rsi
	callq	_outl
	movl	$5, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_1
## %bb.2:
	movq	_CR9_SROM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_outl
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCR9,8,3                       ## @DCR9
	.comm	_CR9_SROM_READ,4,2              ## @CR9_SROM_READ
	.comm	_CR9_SRCS,4,2                   ## @CR9_SRCS
	.comm	_SROM_DATA_1,4,2                ## @SROM_DATA_1
	.comm	_SROM_DATA_0,4,2                ## @SROM_DATA_0
	.comm	_CR9_SRCLK,4,2                  ## @CR9_SRCLK
	.comm	_CR9_CRDOUT,4,2                 ## @CR9_CRDOUT
	.no_dead_strip	_read_srom_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_srom_word
_read_srom_word:                        ; @read_srom_word
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
Lloh0:
	adrp	x8, _DCR9@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCR9@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x19, x8, x0
Lloh3:
	adrp	x21, _CR9_SROM_READ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CR9_SROM_READ@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_outl
	ldr	w8, [x21]
Lloh5:
	adrp	x22, _CR9_SRCS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CR9_SRCS@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w0, w9, w8
	mov	x1, x19
	bl	_outl
Lloh7:
	adrp	x23, _SROM_DATA_1@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SROM_DATA_1@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	ldr	w0, [x23]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
Lloh9:
	adrp	x24, _SROM_DATA_0@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SROM_DATA_0@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x20
	csel	x8, x24, x23, eq
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x10
	csel	x8, x24, x23, eq
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x8
	csel	x8, x24, x23, eq
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x4
	csel	x8, x24, x23, eq
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x2
	csel	x8, x24, x23, eq
	ldr	w0, [x8]
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	tst	w20, #0x1
	csel	x8, x24, x23, eq
	ldr	w20, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_SROM_CLK_WRITE
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w0, w9, w8
	mov	x1, x19
	bl	_outl
	mov	w23, #17
Lloh11:
	adrp	x24, _CR9_SRCLK@GOTPAGE
Lloh12:
	ldr	x24, [x24, _CR9_SRCLK@GOTPAGEOFF]
Lloh13:
	adrp	x25, _CR9_CRDOUT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _CR9_CRDOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w0, w8, w9
	mov	x1, x19
	bl	_outl
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	bl	_inl
	ldr	w8, [x25]
	tst	w8, w0
	cset	w8, ne
	bfi	w8, w20, #1, #31
	mov	x20, x8
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w0, w9, w8
	mov	x1, x19
	bl	_outl
	mov	w0, #5
	bl	_udelay
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_1
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_outl
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCR9,8,3                       ; @DCR9
	.comm	_CR9_SROM_READ,4,2              ; @CR9_SROM_READ
	.comm	_CR9_SRCS,4,2                   ; @CR9_SRCS
	.comm	_SROM_DATA_1,4,2                ; @SROM_DATA_1
	.comm	_SROM_DATA_0,4,2                ; @SROM_DATA_0
	.comm	_CR9_SRCLK,4,2                  ; @CR9_SRCLK
	.comm	_CR9_CRDOUT,4,2                 ; @CR9_CRDOUT
	.no_dead_strip	_read_srom_word
.subsections_via_symbols
