	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_hw_reset_phy             ## -- Begin function bnx2x_hw_reset_phy
	.p2align	4, 0x90
_bnx2x_hw_reset_phy:                    ## @bnx2x_hw_reset_phy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	xorl	%esi, %esi
	callq	_bnx2x_update_mng
	movq	_NIG_REG_MASK_INTERRUPT_PORT0@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	_NIG_MASK_XGXS0_LINK_STATUS@GOTPCREL(%rip), %rax
	movq	_NIG_MASK_XGXS0_LINK10G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_NIG_MASK_SERDES0_LINK_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NIG_MASK_MI_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bnx2x_bits_dis
	movq	_INT_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MAX_PHYS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %r12
	jae	LBB0_5
## %bb.1:
	leaq	(,%r12,8), %rbx
	movq	_phy_null@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$8, %rbx
	cmpq	%rax, %r12
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	(%rdi,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	movq	8(%r15), %rax
	movq	(%r13), %rcx
	movq	%rcx, (%rax,%r12,8)
	movq	(%r14), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,8,3 ## @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_XGXS0_LINK_STATUS,4,2 ## @NIG_MASK_XGXS0_LINK_STATUS
	.comm	_NIG_MASK_XGXS0_LINK10G,4,2     ## @NIG_MASK_XGXS0_LINK10G
	.comm	_NIG_MASK_SERDES0_LINK_STATUS,4,2 ## @NIG_MASK_SERDES0_LINK_STATUS
	.comm	_NIG_MASK_MI_INT,4,2            ## @NIG_MASK_MI_INT
	.comm	_INT_PHY,8,3                    ## @INT_PHY
	.comm	_MAX_PHYS,8,3                   ## @MAX_PHYS
	.comm	_phy_null,8,3                   ## @phy_null
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_hw_reset_phy             ; -- Begin function bnx2x_hw_reset_phy
	.p2align	2
_bnx2x_hw_reset_phy:                    ; @bnx2x_hw_reset_phy
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	w1, #0
	bl	_bnx2x_update_mng
Lloh0:
	adrp	x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #2
Lloh3:
	adrp	x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _NIG_MASK_MI_INT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_bnx2x_bits_dis
Lloh15:
	adrp	x8, _INT_PHY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_PHY@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
Lloh18:
	adrp	x21, _MAX_PHYS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _MAX_PHYS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.hs	LBB0_5
; %bb.1:
	lsl	x22, x20, #3
Lloh20:
	adrp	x23, _phy_null@GOTPAGE
Lloh21:
	ldr	x23, [x23, _phy_null@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x22, x22, #8
	cmp	x20, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	blr	x9
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	str	x9, [x8, x20, lsl #3]
	ldr	x8, [x21]
	b	LBB0_2
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,8,3 ; @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_XGXS0_LINK_STATUS,4,2 ; @NIG_MASK_XGXS0_LINK_STATUS
	.comm	_NIG_MASK_XGXS0_LINK10G,4,2     ; @NIG_MASK_XGXS0_LINK10G
	.comm	_NIG_MASK_SERDES0_LINK_STATUS,4,2 ; @NIG_MASK_SERDES0_LINK_STATUS
	.comm	_NIG_MASK_MI_INT,4,2            ; @NIG_MASK_MI_INT
	.comm	_INT_PHY,8,3                    ; @INT_PHY
	.comm	_MAX_PHYS,8,3                   ; @MAX_PHYS
	.comm	_phy_null,8,3                   ; @phy_null
.subsections_via_symbols
