	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_ethtool_self_test
_ef4_ethtool_self_test:                 ## @ef4_ethtool_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.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
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movq	8(%r13), %rdi
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.6:
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ef4_selftest
	movl	%eax, %ebx
LBB0_8:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	testl	%ebx, %ebx
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %r8
	cmoveq	%rax, %r8
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %r14
	leaq	L_.str.4(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_netif_info
	jmp	LBB0_9
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	xorl	%esi, %esi
	callq	_dev_open
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	callq	_netif_err
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_ef4_ethtool_fill_self_tests
	movq	%r12, %rdi
	callq	_kfree
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ef4_selftest
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	callq	_dev_close
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_STATE_READY,8,3                ## @STATE_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting %sline testing\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
L_.str.1:                               ## @.str.1
	.asciz	"off"

L_.str.2:                               ## @.str.2
	.asciz	"on"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
L_.str.3:                               ## @.str.3
	.asciz	"failed opening device.\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s %sline self-tests\n"

L_.str.5:                               ## @.str.5
	.asciz	"passed"

L_.str.6:                               ## @.str.6
	.asciz	"failed"

	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.no_dead_strip	_ef4_ethtool_self_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_ethtool_self_test
_ef4_ethtool_self_test:                 ; @ef4_ethtool_self_test
	.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	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _STATE_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STATE_READY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x26, _drv@GOTPAGE
Lloh10:
	ldr	x26, [x26, _drv@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	x2, [x21, #8]
	ldr	w8, [x19]
Lloh11:
	adrp	x24, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	adrp	x25, l_.str.1@PAGE
Lloh14:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh15:
	adrp	x27, l_.str.2@PAGE
Lloh16:
	add	x27, x27, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x4, x27, x25, eq
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netif_info
	ldr	x0, [x21, #8]
	ldr	w8, [x0]
Lloh19:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_ef4_selftest
	mov	x23, x0
LBB0_4:
	ldr	w1, [x26]
	ldr	x2, [x21, #8]
Lloh22:
	adrp	x8, l_.str.6@PAGE
Lloh23:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh24:
	adrp	x9, l_.str.5@PAGE
Lloh25:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w23, #0
	csel	x4, x9, x8, eq
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	csel	x8, x27, x25, eq
Lloh26:
	adrp	x3, l_.str.4@PAGE
Lloh27:
	add	x3, x3, l_.str.4@PAGEOFF
	str	x8, [sp]
	mov	x0, x21
	bl	_netif_info
	b	LBB0_7
LBB0_5:
	neg	w23, w23
	cbnz	w23, LBB0_8
	b	LBB0_9
LBB0_6:
Lloh28:
	adrp	x8, _EBUSY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x3, x20
	bl	_ef4_ethtool_fill_self_tests
	mov	x0, x22
	bl	_kfree
	cbz	w23, LBB0_9
LBB0_8:
Lloh31:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	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_10:
	mov	x1, #0
	bl	_dev_open
	cbz	w0, LBB0_12
; %bb.11:
	mov	x23, x0
	ldr	w1, [x26]
	ldr	x2, [x21, #8]
Lloh34:
	adrp	x3, l_.str.3@PAGE
Lloh35:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_netif_err
	b	LBB0_7
LBB0_12:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_ef4_selftest
	mov	x23, x0
	ldr	x0, [x21, #8]
	bl	_dev_close
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_STATE_READY,8,3                ; @STATE_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting %sline testing\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
l_.str.1:                               ; @.str.1
	.asciz	"off"

l_.str.2:                               ; @.str.2
	.asciz	"on"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
l_.str.3:                               ; @.str.3
	.asciz	"failed opening device.\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s %sline self-tests\n"

l_.str.5:                               ; @.str.5
	.asciz	"passed"

l_.str.6:                               ; @.str.6
	.asciz	"failed"

	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.no_dead_strip	_ef4_ethtool_self_test
.subsections_via_symbols
