	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_probe_phy
_bnxt_probe_phy:                        ## @bnxt_probe_phy
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_bnxt_hwrm_phy_qcaps
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnxt_update_link
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 40(%r14)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 72(%r14)
	jne	LBB0_8
## %bb.7:
	movq	64(%r14), %rax
	movq	%rax, 72(%r14)
LBB0_8:
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.9:
	movl	56(%r14), %edi
	callq	_BNXT_AUTO_MODE
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_BNXT_AUTONEG_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	cmpl	$66049, (%r14)                  ## imm = 0x10201
	jl	LBB0_12
## %bb.11:
	movq	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%r14)
	je	LBB0_13
LBB0_12:
	movq	_BNXT_AUTONEG_FLOW_CTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r14)
LBB0_13:
	movq	40(%r14), %rcx
	movq	%rcx, 48(%r14)
	jmp	LBB0_15
LBB0_14:
	movl	32(%r14), %eax
	movl	%eax, 36(%r14)
	movl	8(%r14), %eax
	movl	24(%r14), %ecx
	movl	%ecx, 28(%r14)
LBB0_15:
	movq	_BNXT_AUTONEG_FLOW_CTRL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_BNXT_LINK_PAUSE_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%r14), %eax
	jmp	LBB0_18
LBB0_17:
	movl	20(%r14), %eax
LBB0_18:
	movl	%eax, 16(%r14)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probe phy can't get phy capabilities (rc: %x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Probe phy can't update link (rc: %x)\n"

	.comm	_BNXT_AUTONEG_SPEED,4,2         ## @BNXT_AUTONEG_SPEED
	.comm	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE,4,2 ## @PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE
	.comm	_BNXT_AUTONEG_FLOW_CTRL,4,2     ## @BNXT_AUTONEG_FLOW_CTRL
	.comm	_BNXT_LINK_PAUSE_BOTH,4,2       ## @BNXT_LINK_PAUSE_BOTH
	.no_dead_strip	_bnxt_probe_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_probe_phy
_bnxt_probe_phy:                        ; @bnxt_probe_phy
	.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	x21, x1
	mov	x19, x0
	bl	_bnxt_hwrm_phy_qcaps
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_bnxt_update_link
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x2, x20
	bl	_netdev_err
LBB0_5:
	mov	x0, x20
	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
	ret
LBB0_6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #64]
	str	x8, [x19, #72]
LBB0_9:
	cbz	w21, LBB0_15
; %bb.10:
	ldr	w0, [x19, #56]
	bl	_BNXT_AUTO_MODE
Lloh4:
	adrp	x8, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BNXT_AUTONEG_FLOW_CTRL@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.11:
Lloh6:
	adrp	x9, _BNXT_AUTONEG_SPEED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_AUTONEG_SPEED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	ldr	w10, [x19]
	mov	w11, #513
	movk	w11, #1, lsl #16
	cmp	w10, w11
	b.lt	LBB0_13
; %bb.12:
	ldr	w10, [x19, #12]
Lloh9:
	adrp	x11, _PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_14
LBB0_13:
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_14:
	ldr	x10, [x19, #40]
	str	x10, [x19, #48]
	b	LBB0_17
LBB0_15:
	mov	w20, #0
	b	LBB0_5
LBB0_16:
	ldr	w9, [x19, #32]
	str	w9, [x19, #36]
	ldr	w9, [x19, #24]
	str	w9, [x19, #28]
	ldr	w9, [x19, #8]
LBB0_17:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_19
; %bb.18:
	mov	w20, #0
	ldr	w8, [x19, #12]
Lloh12:
	adrp	x9, _BNXT_LINK_PAUSE_BOTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNXT_LINK_PAUSE_BOTH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
	b	LBB0_20
LBB0_19:
	mov	w20, #0
	ldr	w8, [x19, #20]
LBB0_20:
	str	w8, [x19, #16]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probe phy can't get phy capabilities (rc: %x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Probe phy can't update link (rc: %x)\n"

	.comm	_BNXT_AUTONEG_SPEED,4,2         ; @BNXT_AUTONEG_SPEED
	.comm	_PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE,4,2 ; @PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE
	.comm	_BNXT_AUTONEG_FLOW_CTRL,4,2     ; @BNXT_AUTONEG_FLOW_CTRL
	.comm	_BNXT_LINK_PAUSE_BOTH,4,2       ; @BNXT_LINK_PAUSE_BOTH
	.no_dead_strip	_bnxt_probe_phy
.subsections_via_symbols
