	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_84858_cmd_hdlr
_bnx2x_84858_cmd_hdlr:                  ## @bnx2x_84858_cmd_hdlr
	.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, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movq	_PHY84858_STATUS_CMD_IN_PROGRESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incl	%r13d
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_848xx_CMD_HDLR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %r8
	callq	_bnx2x_cl45_read
	movq	-56(%rbp), %rax
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PHY84858_STATUS_CMD_SYSTEM_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	cmpl	%eax, %r13d
	jge	LBB0_8
LBB0_10:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.11:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_848xx_CMD_HDLR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%rbx, %rcx
	movq	(%r14,%rbx,8), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_write
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_12
LBB0_13:
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_848xx_CMD_HDLR_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_bnx2x_cl45_write
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:
	movq	_PHY84858_STATUS_CMD_COMPLETE_ERROR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_848xx_CMD_HDLR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %r8
	callq	_bnx2x_cl45_read
	movq	-56(%rbp), %rax
	movq	_PHY84858_STATUS_CMD_COMPLETE_PASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incl	%ebx
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_15
	jmp	LBB0_19
LBB0_1:
	xorl	%r13d, %r13d
	cmpl	%eax, %r13d
	jl	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_17:
	movq	_PHY848xx_CMDHDLR_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	cmpl	%eax, %ebx
	jge	LBB0_9
## %bb.20:
	movq	-56(%rbp), %rax
	movq	_PHY84858_STATUS_CMD_COMPLETE_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
LBB0_9:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_22
## %bb.23:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_CTL_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_848xx_CMD_HDLR_DATA1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	%r13, %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %r8
	callq	_bnx2x_cl45_read
	incq	%r13
	addq	$8, %r14
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_24
	jmp	LBB0_25
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY848xx_CMDHDLR_WAIT,4,2      ## @PHY848xx_CMDHDLR_WAIT
	.comm	_MDIO_CTL_DEVAD,4,2             ## @MDIO_CTL_DEVAD
	.comm	_MDIO_848xx_CMD_HDLR_STATUS,8,3 ## @MDIO_848xx_CMD_HDLR_STATUS
	.comm	_PHY84858_STATUS_CMD_IN_PROGRESS,8,3 ## @PHY84858_STATUS_CMD_IN_PROGRESS
	.comm	_PHY84858_STATUS_CMD_SYSTEM_BUSY,8,3 ## @PHY84858_STATUS_CMD_SYSTEM_BUSY
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW cmd: FW not ready.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MDIO_848xx_CMD_HDLR_DATA1,8,3  ## @MDIO_848xx_CMD_HDLR_DATA1
	.comm	_MDIO_848xx_CMD_HDLR_COMMAND,8,3 ## @MDIO_848xx_CMD_HDLR_COMMAND
	.comm	_PHY84858_STATUS_CMD_COMPLETE_PASS,8,3 ## @PHY84858_STATUS_CMD_COMPLETE_PASS
	.comm	_PHY84858_STATUS_CMD_COMPLETE_ERROR,8,3 ## @PHY84858_STATUS_CMD_COMPLETE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"FW cmd failed.\n"

	.no_dead_strip	_bnx2x_84858_cmd_hdlr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_84858_cmd_hdlr
_bnx2x_84858_cmd_hdlr:                  ; @bnx2x_84858_cmd_hdlr
	.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	x28, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x25, _PHY848xx_CMDHDLR_WAIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PHY848xx_CMDHDLR_WAIT@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x24, _MDIO_CTL_DEVAD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_CTL_DEVAD@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	str	x23, [sp]                       ; 8-byte Folded Spill
	mov	x23, x28
	mov	w26, #0
Lloh4:
	adrp	x27, _MDIO_848xx_CMD_HDLR_STATUS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MDIO_848xx_CMD_HDLR_STATUS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _PHY84858_STATUS_CMD_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PHY84858_STATUS_CMD_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	adrp	x22, _PHY84858_STATUS_CMD_SYSTEM_BUSY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PHY84858_STATUS_CMD_SYSTEM_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldr	x3, [x27]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	x8, [sp, #8]
	ldr	x9, [x28]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.lt	LBB0_2
	b	LBB0_7
LBB0_4:
	mov	w26, #0
	cmp	w26, w8
	b.lt	LBB0_8
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_6:
	ldr	w8, [x25]
LBB0_7:
	mov	x28, x23
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	cmp	w26, w8
	b.ge	LBB0_5
LBB0_8:
	cmp	w28, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
	mov	w26, w28
Lloh12:
	adrp	x27, _MDIO_848xx_CMD_HDLR_DATA1@GOTPAGE
Lloh13:
	ldr	x27, [x27, _MDIO_848xx_CMD_HDLR_DATA1@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldr	x8, [x27]
	add	x3, x22, x8
	ldr	x4, [x19, x22, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_write
	add	x22, x22, #1
	cmp	x26, x22
	b.ne	LBB0_10
LBB0_11:
	ldr	w2, [x24]
Lloh14:
	adrp	x8, _MDIO_848xx_CMD_HDLR_COMMAND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_848xx_CMD_HDLR_COMMAND@GOTPAGEOFF]
Lloh16:
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x23
	bl	_bnx2x_cl45_write
	ldr	w8, [x25]
Lloh17:
	adrp	x23, _PHY84858_STATUS_CMD_COMPLETE_ERROR@GOTPAGE
Lloh18:
	ldr	x23, [x23, _PHY84858_STATUS_CMD_COMPLETE_ERROR@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	w26, #0
Lloh19:
	adrp	x27, _MDIO_848xx_CMD_HDLR_STATUS@GOTPAGE
Lloh20:
	ldr	x27, [x27, _MDIO_848xx_CMD_HDLR_STATUS@GOTPAGEOFF]
Lloh21:
	adrp	x22, _PHY84858_STATUS_CMD_COMPLETE_PASS@GOTPAGE
Lloh22:
	ldr	x22, [x22, _PHY84858_STATUS_CMD_COMPLETE_PASS@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldr	x3, [x27]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.lt	LBB0_13
; %bb.15:
	cmp	w26, w8
	b.ge	LBB0_19
	b	LBB0_18
LBB0_16:
	mov	w26, #0
	cmp	w26, w8
	b.ge	LBB0_19
	b	LBB0_18
LBB0_17:
	ldr	w8, [x25]
	cmp	w26, w8
	b.ge	LBB0_19
LBB0_18:
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_19:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
Lloh25:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_DP
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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_22:
	cmp	w28, #1
	b.lt	LBB0_25
; %bb.23:
	mov	x22, #0
	mov	w23, w28
Lloh31:
	adrp	x25, _MDIO_848xx_CMD_HDLR_DATA1@GOTPAGE
Lloh32:
	ldr	x25, [x25, _MDIO_848xx_CMD_HDLR_DATA1@GOTPAGEOFF]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldr	x8, [x25]
	add	x3, x22, x8
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_bnx2x_cl45_read
	add	x22, x22, #1
	add	x19, x19, #8
	cmp	x23, x22
	b.ne	LBB0_24
LBB0_25:
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY848xx_CMDHDLR_WAIT,4,2      ; @PHY848xx_CMDHDLR_WAIT
	.comm	_MDIO_CTL_DEVAD,4,2             ; @MDIO_CTL_DEVAD
	.comm	_MDIO_848xx_CMD_HDLR_STATUS,8,3 ; @MDIO_848xx_CMD_HDLR_STATUS
	.comm	_PHY84858_STATUS_CMD_IN_PROGRESS,8,3 ; @PHY84858_STATUS_CMD_IN_PROGRESS
	.comm	_PHY84858_STATUS_CMD_SYSTEM_BUSY,8,3 ; @PHY84858_STATUS_CMD_SYSTEM_BUSY
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW cmd: FW not ready.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MDIO_848xx_CMD_HDLR_DATA1,8,3  ; @MDIO_848xx_CMD_HDLR_DATA1
	.comm	_MDIO_848xx_CMD_HDLR_COMMAND,8,3 ; @MDIO_848xx_CMD_HDLR_COMMAND
	.comm	_PHY84858_STATUS_CMD_COMPLETE_PASS,8,3 ; @PHY84858_STATUS_CMD_COMPLETE_PASS
	.comm	_PHY84858_STATUS_CMD_COMPLETE_ERROR,8,3 ; @PHY84858_STATUS_CMD_COMPLETE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"FW cmd failed.\n"

	.no_dead_strip	_bnx2x_84858_cmd_hdlr
.subsections_via_symbols
