	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_mdio_read
_bnx2x_mdio_read:                       ## @bnx2x_mdio_read
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_DEVAD_NONE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_PHY_DEV_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	%r12, %rdi
	callq	_bnx2x_acquire_phy_lock
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_bnx2x_phy_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bnx2x_release_phy_lock
	movl	(%r13), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio_read: prtad 0x%x, devad 0x%x, addr 0x%x\n"

	.comm	_MDIO_DEVAD_NONE,4,2            ## @MDIO_DEVAD_NONE
	.comm	_DEFAULT_PHY_DEV_ADDR,4,2       ## @DEFAULT_PHY_DEV_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"mdio_read_val 0x%x rc = 0x%x\n"

	.no_dead_strip	_bnx2x_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_mdio_read
_bnx2x_mdio_read:                       ; @bnx2x_mdio_read
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x22, x0
Lloh0:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_DP
Lloh4:
	adrp	x8, _MDIO_DEVAD_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_DEVAD_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _DEFAULT_PHY_DEV_ADDR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DEFAULT_PHY_DEV_ADDR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w20
	csel	w20, w9, w20, eq
	mov	x0, x22
	bl	_bnx2x_acquire_phy_lock
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_bnx2x_phy_read
	mov	x19, x0
	mov	x0, x22
	bl	_bnx2x_release_phy_lock
	ldr	w0, [x23]
	ldr	w2, [sp, #12]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_DP
	ldr	w8, [sp, #12]
	cmp	w19, #0
	csel	w0, w8, w19, eq
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio_read: prtad 0x%x, devad 0x%x, addr 0x%x\n"

	.comm	_MDIO_DEVAD_NONE,4,2            ; @MDIO_DEVAD_NONE
	.comm	_DEFAULT_PHY_DEV_ADDR,4,2       ; @DEFAULT_PHY_DEV_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"mdio_read_val 0x%x rc = 0x%x\n"

	.no_dead_strip	_bnx2x_mdio_read
.subsections_via_symbols
