	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_selftest_run            ## -- Begin function stmmac_selftest_run
	.p2align	4, 0x90
_stmmac_selftest_run:                   ## @stmmac_selftest_run
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_stmmac_selftest_get_count
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rbx
	callq	_netif_carrier_ok
	movl	%eax, %r14d
	leal	(,%r13,4), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_stmmac_test_next_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r15), %eax
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_carrier_off
	movl	$200, %edi
	callq	_msleep
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.6:
	movl	%r13d, %r14d
	shlq	$2, %r14
	xorl	%r13d, %r13d
	movq	_stmmac_selftests@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_stmmac_set_mac_loopback
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r13
	cmpq	%r13, %r14
	je	LBB0_29
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %eax
	cmpl	$130, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %eax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %esi
	callq	_phy_loopback
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_18
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_stmmac_set_mac_loopback
	testl	%eax, %eax
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	%r12, %rdi
	callq	*8(%rax,%r13,4)
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	orl	%ecx, (%rdx)
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, (%rbx,%r13)
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %eax
	cmpl	$130, %eax
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %eax
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%esi, %esi
	callq	_phy_loopback
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_28
LBB0_1:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_netdev_err
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stmmac_test_next_id,8,3        ## @stmmac_test_next_id
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only offline tests are supported\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"You need valid Link to execute tests\n"

	.comm	_stmmac_selftests,8,3           ## @stmmac_selftests
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"Loopback is not supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_selftest_run            ; -- Begin function stmmac_selftest_run
	.p2align	2
_stmmac_selftest_run:                   ; @stmmac_selftest_run
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	bl	_stmmac_selftest_get_count
	mov	x23, x0
	mov	x0, x20
	bl	_netif_carrier_ok
	mov	x24, x0
	lsl	w2, w23, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _stmmac_test_next_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stmmac_test_next_id@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.1:
	cbz	w24, LBB0_23
; %bb.2:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	w0, #200
	bl	_msleep
	cmp	w23, #1
	b.lt	LBB0_26
; %bb.3:
	mov	x24, #0
	mov	w8, w23
	lsl	x25, x8, #4
Lloh6:
	adrp	x26, _stmmac_selftests@GOTPAGE
Lloh7:
	ldr	x26, [x26, _stmmac_selftests@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	adrp	x23, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22]
	mov	x0, x22
	mov	w2, #0
	bl	_stmmac_set_mac_loopback
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #4
	add	x24, x24, #16
	cmp	x25, x24
	b.eq	LBB0_26
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8, x24]
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #1
	bl	_phy_loopback
	cbnz	w0, LBB0_13
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	neg	w0, w8
	cbz	w0, LBB0_14
	b	LBB0_25
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	neg	w0, w8
	cbz	w0, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22]
	mov	x0, x22
	mov	w2, #1
	bl	_stmmac_set_mac_loopback
	cbnz	w0, LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	cmn	w0, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x21]
	ldr	x8, [x26]
	ldr	w8, [x8, x24]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	cbz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #0
	bl	_phy_loopback
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	neg	w0, w8
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_22:
	ldr	w0, [x22, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_23:
	ldr	w0, [x22, #4]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_24:
	bl	_netdev_err
Lloh16:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	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
LBB0_25:
	ldr	w0, [x22, #4]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_26:
	mov	x0, x20
	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
	b	_netif_carrier_on
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_stmmac_test_next_id,8,3        ; @stmmac_test_next_id
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only offline tests are supported\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"You need valid Link to execute tests\n"

	.comm	_stmmac_selftests,8,3           ; @stmmac_selftests
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"Loopback is not supported\n"

.subsections_via_symbols
