	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_init_ring
_lance_init_ring:                       ## @lance_init_ring
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	48(%rax), %r14
	movq	56(%rax), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, 32(%rax)
	movq	_LE_MO_PROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	56(%r13), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movq	56(%r13), %rdx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movq	56(%r13), %rdx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %ecx
	movq	56(%r13), %rdx
	movl	%ecx, 12(%rdx)
	movl	16(%rax), %ecx
	movq	56(%r13), %rdx
	movl	%ecx, 16(%rdx)
	movl	20(%rax), %eax
	movq	56(%r13), %rcx
	movl	%eax, 20(%rcx)
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_2:
	movq	$0, 8(%r12)
	cmpl	$31, (%r12)
	jne	LBB0_3
LBB0_7:
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_9:
	cmpl	$31, 4(%r12)
	jne	LBB0_10
LBB0_14:
	leaq	32(%r14), %rdi
	callq	_LANCE_ADDR
	movl	4(%r12), %ecx
	shll	$13, %ecx
	movl	%eax, %edx
	sarl	$16, %edx
	orl	%ecx, %edx
	movl	%edx, (%r13)
	movl	%eax, 4(%r13)
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printk
LBB0_16:
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_LANCE_ADDR
	movl	(%r12), %ecx
	shll	$13, %ecx
	movl	%eax, %edx
	sarl	$16, %edx
	orl	%ecx, %edx
	movl	%edx, 8(%r13)
	movl	%eax, 12(%r13)
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printk
LBB0_18:
	movq	16(%r13), %rax
	movq	$0, (%rax)
	movq	16(%r13), %rax
	movq	$0, 8(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PRINT_RINGS                    ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r12), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%r15
	cltq
	addq	$56, %rbx
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_LANCE_ADDR
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	24(%r13), %rdx
	movl	%ecx, 4(%rdx,%rbx)
	movq	24(%r13), %rcx
	movq	$0, 48(%rcx,%rbx)
	movq	24(%r13), %rcx
	movl	$61440, 8(%rcx,%rbx)            ## imm = 0xF000
	movq	24(%r13), %rcx
	movq	$0, 40(%rcx,%rbx)
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_6
LBB0_10:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movzbl	4(%r12), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%rbx
	cltq
	addq	$56, %r15
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_LANCE_ADDR
	movq	32(%r13), %rcx
	movl	%eax, 12(%rcx,%r15)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	32(%r13), %rdx
	movl	%ecx, 16(%rdx,%r15)
	movq	_LE_R1_OWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	32(%r13), %rdx
	movl	%ecx, 32(%rdx,%r15)
	xorl	%ecx, %ecx
	movq	_RX_BUFF_SIZE@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	orl	$61440, %ecx                    ## imm = 0xF000
	movq	32(%r13), %rdx
	movl	%ecx, 8(%rdx,%r15)
	movq	32(%r13), %rcx
	movq	$0, 24(%rcx,%r15)
	movq	_DEBUG_IRING@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_MO_PROM,4,2                 ## @LE_MO_PROM
	.comm	_DEBUG_IRING,8,3                ## @DEBUG_IRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX rings:\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d: 0x%8.8x\n"

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

	.comm	_LE_R1_OWN,4,2                  ## @LE_R1_OWN
	.comm	_RX_BUFF_SIZE,4,2               ## @RX_BUFF_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"RX ptr: %8.8x\n"

L_.str.4:                               ## @.str.4
	.asciz	"TX ptr: %8.8x\n"

	.no_dead_strip	_lance_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_init_ring
_lance_init_ring:                       ; @lance_init_ring
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	x22, x21, [x0, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #16]
Lloh0:
	adrp	x8, _LE_MO_PROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_MO_PROM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #64]
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	x10, [x21, #56]
	str	w9, [x10]
	ldr	w9, [x8, #4]
	ldr	x10, [x21, #56]
	str	w9, [x10, #4]
	ldr	w9, [x8, #8]
	ldr	x10, [x21, #56]
	str	w9, [x10, #8]
	ldr	w9, [x8, #12]
	ldr	x10, [x21, #56]
	str	w9, [x10, #12]
	ldr	w9, [x8, #16]
	ldr	x10, [x21, #56]
	str	w9, [x10, #16]
	ldr	w8, [x8, #20]
	ldr	x9, [x21, #56]
	str	w8, [x9, #20]
Lloh3:
	adrp	x23, _DEBUG_IRING@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DEBUG_IRING@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
	str	xzr, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #31
	b.ne	LBB0_11
LBB0_3:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #31
	b.ne	LBB0_15
LBB0_6:
	add	x0, x22, #32
	bl	_LANCE_ADDR
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #4]
	lsl	w8, w8, #13
	orr	w8, w8, w0, asr #16
	str	w8, [x21]
	str	w0, [x21, #4]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
LBB0_8:
	add	x0, x22, #24
	bl	_LANCE_ADDR
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	lsl	w8, w8, #13
	orr	w8, w8, w0, asr #16
	str	w8, [x21, #8]
	str	w0, [x21, #12]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	str	x0, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
LBB0_10:
	ldr	x8, [x21, #16]
	str	xzr, [x8]
	ldr	x8, [x21, #16]
	str	xzr, [x8, #8]
	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
	b	_PRINT_RINGS
LBB0_11:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #61440
	mov	w27, #1
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	lsl	w8, w27, w8
	add	x24, x24, #56
	cmp	x25, w8, sxtw
	b.ge	LBB0_3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #48]
	ldr	x0, [x8, x25, lsl #3]
	bl	_LANCE_ADDR
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #24]
	str	w0, [x8, x24]
	asr	w8, w0, #16
	ldr	x9, [x21, #24]
	add	x9, x9, x24
	str	w8, [x9, #4]
	ldr	x8, [x21, #24]
	add	x8, x8, x24
	str	xzr, [x8, #48]
	ldr	x8, [x21, #24]
	add	x8, x8, x24
	str	w26, [x8, #8]
	ldr	x8, [x21, #24]
	add	x8, x8, x24
	str	xzr, [x8, #40]
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	stp	x25, x0, [sp]
	mov	x0, x20
	bl	_printk
	b	LBB0_12
LBB0_15:
	mov	x24, #0
	mov	x25, #0
Lloh15:
	adrp	x26, _LE_R1_OWN@GOTPAGE
Lloh16:
	ldr	x26, [x26, _LE_R1_OWN@GOTPAGEOFF]
Lloh17:
	adrp	x27, _RX_BUFF_SIZE@GOTPAGE
Lloh18:
	ldr	x27, [x27, _RX_BUFF_SIZE@GOTPAGEOFF]
	mov	w28, #1
Lloh19:
	adrp	x20, l_.str.1@PAGE
Lloh20:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x25, x25, #1
	ldr	w8, [x19, #4]
	lsl	w8, w28, w8
	add	x24, x24, #56
	cmp	x25, w8, sxtw
	b.ge	LBB0_6
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #40]
	ldr	x0, [x8, x25, lsl #3]
	bl	_LANCE_ADDR
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #32]
	add	x8, x8, x24
	str	w0, [x8, #12]
	asr	w8, w0, #16
	ldr	x9, [x21, #32]
	add	x9, x9, x24
	str	w8, [x9, #16]
	ldr	w8, [x26]
	ldr	x9, [x21, #32]
	add	x9, x9, x24
	str	w8, [x9, #32]
	ldr	w8, [x27]
	neg	w8, w8
	orr	w8, w8, #0xf000
	ldr	x9, [x21, #32]
	add	x9, x9, x24
	str	w8, [x9, #8]
	ldr	x8, [x21, #32]
	add	x8, x8, x24
	str	xzr, [x8, #24]
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	stp	x25, x0, [sp]
	mov	x0, x20
	bl	_printk
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_MO_PROM,4,2                 ; @LE_MO_PROM
	.comm	_DEBUG_IRING,8,3                ; @DEBUG_IRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX rings:\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d: 0x%8.8x\n"

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

	.comm	_LE_R1_OWN,4,2                  ; @LE_R1_OWN
	.comm	_RX_BUFF_SIZE,4,2               ; @RX_BUFF_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"RX ptr: %8.8x\n"

l_.str.4:                               ; @.str.4
	.asciz	"TX ptr: %8.8x\n"

	.no_dead_strip	_lance_init_ring
.subsections_via_symbols
