	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_proto_sram
_dump_proto_sram:                       ## @dump_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PROTO_SRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leal	(,%rbx,4), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_bzero
	movq	_PROTO_SRAM_EEPROM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	%r12, -64(%rbp)
	movl	%r15d, -56(%rbp)
	movq	_CHELSIO_GET_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_doit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_PROTO_SRAM_LINES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_PROTO_SRAM_LINE_NIBBLES@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_putchar
	incl	%ebx
	movq	_PROTO_SRAM_LINES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ebx, %eax
	leal	(%r15,%rax), %ecx
	addl	%r15d, %eax
	decl	%eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %ecx
	decl	%ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %esi
	movl	%esi, %ecx
	sarl	$4, %ecx
	andl	$15, %esi
	testb	$1, %al
	cmovnel	%ecx, %esi
	movq	%r14, %rdi
	callq	_printf
	cmpl	$2, %r15d
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r13), %eax
	decl	%r15d
	jmp	LBB0_6
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_SRAM_SIZE,4,2            ## @PROTO_SRAM_SIZE
	.comm	_PROTO_SRAM_EEPROM_ADDR,4,2     ## @PROTO_SRAM_EEPROM_ADDR
	.comm	_CHELSIO_GET_EEPROM,4,2         ## @CHELSIO_GET_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"show protocol sram"

	.comm	_PROTO_SRAM_LINES,4,2           ## @PROTO_SRAM_LINES
	.comm	_PROTO_SRAM_LINE_NIBBLES,4,2    ## @PROTO_SRAM_LINE_NIBBLES
L_.str.1:                               ## @.str.1
	.asciz	"%x"

	.no_dead_strip	_dump_proto_sram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_proto_sram
_dump_proto_sram:                       ; @dump_proto_sram
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PROTO_SRAM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROTO_SRAM_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	lsl	w21, w12, #2
	mov	x0, x19
	mov	x1, x21
	bl	_bzero
Lloh8:
	adrp	x8, _PROTO_SRAM_EEPROM_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROTO_SRAM_EEPROM_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	x19, [x29, #-72]
	stp	w21, w8, [x29, #-64]
Lloh11:
	adrp	x8, _CHELSIO_GET_EEPROM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHELSIO_GET_EEPROM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	sub	x2, x29, #72
	mov	x0, x20
	bl	_doit
	cbz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh16:
	adrp	x21, _PROTO_SRAM_LINES@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PROTO_SRAM_LINES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w22, #0
Lloh18:
	adrp	x23, _PROTO_SRAM_LINE_NIBBLES@GOTPAGE
Lloh19:
	ldr	x23, [x23, _PROTO_SRAM_LINE_NIBBLES@GOTPAGEOFF]
Lloh20:
	adrp	x20, l_.str.1@PAGE
Lloh21:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_putchar
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x8
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w8, w22, w8, w24
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #1
	ldr	w8, [x19, w8, sxtw #2]
	asr	w10, w8, #4
	and	w8, w8, #0xf
	tst	w9, #0x1
	csel	w1, w8, w10, eq
	mov	x0, x20
	bl	_printf
	cmp	w24, #2
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x23]
	sub	w24, w24, #1
	b	LBB0_7
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_SRAM_SIZE,4,2            ; @PROTO_SRAM_SIZE
	.comm	_PROTO_SRAM_EEPROM_ADDR,4,2     ; @PROTO_SRAM_EEPROM_ADDR
	.comm	_CHELSIO_GET_EEPROM,4,2         ; @CHELSIO_GET_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"show protocol sram"

	.comm	_PROTO_SRAM_LINES,4,2           ; @PROTO_SRAM_LINES
	.comm	_PROTO_SRAM_LINE_NIBBLES,4,2    ; @PROTO_SRAM_LINE_NIBBLES
l_.str.1:                               ; @.str.1
	.asciz	"%x"

	.no_dead_strip	_dump_proto_sram
.subsections_via_symbols
