	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_save_848xx_spirom_version
_bnx2x_save_848xx_spirom_version:       ## @bnx2x_save_848xx_spirom_version
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.1:
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	_bnx2x_save_848xx_spirom_version.reg_set(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	leaq	_bnx2x_save_848xx_spirom_version.reg_set+16(%rip), %rbx
	xorl	%r14d, %r14d
	leaq	_bnx2x_save_848xx_spirom_version.reg_set(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	-8(%rbx), %ecx
	movl	-4(%rbx), %r8d
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_write
	incq	%r14
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movl	$100, %ebx
	leaq	-52(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43032, %ecx                    ## imm = 0xA818
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	testb	$1, -52(%rbp)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$5, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_6
## %bb.8:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_17:
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$16399, %ecx                    ## imm = 0x400F
	callq	_bnx2x_cl45_read
	movl	$4095, %edx                     ## imm = 0xFFF
	andl	-48(%rbp), %edx
	jmp	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43033, %ecx                    ## imm = 0xA819
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43034, %ecx                    ## imm = 0xA81A
	movl	$49664, %r8d                    ## imm = 0xC200
	callq	_bnx2x_cl45_write
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43031, %ecx                    ## imm = 0xA817
	movl	$10, %r8d
	callq	_bnx2x_cl45_write
	movl	$100, %ebx
	leaq	-52(%rbp), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43032, %ecx                    ## imm = 0xA818
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	testb	$1, -52(%rbp)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$5, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_11
## %bb.13:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	callq	_DP
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_14:
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43035, %ecx                    ## imm = 0xA81B
	callq	_bnx2x_cl45_read
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$128, %edx
	movl	$43036, %ecx                    ## imm = 0xA81C
	callq	_bnx2x_cl45_read
	movl	-56(%rbp), %edx
	shll	$16, %edx
	orl	-48(%rbp), %edx
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_16:
	movl	8(%r13), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bnx2x_save_spirom_version
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @bnx2x_save_848xx_spirom_version.reg_set
_bnx2x_save_848xx_spirom_version.reg_set:
	.long	128                             ## 0x80
	.long	43033                           ## 0xa819
	.long	20                              ## 0x14
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	43034                           ## 0xa81a
	.long	49664                           ## 0xc200
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	43035                           ## 0xa81b
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	43036                           ## 0xa81c
	.long	768                             ## 0x300
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	43031                           ## 0xa817
	.long	9                               ## 0x9
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.comm	_MDIO_CTL_DEVAD,4,2             ## @MDIO_CTL_DEVAD
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read 848xx phy fw version(1)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to read 848xx phy fw version(2)\n"

	.no_dead_strip	_bnx2x_save_848xx_spirom_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_save_848xx_spirom_version
_bnx2x_save_848xx_spirom_version:       ; @bnx2x_save_848xx_spirom_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MDIO_CTL_DEVAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_CTL_DEVAD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x21
	mov	w3, #16399
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #4]
	and	w2, w8, #0xfff
	b	LBB0_15
LBB0_2:
Lloh9:
	adrp	x0, _bnx2x_save_848xx_spirom_version.reg_set@PAGE
Lloh10:
	add	x0, x0, _bnx2x_save_848xx_spirom_version.reg_set@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
Lloh11:
	adrp	x24, _bnx2x_save_848xx_spirom_version.reg_set@PAGE+16
Lloh12:
	add	x24, x24, _bnx2x_save_848xx_spirom_version.reg_set@PAGEOFF+16
Lloh13:
	adrp	x22, _bnx2x_save_848xx_spirom_version.reg_set@PAGE
Lloh14:
	add	x22, x22, _bnx2x_save_848xx_spirom_version.reg_set@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w4, w2, [x24, #-4]
	ldur	w3, [x24, #-8]
	mov	x0, x20
	mov	x1, x21
	bl	_bnx2x_cl45_write
	add	x23, x23, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	add	x24, x24, #24
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	w22, #100
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43032
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_6
; %bb.8:
Lloh15:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43033
	mov	w4, #0
	bl	_bnx2x_cl45_write
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43034
	mov	w4, #49664
	bl	_bnx2x_cl45_write
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43031
	mov	w4, #10
	bl	_bnx2x_cl45_write
	mov	w22, #100
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43032
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #5
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_10
; %bb.12:
Lloh20:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_DP
	mov	w2, #0
	b	LBB0_15
LBB0_14:
	add	x4, sp, #4
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43035
	bl	_bnx2x_cl45_read
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #128
	mov	w3, #43036
	bl	_bnx2x_cl45_read
	ldp	w9, w8, [sp, #4]
	orr	w2, w9, w8, lsl #16
LBB0_15:
	ldr	w3, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_save_spirom_version
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @bnx2x_save_848xx_spirom_version.reg_set
_bnx2x_save_848xx_spirom_version.reg_set:
	.long	128                             ; 0x80
	.long	43033                           ; 0xa819
	.long	20                              ; 0x14
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	43034                           ; 0xa81a
	.long	49664                           ; 0xc200
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	43035                           ; 0xa81b
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	43036                           ; 0xa81c
	.long	768                             ; 0x300
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	43031                           ; 0xa817
	.long	9                               ; 0x9
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834
	.comm	_MDIO_CTL_DEVAD,4,2             ; @MDIO_CTL_DEVAD
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read 848xx phy fw version(1)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to read 848xx phy fw version(2)\n"

	.no_dead_strip	_bnx2x_save_848xx_spirom_version
.subsections_via_symbols
