	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_set_proto_sram              ## -- Begin function t3_set_proto_sram
	.p2align	4, 0x90
_t3_set_proto_sram:                     ## @t3_set_proto_sram
	.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
	movq	%rdi, %r14
	movq	_PROTO_SRAM_LINES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_A_TP_EMBED_OP_FIELD5@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_TP_EMBED_OP_FIELD4@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_TP_EMBED_OP_FIELD3@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_TP_EMBED_OP_FIELD2@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_TP_EMBED_OP_FIELD1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_t3_write_reg
	movq	_A_TP_EMBED_OP_FIELD0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r13d, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movq	%r14, %rdi
	callq	_t3_write_reg
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$5, %r8d
	movl	$1, %r9d
	callq	_t3_wait_op_done
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	addl	$2, %r13d
	addq	$20, %rbx
	movq	_PROTO_SRAM_LINES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_2
LBB0_5:
	movq	_A_TP_EMBED_OP_FIELD0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_SRAM_LINES,4,2           ## @PROTO_SRAM_LINES
	.comm	_A_TP_EMBED_OP_FIELD5,4,2       ## @A_TP_EMBED_OP_FIELD5
	.comm	_A_TP_EMBED_OP_FIELD4,4,2       ## @A_TP_EMBED_OP_FIELD4
	.comm	_A_TP_EMBED_OP_FIELD3,4,2       ## @A_TP_EMBED_OP_FIELD3
	.comm	_A_TP_EMBED_OP_FIELD2,4,2       ## @A_TP_EMBED_OP_FIELD2
	.comm	_A_TP_EMBED_OP_FIELD1,4,2       ## @A_TP_EMBED_OP_FIELD1
	.comm	_A_TP_EMBED_OP_FIELD0,4,2       ## @A_TP_EMBED_OP_FIELD0
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_set_proto_sram              ; -- Begin function t3_set_proto_sram
	.p2align	2
_t3_set_proto_sram:                     ; @t3_set_proto_sram
	.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, x0
Lloh0:
	adrp	x22, _PROTO_SRAM_LINES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PROTO_SRAM_LINES@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _A_TP_EMBED_OP_FIELD0@GOTPAGE
Lloh3:
	ldr	x23, [x23, _A_TP_EMBED_OP_FIELD0@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	w24, #0
	mov	w25, #0
Lloh4:
	adrp	x28, _A_TP_EMBED_OP_FIELD3@GOTPAGE
Lloh5:
	ldr	x28, [x28, _A_TP_EMBED_OP_FIELD3@GOTPAGEOFF]
Lloh6:
	adrp	x26, _A_TP_EMBED_OP_FIELD2@GOTPAGE
Lloh7:
	ldr	x26, [x26, _A_TP_EMBED_OP_FIELD2@GOTPAGEOFF]
Lloh8:
	adrp	x27, _A_TP_EMBED_OP_FIELD1@GOTPAGE
Lloh9:
	ldr	x27, [x27, _A_TP_EMBED_OP_FIELD1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh10:
	adrp	x8, _A_TP_EMBED_OP_FIELD5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _A_TP_EMBED_OP_FIELD5@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
Lloh13:
	adrp	x8, _A_TP_EMBED_OP_FIELD4@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_TP_EMBED_OP_FIELD4@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	w21, [x28]
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	w21, [x26]
	ldr	w0, [x20, #12]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	w21, [x27]
	ldr	w0, [x20, #16]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_t3_write_reg
	ldr	w1, [x23]
	orr	w2, w24, #0x80000000
	mov	x0, x19
	bl	_t3_write_reg
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #5
	mov	w5, #1
	bl	_t3_wait_op_done
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	ldr	w8, [x22]
	add	w24, w24, #2
	add	x20, x20, #20
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_4:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_t3_write_reg
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_SRAM_LINES,4,2           ; @PROTO_SRAM_LINES
	.comm	_A_TP_EMBED_OP_FIELD5,4,2       ; @A_TP_EMBED_OP_FIELD5
	.comm	_A_TP_EMBED_OP_FIELD4,4,2       ; @A_TP_EMBED_OP_FIELD4
	.comm	_A_TP_EMBED_OP_FIELD3,4,2       ; @A_TP_EMBED_OP_FIELD3
	.comm	_A_TP_EMBED_OP_FIELD2,4,2       ; @A_TP_EMBED_OP_FIELD2
	.comm	_A_TP_EMBED_OP_FIELD1,4,2       ; @A_TP_EMBED_OP_FIELD1
	.comm	_A_TP_EMBED_OP_FIELD0,4,2       ; @A_TP_EMBED_OP_FIELD0
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
