	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_cl45_read
_bnx2x_cl45_read:                       ## @bnx2x_cl45_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movq	_FLAGS_MDC_MDIO_WA_G@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MISC_REG_CHIP_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_REG_RD
	movl	%eax, %ebx
	shll	$16, %ebx
	movq	_MISC_REG_CHIP_REV@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_REG_RD
	shll	$12, %eax
	movzwl	%ax, %esi
	orl	%ebx, %esi
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	callq	_bnx2x_set_mdio_clk
	movl	(%r15), %eax
LBB0_2:
	movq	_FLAGS_MDC_MDIO_WA_B0@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EMAC_REG_EMAC_MDIO_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movq	_EMAC_MDIO_STATUS_10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bnx2x_bits_en
LBB0_4:
	movl	4(%r15), %eax
	shll	$21, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	shll	$16, %r12d
	movq	_EMAC_MDIO_COMM_COMMAND_ADDRESS@GOTPCREL(%rip), %rcx
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rdx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	orl	%r12d, %r13d
	orl	%eax, %r13d
	orl	(%rcx), %r13d
	orl	(%rdx), %r13d
	movq	_EMAC_REG_EMAC_MDIO_COMM@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_REG_WR
	movl	$50, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_REG_RD
	movl	%eax, %r13d
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r13d, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movl	$5, %edi
	callq	_udelay
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_8:
	testl	%r13d, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_14
## %bb.9:
	movl	4(%r15), %eax
	shll	$21, %eax
	movq	_EMAC_MDIO_COMM_COMMAND_READ_45@GOTPCREL(%rip), %rcx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	orl	%eax, %edx
	orl	(%rcx), %edx
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_REG_WR
	movl	$50, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	decl	%ebx
	jne	LBB0_11
	jmp	LBB0_14
LBB0_12:
	movq	_EMAC_MDIO_COMM_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_14:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	movl	$0, (%r13)
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_15:
	movl	(%r15), %eax
	movq	_FLAGS_MDC_MDIO_WA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.16:
	movq	_FLAGS_DUMMY_READ@GOTPCREL(%rip), %rcx
	xorl	(%rcx), %eax
	movl	%eax, (%r15)
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	leaq	-60(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$15, %ecx
	callq	_bnx2x_cl45_read
	movl	(%r15), %eax
LBB0_18:
	movq	_FLAGS_MDC_MDIO_WA_B0@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movq	_EMAC_REG_EMAC_MDIO_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movq	_EMAC_MDIO_STATUS_10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_bnx2x_bits_dis
LBB0_20:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_MDC_MDIO_WA_G,4,2        ## @FLAGS_MDC_MDIO_WA_G
	.comm	_MISC_REG_CHIP_NUM,8,3          ## @MISC_REG_CHIP_NUM
	.comm	_MISC_REG_CHIP_REV,8,3          ## @MISC_REG_CHIP_REV
	.comm	_FLAGS_MDC_MDIO_WA_B0,4,2       ## @FLAGS_MDC_MDIO_WA_B0
	.comm	_EMAC_REG_EMAC_MDIO_STATUS,8,3  ## @EMAC_REG_EMAC_MDIO_STATUS
	.comm	_EMAC_MDIO_STATUS_10MB,4,2      ## @EMAC_MDIO_STATUS_10MB
	.comm	_EMAC_MDIO_COMM_COMMAND_ADDRESS,4,2 ## @EMAC_MDIO_COMM_COMMAND_ADDRESS
	.comm	_EMAC_MDIO_COMM_START_BUSY,4,2  ## @EMAC_MDIO_COMM_START_BUSY
	.comm	_EMAC_REG_EMAC_MDIO_COMM,8,3    ## @EMAC_REG_EMAC_MDIO_COMM
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read phy register failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"MDC/MDIO access timeout\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EMAC_MDIO_COMM_COMMAND_READ_45,4,2 ## @EMAC_MDIO_COMM_COMMAND_READ_45
	.comm	_EMAC_MDIO_COMM_DATA,4,2        ## @EMAC_MDIO_COMM_DATA
	.comm	_FLAGS_MDC_MDIO_WA,4,2          ## @FLAGS_MDC_MDIO_WA
	.comm	_FLAGS_DUMMY_READ,4,2           ## @FLAGS_DUMMY_READ
	.no_dead_strip	_bnx2x_cl45_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_cl45_read
_bnx2x_cl45_read:                       ; @bnx2x_cl45_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _FLAGS_MDC_MDIO_WA_G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAGS_MDC_MDIO_WA_G@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MISC_REG_CHIP_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MISC_REG_CHIP_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_REG_RD
	lsl	w24, w0, #16
Lloh6:
	adrp	x8, _MISC_REG_CHIP_REV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MISC_REG_CHIP_REV@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_REG_RD
	bfi	w24, w0, #12, #4
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_bnx2x_set_mdio_clk
	ldr	w8, [x20]
LBB0_2:
Lloh9:
	adrp	x9, _FLAGS_MDC_MDIO_WA_B0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLAGS_MDC_MDIO_WA_B0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _EMAC_REG_EMAC_MDIO_STATUS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EMAC_REG_EMAC_MDIO_STATUS@GOTPAGEOFF]
Lloh14:
	adrp	x26, _EMAC_MDIO_STATUS_10MB@GOTPAGE
Lloh15:
	ldr	x26, [x26, _EMAC_MDIO_STATUS_10MB@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x9, [x10]
	add	x1, x9, x8
	ldr	w2, [x26]
	mov	x0, x19
	bl	_bnx2x_bits_en
LBB0_4:
	ldr	w8, [x20, #4]
	lsl	w24, w21, #16
Lloh16:
	adrp	x9, _EMAC_MDIO_COMM_COMMAND_ADDRESS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EMAC_MDIO_COMM_COMMAND_ADDRESS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x27, _EMAC_MDIO_COMM_START_BUSY@GOTPAGE
Lloh20:
	ldr	x27, [x27, _EMAC_MDIO_COMM_START_BUSY@GOTPAGEOFF]
	ldr	w10, [x27]
	orr	w11, w24, w23
	orr	w8, w11, w8, lsl #21
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x28, _EMAC_REG_EMAC_MDIO_COMM@GOTPAGE
Lloh22:
	ldr	x28, [x28, _EMAC_REG_EMAC_MDIO_COMM@GOTPAGEOFF]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_WR
	mov	w25, #50
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20, #8]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_RD
	mov	x23, x0
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	w25, w25, #1
	b.ne	LBB0_5
; %bb.7:
	tst	w8, w23
	b.ne	LBB0_13
	b	LBB0_9
LBB0_8:
	mov	w0, #5
	bl	_udelay
	ldr	w8, [x27]
	tst	w8, w23
	b.ne	LBB0_13
LBB0_9:
	ldr	w9, [x20, #4]
Lloh23:
	adrp	x10, _EMAC_MDIO_COMM_COMMAND_READ_45@GOTPAGE
Lloh24:
	ldr	x10, [x10, _EMAC_MDIO_COMM_COMMAND_READ_45@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w8, w8, w24
	orr	w8, w8, w9, lsl #21
	orr	w2, w8, w10
	ldr	x8, [x20, #8]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_WR
	mov	w23, #50
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20, #8]
	ldr	x9, [x28]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_RD
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	subs	w23, w23, #1
	b.ne	LBB0_10
	b	LBB0_13
LBB0_12:
Lloh26:
	adrp	x8, _EMAC_MDIO_COMM_DATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EMAC_MDIO_COMM_DATA@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x22]
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_20
LBB0_13:
Lloh29:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w0, [x19]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	str	wzr, [x22]
Lloh36:
	adrp	x8, _EFAULT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	ldr	w8, [x20]
Lloh39:
	adrp	x9, _FLAGS_MDC_MDIO_WA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FLAGS_MDC_MDIO_WA@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
Lloh42:
	adrp	x9, _FLAGS_DUMMY_READ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FLAGS_DUMMY_READ@GOTPAGEOFF]
	ldr	w10, [x9]
	eor	w8, w10, w8
	str	w8, [x20]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #15
	bl	_bnx2x_cl45_read
	ldr	w8, [x20]
LBB0_17:
Lloh44:
	adrp	x9, _FLAGS_MDC_MDIO_WA_B0@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FLAGS_MDC_MDIO_WA_B0@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x20, #8]
Lloh47:
	adrp	x9, _EMAC_REG_EMAC_MDIO_STATUS@GOTPAGE
Lloh48:
	ldr	x9, [x9, _EMAC_REG_EMAC_MDIO_STATUS@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x26]
	mov	x0, x19
	bl	_bnx2x_bits_dis
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	mov	w22, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_MDC_MDIO_WA_G,4,2        ; @FLAGS_MDC_MDIO_WA_G
	.comm	_MISC_REG_CHIP_NUM,8,3          ; @MISC_REG_CHIP_NUM
	.comm	_MISC_REG_CHIP_REV,8,3          ; @MISC_REG_CHIP_REV
	.comm	_FLAGS_MDC_MDIO_WA_B0,4,2       ; @FLAGS_MDC_MDIO_WA_B0
	.comm	_EMAC_REG_EMAC_MDIO_STATUS,8,3  ; @EMAC_REG_EMAC_MDIO_STATUS
	.comm	_EMAC_MDIO_STATUS_10MB,4,2      ; @EMAC_MDIO_STATUS_10MB
	.comm	_EMAC_MDIO_COMM_COMMAND_ADDRESS,4,2 ; @EMAC_MDIO_COMM_COMMAND_ADDRESS
	.comm	_EMAC_MDIO_COMM_START_BUSY,4,2  ; @EMAC_MDIO_COMM_START_BUSY
	.comm	_EMAC_REG_EMAC_MDIO_COMM,8,3    ; @EMAC_REG_EMAC_MDIO_COMM
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read phy register failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"MDC/MDIO access timeout\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EMAC_MDIO_COMM_COMMAND_READ_45,4,2 ; @EMAC_MDIO_COMM_COMMAND_READ_45
	.comm	_EMAC_MDIO_COMM_DATA,4,2        ; @EMAC_MDIO_COMM_DATA
	.comm	_FLAGS_MDC_MDIO_WA,4,2          ; @FLAGS_MDC_MDIO_WA
	.comm	_FLAGS_DUMMY_READ,4,2           ; @FLAGS_DUMMY_READ
	.no_dead_strip	_bnx2x_cl45_read
.subsections_via_symbols
