	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_vpath_eprom_img_ver_get ## -- Begin function vxge_hw_vpath_eprom_img_ver_get
	.p2align	4, 0x90
_vxge_hw_vpath_eprom_img_ver_get:       ## @vxge_hw_vpath_eprom_img_ver_get
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_VXGE_HW_MAX_ROM_IMAGES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	shlq	$2, %r14
	addq	8(%rdi), %r14
	addq	$12, %rbx
	xorl	%r15d, %r15d
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_VXGE_HW_RTS_ACCESS_STEER_ROM_IMAGE_INDEX
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_VXGE_HW_FW_API_GET_EPROM_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	leaq	-64(%rbp), %r9
	callq	_vxge_hw_vpath_fw_api
	movl	%eax, %r12d
	cmpl	(%r13), %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	callq	_VXGE_HW_GET_EPROM_IMAGE_VALID
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rdi
	callq	_VXGE_HW_GET_EPROM_IMAGE_INDEX
	movl	%eax, -4(%rbx)
	movq	-48(%rbp), %rdi
	callq	_VXGE_HW_GET_EPROM_IMAGE_TYPE
	movl	%eax, -8(%rbx)
	movq	-48(%rbp), %rdi
	callq	_VXGE_HW_GET_EPROM_IMAGE_REV
	movl	%eax, -12(%rbx)
	incq	%r15
	movq	_VXGE_HW_MAX_ROM_IMAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_HW_MAX_ROM_IMAGES,4,2     ## @VXGE_HW_MAX_ROM_IMAGES
	.comm	_VXGE_HW_FW_API_GET_EPROM_REV,4,2 ## @VXGE_HW_FW_API_GET_EPROM_REV
	.comm	_VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO,4,2 ## @VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO
	.comm	_VXGE_HW_OK,4,2                 ## @VXGE_HW_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_vpath_eprom_img_ver_get ; -- Begin function vxge_hw_vpath_eprom_img_ver_get
	.p2align	2
_vxge_hw_vpath_eprom_img_ver_get:       ; @vxge_hw_vpath_eprom_img_ver_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x22, _VXGE_HW_MAX_ROM_IMAGES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VXGE_HW_MAX_ROM_IMAGES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, #0
	ldp	x9, x8, [x0]
	add	x20, x8, x9, lsl #2
	add	x23, x1, #8
Lloh2:
	adrp	x24, _VXGE_HW_FW_API_GET_EPROM_REV@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VXGE_HW_FW_API_GET_EPROM_REV@GOTPAGEOFF]
Lloh4:
	adrp	x25, _VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO@GOTPAGEOFF]
Lloh6:
	adrp	x26, _VXGE_HW_OK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VXGE_HW_OK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_VXGE_HW_RTS_ACCESS_STEER_ROM_IMAGE_INDEX
	stp	xzr, x0, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	x4, sp, #24
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_vxge_hw_vpath_fw_api
	mov	x21, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #24]
	bl	_VXGE_HW_GET_EPROM_IMAGE_VALID
	str	w0, [x23, #4]
	ldr	x0, [sp, #24]
	bl	_VXGE_HW_GET_EPROM_IMAGE_INDEX
	str	w0, [x23]
	ldr	x0, [sp, #24]
	bl	_VXGE_HW_GET_EPROM_IMAGE_TYPE
	stur	w0, [x23, #-4]
	ldr	x0, [sp, #24]
	bl	_VXGE_HW_GET_EPROM_IMAGE_REV
	stur	w0, [x23, #-8]
	add	x19, x19, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x19, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w21
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_HW_MAX_ROM_IMAGES,4,2     ; @VXGE_HW_MAX_ROM_IMAGES
	.comm	_VXGE_HW_FW_API_GET_EPROM_REV,4,2 ; @VXGE_HW_FW_API_GET_EPROM_REV
	.comm	_VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO,4,2 ; @VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_FW_MEMO
	.comm	_VXGE_HW_OK,4,2                 ; @VXGE_HW_OK
.subsections_via_symbols
