	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_common_ext_link_reset
_bnx2x_common_ext_link_reset:           ## @bnx2x_common_ext_link_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_BP_PATH
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %r14d
LBB0_3:
	movq	_MISC_REGISTERS_GPIO_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_bnx2x_set_gpio
	movq	_MISC_REGISTERS_GPIO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_bnx2x_set_gpio
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_REGISTERS_GPIO_1,4,2      ## @MISC_REGISTERS_GPIO_1
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ## @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.comm	_MISC_REGISTERS_GPIO_2,4,2      ## @MISC_REGISTERS_GPIO_2
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset external PHY\n"

	.no_dead_strip	_bnx2x_common_ext_link_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_common_ext_link_reset
_bnx2x_common_ext_link_reset:           ; @bnx2x_common_ext_link_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_CHIP_IS_E2
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BP_PATH
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	ldr	w20, [x20]
LBB0_3:
Lloh0:
	adrp	x8, _MISC_REGISTERS_GPIO_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_bnx2x_set_gpio
Lloh5:
	adrp	x8, _MISC_REGISTERS_GPIO_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_bnx2x_set_gpio
Lloh8:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DP
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_REGISTERS_GPIO_1,4,2      ; @MISC_REGISTERS_GPIO_1
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ; @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.comm	_MISC_REGISTERS_GPIO_2,4,2      ; @MISC_REGISTERS_GPIO_2
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset external PHY\n"

	.no_dead_strip	_bnx2x_common_ext_link_reset
.subsections_via_symbols
