	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_test_eee
_stmmac_test_eee:                       ## @stmmac_test_eee
	.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
	cmpl	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 4(%rdi)
	je	LBB0_2
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_stmmac_test_mac_loopback
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.10:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.11:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.12:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.13:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.14:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.15:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.16:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jg	LBB0_19
## %bb.17:
	movl	$100, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jle	LBB0_18
LBB0_19:
	movq	8(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	8(%r15), %rax
	jg	LBB0_22
## %bb.20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_23
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movq	%r15, %rdi
	callq	_kfree
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	$100, %edi
	callq	_msleep
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stmmac_test_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_test_eee
_stmmac_test_eee:                       ; @stmmac_test_eee
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_16
; %bb.2:
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.3:
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	mov	x0, x21
	bl	_stmmac_test_mac_loopback
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.6:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.7:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.8:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.9:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.10:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.11:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.12:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_14
; %bb.13:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_25
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_20
; %bb.15:
	mov	w22, #0
	b	LBB0_22
LBB0_16:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_18:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_19:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_23
LBB0_20:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	mov	x0, x20
	bl	_kfree
LBB0_23:
	mov	x0, x19
	bl	_kfree
LBB0_24:
	mov	x0, x22
	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_25:
	mov	w0, #100
	bl	_msleep
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stmmac_test_eee
.subsections_via_symbols
