	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_save_bcm_spirom_ver
_bnx2x_save_bcm_spirom_ver:             ## @bnx2x_save_bcm_spirom_ver
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_ROM_VER1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_ROM_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	-40(%rbp), %edx
	shll	$16, %edx
	orl	-36(%rbp), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnx2x_save_spirom_version
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_ROM_VER1,4,2      ## @MDIO_PMA_REG_ROM_VER1
	.comm	_MDIO_PMA_REG_ROM_VER2,4,2      ## @MDIO_PMA_REG_ROM_VER2
	.no_dead_strip	_bnx2x_save_bcm_spirom_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_save_bcm_spirom_ver
_bnx2x_save_bcm_spirom_ver:             ; @bnx2x_save_bcm_spirom_ver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _MDIO_PMA_REG_ROM_VER1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_REG_ROM_VER1@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, sp, #12
	bl	_bnx2x_cl45_read
	ldr	w2, [x22]
Lloh5:
	adrp	x8, _MDIO_PMA_REG_ROM_VER2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_PMA_REG_ROM_VER2@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldp	w9, w8, [sp, #8]
	orr	w2, w9, w8, lsl #16
	ldr	w3, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_save_spirom_version
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_ROM_VER1,4,2      ; @MDIO_PMA_REG_ROM_VER1
	.comm	_MDIO_PMA_REG_ROM_VER2,4,2      ; @MDIO_PMA_REG_ROM_VER2
	.no_dead_strip	_bnx2x_save_bcm_spirom_ver
.subsections_via_symbols
