	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_cl22_read
_bnx2x_cl22_read:                       ## @bnx2x_cl22_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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_EMAC_REG_EMAC_MDIO_MODE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	callq	_REG_RD
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	movq	_EMAC_MDIO_MODE_CLAUSE_45@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	movq	%r14, %rdi
	callq	_REG_WR
	movl	(%r15), %eax
	shll	$21, %eax
	shll	$16, %r13d
	orl	%eax, %r13d
	movq	_EMAC_MDIO_COMM_COMMAND_READ_22@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %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_2:                                 ## =>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
	testl	%r13d, (%rax)
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_EMAC_MDIO_COMM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$5, %edi
	callq	_udelay
	movq	_EMAC_MDIO_COMM_START_BUSY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
LBB0_5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_EMAC_REG_EMAC_MDIO_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_REG_WR
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_REG_EMAC_MDIO_MODE,8,3    ## @EMAC_REG_EMAC_MDIO_MODE
	.comm	_EMAC_MDIO_MODE_CLAUSE_45,4,2   ## @EMAC_MDIO_MODE_CLAUSE_45
	.comm	_EMAC_MDIO_COMM_COMMAND_READ_22,4,2 ## @EMAC_MDIO_COMM_COMMAND_READ_22
	.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	_EMAC_MDIO_COMM_DATA,4,2        ## @EMAC_MDIO_COMM_DATA
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read phy register failed\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_bnx2x_cl22_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_cl22_read
_bnx2x_cl22_read:                       ; @bnx2x_cl22_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x24, _EMAC_REG_EMAC_MDIO_MODE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EMAC_REG_EMAC_MDIO_MODE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_REG_RD
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
Lloh2:
	adrp	x8, _EMAC_MDIO_MODE_CLAUSE_45@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMAC_MDIO_MODE_CLAUSE_45@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_REG_WR
	ldr	w8, [x20]
	lsl	w8, w8, #21
Lloh5:
	adrp	x9, _EMAC_MDIO_COMM_COMMAND_READ_22@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EMAC_MDIO_COMM_COMMAND_READ_22@GOTPAGEOFF]
	orr	w8, w8, w23, lsl #16
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x25, _EMAC_MDIO_COMM_START_BUSY@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EMAC_MDIO_COMM_START_BUSY@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w8, w9
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x26, _EMAC_REG_EMAC_MDIO_COMM@GOTPAGE
Lloh11:
	ldr	x26, [x26, _EMAC_REG_EMAC_MDIO_COMM@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_WR
	mov	w27, #50
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x19
	bl	_REG_RD
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w27, w27, #1
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	x23, x0
Lloh12:
	adrp	x8, _EMAC_MDIO_COMM_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EMAC_MDIO_COMM_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x22]
	mov	w0, #5
	bl	_udelay
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	str	wzr, [x22]
Lloh20:
	adrp	x8, _EFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WR
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_REG_EMAC_MDIO_MODE,8,3    ; @EMAC_REG_EMAC_MDIO_MODE
	.comm	_EMAC_MDIO_MODE_CLAUSE_45,4,2   ; @EMAC_MDIO_MODE_CLAUSE_45
	.comm	_EMAC_MDIO_COMM_COMMAND_READ_22,4,2 ; @EMAC_MDIO_COMM_COMMAND_READ_22
	.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	_EMAC_MDIO_COMM_DATA,4,2        ; @EMAC_MDIO_COMM_DATA
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read phy register failed\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_bnx2x_cl22_read
.subsections_via_symbols
