	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_self_test
_qede_self_test:                        ## @qede_self_test
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_QED_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	andl	%r8d, %ecx
	movq	_ETH_TEST_FL_EXTERNAL_LB@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	sarl	$2, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_DP_VERBOSE
	movq	_QEDE_ETHTOOL_TEST_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_QED_LINK_LOOPBACK_INT_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qede_selftest_run_loopback
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_QEDE_ETHTOOL_INT_LOOPBACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*32(%rax)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_QEDE_ETHTOOL_INTERRUPT_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_5:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*24(%rax)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_QEDE_ETHTOOL_MEMORY_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_7:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_QEDE_ETHTOOL_REGISTER_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_QEDE_ETHTOOL_CLOCK_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_11:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_QEDE_ETHTOOL_NVRAM_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_DEBUG,4,2              ## @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Self-test command parameters: offline = %d, external_lb = %d\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ## @ETH_TEST_FL_EXTERNAL_LB
	.comm	_QEDE_ETHTOOL_TEST_MAX,4,2      ## @QEDE_ETHTOOL_TEST_MAX
	.comm	_QED_LINK_LOOPBACK_INT_PHY,4,2  ## @QED_LINK_LOOPBACK_INT_PHY
	.comm	_QEDE_ETHTOOL_INT_LOOPBACK,8,3  ## @QEDE_ETHTOOL_INT_LOOPBACK
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	_QEDE_ETHTOOL_INTERRUPT_TEST,8,3 ## @QEDE_ETHTOOL_INTERRUPT_TEST
	.comm	_QEDE_ETHTOOL_MEMORY_TEST,8,3   ## @QEDE_ETHTOOL_MEMORY_TEST
	.comm	_QEDE_ETHTOOL_REGISTER_TEST,8,3 ## @QEDE_ETHTOOL_REGISTER_TEST
	.comm	_QEDE_ETHTOOL_CLOCK_TEST,8,3    ## @QEDE_ETHTOOL_CLOCK_TEST
	.comm	_QEDE_ETHTOOL_NVRAM_TEST,8,3    ## @QEDE_ETHTOOL_NVRAM_TEST
	.no_dead_strip	_qede_self_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_self_test
_qede_self_test:                        ; @qede_self_test
	.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	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _QED_MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x22, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w3, w9, w8
Lloh5:
	adrp	x9, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	asr	w4, w8, #2
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
Lloh10:
	adrp	x8, _QEDE_ETHTOOL_TEST_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QEDE_ETHTOOL_TEST_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
	ldr	w9, [x22]
Lloh13:
	adrp	x22, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _QED_LINK_LOOPBACK_INT_PHY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QED_LINK_LOOPBACK_INT_PHY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_qede_selftest_run_loopback
	cbz	x0, LBB0_3
; %bb.2:
Lloh18:
	adrp	x8, _QEDE_ETHTOOL_INT_LOOPBACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QEDE_ETHTOOL_INT_LOOPBACK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #32]
	ldr	w0, [x21]
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
Lloh21:
	adrp	x8, _QEDE_ETHTOOL_INTERRUPT_TEST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QEDE_ETHTOOL_INTERRUPT_TEST@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	ldr	w0, [x21]
	blr	x8
	cbz	x0, LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _QEDE_ETHTOOL_MEMORY_TEST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QEDE_ETHTOOL_MEMORY_TEST@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	ldr	w0, [x21]
	blr	x8
	cbz	x0, LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _QEDE_ETHTOOL_REGISTER_TEST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QEDE_ETHTOOL_REGISTER_TEST@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w0, [x21]
	blr	x8
	cbz	x0, LBB0_11
; %bb.10:
Lloh30:
	adrp	x8, _QEDE_ETHTOOL_CLOCK_TEST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _QEDE_ETHTOOL_CLOCK_TEST@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	blr	x8
	cbz	x0, LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _QEDE_ETHTOOL_NVRAM_TEST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _QEDE_ETHTOOL_NVRAM_TEST@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_DEBUG,4,2              ; @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Self-test command parameters: offline = %d, external_lb = %d\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ; @ETH_TEST_FL_EXTERNAL_LB
	.comm	_QEDE_ETHTOOL_TEST_MAX,4,2      ; @QEDE_ETHTOOL_TEST_MAX
	.comm	_QED_LINK_LOOPBACK_INT_PHY,4,2  ; @QED_LINK_LOOPBACK_INT_PHY
	.comm	_QEDE_ETHTOOL_INT_LOOPBACK,8,3  ; @QEDE_ETHTOOL_INT_LOOPBACK
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	_QEDE_ETHTOOL_INTERRUPT_TEST,8,3 ; @QEDE_ETHTOOL_INTERRUPT_TEST
	.comm	_QEDE_ETHTOOL_MEMORY_TEST,8,3   ; @QEDE_ETHTOOL_MEMORY_TEST
	.comm	_QEDE_ETHTOOL_REGISTER_TEST,8,3 ; @QEDE_ETHTOOL_REGISTER_TEST
	.comm	_QEDE_ETHTOOL_CLOCK_TEST,8,3    ; @QEDE_ETHTOOL_CLOCK_TEST
	.comm	_QEDE_ETHTOOL_NVRAM_TEST,8,3    ; @QEDE_ETHTOOL_NVRAM_TEST
	.no_dead_strip	_qede_self_test
.subsections_via_symbols
