	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether3_ramtest
_ether3_ramtest:                        ## @ether3_ramtest
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_RX_END@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %edx
	movzbl	%r14b, %r13d
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_memset
	movq	_buffer_write@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ether3_setbuffer
	movq	_TX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ether3_writebuffer
	movl	(%r12), %esi
	movq	_RX_START@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_ether3_setbuffer
	movslq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	_RX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ether3_writebuffer
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %eax
	notb	%al
	movq	_RX_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	%al, %esi
	movq	%rbx, %rdi
	callq	_memset
	movq	_buffer_read@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ether3_setbuffer
	movq	_TX_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ether3_readbuffer
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_ether3_setbuffer
	movslq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	_RX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ether3_readbuffer
	movq	_RX_END@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_16
## %bb.3:
	movl	$4, %r13d
	movl	$-1, %eax
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	$-1, %eax
	movq	_RX_END@GOTPCREL(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%rsi), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r12), %edx
	cmpb	%r14b, %dl
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-1(%r12), %rsi
	cmpl	%eax, %esi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, %eax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_printk
	movq	_RX_END@GOTPCREL(%rip), %rsi
	decl	%r13d
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, %eax
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_17
LBB0_14:
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_16:
	movq	%rbx, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_END,4,2                     ## @RX_END
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_buffer_write,4,2               ## @buffer_write
	.comm	_TX_END,4,2                     ## @TX_END
	.comm	_RX_START,4,2                   ## @RX_START
	.comm	_RX_LEN,4,2                     ## @RX_LEN
	.comm	_buffer_read,4,2                ## @buffer_read
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: RAM failed with (%02X instead of %02X) at 0x%04X"

L_.str.1:                               ## @.str.1
	.asciz	" - 0x%04X\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	" - 0xffff\n"

	.no_dead_strip	_ether3_ramtest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether3_ramtest
_ether3_ramtest:                        ; @ether3_ramtest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x26, _RX_END@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RX_END@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w2, [x26]
	mov	x1, x20
	bl	_memset
Lloh5:
	adrp	x22, _buffer_write@GOTPAGE
Lloh6:
	ldr	x22, [x22, _buffer_write@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_ether3_setbuffer
Lloh7:
	adrp	x23, _TX_END@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TX_END@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x19
	bl	_ether3_writebuffer
	ldr	w1, [x22]
Lloh9:
	adrp	x22, _RX_START@GOTPAGE
Lloh10:
	ldr	x22, [x22, _RX_START@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_ether3_setbuffer
	ldrsw	x8, [x22]
	add	x1, x19, x8
Lloh11:
	adrp	x24, _RX_LEN@GOTPAGE
Lloh12:
	ldr	x24, [x24, _RX_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_ether3_writebuffer
	ldr	w2, [x26]
	eor	w1, w20, #0xff
	mov	x0, x19
	bl	_memset
Lloh13:
	adrp	x25, _buffer_read@GOTPAGE
Lloh14:
	ldr	x25, [x25, _buffer_read@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	mov	w2, #0
	bl	_ether3_setbuffer
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x19
	bl	_ether3_readbuffer
	ldr	w1, [x25]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_ether3_setbuffer
	ldrsw	x8, [x22]
	add	x1, x19, x8
	ldr	w2, [x24]
	mov	x0, x21
	bl	_ether3_readbuffer
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x27, #0
	mov	w22, #0
	mov	w24, #4
	mov	w8, #-1
Lloh15:
	adrp	x23, l_.str.2@PAGE
Lloh16:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh17:
	adrp	x25, l_.str@PAGE
Lloh18:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_printk
	mov	w8, #-1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x9, [x26]
	cmp	x27, x9
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x27]
	cmp	w9, w20
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x9, x27, #1
	cmp	w9, w8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x9, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	subs	w28, w24, #1
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	stp	x20, x27, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x25
	bl	_printk
	mov	w22, #2
	mov	x24, x28
	mov	x8, x27
	b	LBB0_4
LBB0_12:
	cmn	w8, #1
	b.eq	LBB0_16
; %bb.13:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
	b	LBB0_16
LBB0_14:
	mov	w22, #1
	b	LBB0_17
LBB0_15:
	mov	w22, #0
LBB0_16:
	mov	x0, x19
	bl	_kfree
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_END,4,2                     ; @RX_END
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_buffer_write,4,2               ; @buffer_write
	.comm	_TX_END,4,2                     ; @TX_END
	.comm	_RX_START,4,2                   ; @RX_START
	.comm	_RX_LEN,4,2                     ; @RX_LEN
	.comm	_buffer_read,4,2                ; @buffer_read
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: RAM failed with (%02X instead of %02X) at 0x%04X"

l_.str.1:                               ; @.str.1
	.asciz	" - 0x%04X\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	" - 0xffff\n"

	.no_dead_strip	_ether3_ramtest
.subsections_via_symbols
