	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_wait_for_sfp_module_initialized
_bnx2x_wait_for_sfp_module_initialized: ## @bnx2x_wait_for_sfp_module_initialized
	.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	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%r13), %edx
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r12, %r9
	callq	_bnx2x_warpcore_read_sfp_module_eeprom
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r12, %r9
	callq	_bnx2x_read_sfp_module_eeprom
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	addl	$5, %ebx
	cmpl	$300, %ebx                      ## imm = 0x12C
	jne	LBB0_1
## %bb.7:
	movl	(%r13), %edx
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_bnx2x_read_sfp_module_eeprom
	jmp	LBB0_8
LBB0_5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DP
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT
	.comm	_I2C_DEV_ADDR_A0,4,2            ## @I2C_DEV_ADDR_A0
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SFP+ module initialization took %d ms\n"

	.no_dead_strip	_bnx2x_wait_for_sfp_module_initialized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_wait_for_sfp_module_initialized
_bnx2x_wait_for_sfp_module_initialized: ; @bnx2x_wait_for_sfp_module_initialized
	.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, x1
	mov	x20, x0
	mov	w21, #0
Lloh0:
	adrp	x23, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _I2C_DEV_ADDR_A0@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I2C_DEV_ADDR_A0@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	w2, [x22]
	add	x5, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #1
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w6, #1
	bl	_bnx2x_warpcore_read_sfp_module_eeprom
	cbnz	w0, LBB0_4
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_bnx2x_read_sfp_module_eeprom
	cbz	w0, LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	add	w21, w21, #5
	cmp	w21, #300
	b.ne	LBB0_1
; %bb.5:
	ldr	w2, [x22]
	add	x5, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #1
	bl	_bnx2x_read_sfp_module_eeprom
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DP
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT
	.comm	_I2C_DEV_ADDR_A0,4,2            ; @I2C_DEV_ADDR_A0
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SFP+ module initialization took %d ms\n"

	.no_dead_strip	_bnx2x_wait_for_sfp_module_initialized
.subsections_via_symbols
