	.file	"extr_macsonic.c_macsonic_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	macsonic_init, @function
macsonic_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	r12d, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	SONIC_BUS_SCALE@PLT
	mov	edi, DWORD PTR 88[rbx]
	lea	rdx, 40[rbx]
	mov	ecx, r12d
	imul	eax, DWORD PTR SIZEOF_SONIC_DESC[rip]
	mov	esi, eax
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 80[rbx], rax
	test	rax, rax
	je	.L6
	mov	QWORD PTR 72[rbx], rax
	mov	edi, DWORD PTR [rbx]
	mov	rbp, rax
	call	SONIC_BUS_SCALE@PLT
	imul	eax, DWORD PTR SIZEOF_SONIC_CDA[rip]
	mov	edi, DWORD PTR [rbx]
	cdqe
	lea	r12, 0[rbp+rax*4]
	mov	ebp, DWORD PTR SIZEOF_SONIC_TD[rip]
	mov	QWORD PTR 64[rbx], r12
	imul	ebp, DWORD PTR SONIC_NUM_TDS[rip]
	call	SONIC_BUS_SCALE@PLT
	mov	edi, DWORD PTR [rbx]
	imul	ebp, eax
	movsx	rbp, ebp
	lea	r12, [r12+rbp*4]
	mov	ebp, DWORD PTR SIZEOF_SONIC_RD[rip]
	mov	QWORD PTR 48[rbx], r12
	imul	ebp, DWORD PTR SONIC_NUM_RDS[rip]
	call	SONIC_BUS_SCALE@PLT
	mov	edi, DWORD PTR [rbx]
	imul	ebp, eax
	movsx	rbp, ebp
	lea	rax, [r12+rbp*4]
	mov	r12, QWORD PTR 40[rbx]
	mov	QWORD PTR 56[rbx], rax
	mov	QWORD PTR 32[rbx], r12
	call	SONIC_BUS_SCALE@PLT
	imul	eax, DWORD PTR SIZEOF_SONIC_CDA[rip]
	mov	edi, DWORD PTR [rbx]
	movsx	rbp, eax
	add	r12, rbp
	mov	ebp, DWORD PTR SIZEOF_SONIC_TD[rip]
	imul	ebp, DWORD PTR SONIC_NUM_TDS[rip]
	mov	QWORD PTR 24[rbx], r12
	call	SONIC_BUS_SCALE@PLT
	mov	edi, DWORD PTR [rbx]
	imul	ebp, eax
	movsx	rbp, ebp
	add	rbp, r12
	mov	r12d, DWORD PTR SIZEOF_SONIC_RD[rip]
	imul	r12d, DWORD PTR SONIC_NUM_RDS[rip]
	mov	QWORD PTR 8[rbx], rbp
	call	SONIC_BUS_SCALE@PLT
	mov	edi, DWORD PTR SONIC_CRCT[rip]
	mov	esi, 65535
	imul	r12d, eax
	lea	rax, macsonic_netdev_ops[rip]
	movsx	r12, r12d
	add	rbp, r12
	mov	QWORD PTR 16[rbx], rbp
	mov	QWORD PTR 8[r13], rax
	mov	eax, DWORD PTR TX_TIMEOUT[rip]
	mov	DWORD PTR 0[r13], eax
	call	SONIC_WRITE@PLT
	mov	edi, DWORD PTR SONIC_FAET[rip]
	mov	esi, 65535
	call	SONIC_WRITE@PLT
	mov	edi, DWORD PTR SONIC_MPT[rip]
	mov	esi, 65535
	call	SONIC_WRITE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	macsonic_init, .-macsonic_init
	.comm	macsonic_netdev_ops,4,4
	.comm	TX_TIMEOUT,4,4
	.comm	SONIC_NUM_TDS,4,4
	.comm	SONIC_NUM_RDS,4,4
	.comm	SONIC_MPT,4,4
	.comm	SONIC_FAET,4,4
	.comm	SONIC_CRCT,4,4
	.comm	SIZEOF_SONIC_TD,4,4
	.comm	SIZEOF_SONIC_RD,4,4
	.comm	SIZEOF_SONIC_DESC,4,4
	.comm	SIZEOF_SONIC_CDA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_macsonic.c_macsonic_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macsonic_init, %function
macsonic_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r6, r0
	bl	netdev_priv
	mov	r5, r0
	mov	r4, r0
	ldr	r0, [r5], #20
	ldr	r7, [r4, #44]
	bl	SONIC_BUS_SCALE
	mov	r1, r0
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	ip, [r2]
	mov	r0, r7
	mov	r2, r5
	mul	r1, ip, r1
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #40]
	beq	.L6
	str	r0, [r4, #36]
	mov	r5, r0
	ldr	r0, [r4]
	bl	SONIC_BUS_SCALE
	ldr	r3, .L7+8
	ldr	fp, .L7+12
	ldr	r2, [r3]
	ldr	r10, .L7+16
	mul	r0, r2, r0
	ldr	r7, [fp]
	ldr	r2, [r10]
	add	r5, r5, r0, lsl #2
	str	r5, [r4, #32]
	ldr	r0, [r4]
	mul	r7, r2, r7
	bl	SONIC_BUS_SCALE
	mul	r7, r0, r7
	ldr	r9, .L7+20
	ldr	r8, .L7+24
	add	r5, r5, r7, lsl #2
	ldr	r2, [r8]
	ldr	r7, [r9]
	str	r5, [r4, #24]
	ldr	r0, [r4]
	mul	r7, r2, r7
	bl	SONIC_BUS_SCALE
	mul	r7, r0, r7
	ldr	r2, [r4, #20]
	add	r7, r5, r7, lsl #2
	str	r7, [r4, #28]
	str	r2, [r4, #16]
	ldr	r0, [r4]
	str	r2, [sp, #4]
	bl	SONIC_BUS_SCALE
	ldr	r3, .L7+8
	ldr	r2, [sp, #4]
	ldr	r7, [r3]
	ldr	r5, [fp]
	mla	r7, r0, r7, r2
	ldr	r3, [r10]
	str	r7, [r4, #12]
	ldr	r0, [r4]
	mul	r5, r3, r5
	bl	SONIC_BUS_SCALE
	mla	r5, r0, r5, r7
	ldr	r3, [r8]
	ldr	r7, [r9]
	str	r5, [r4, #4]
	ldr	r0, [r4]
	mul	r7, r3, r7
	bl	SONIC_BUS_SCALE
	ldr	r3, .L7+28
	mla	r5, r0, r7, r5
	ldr	r2, [r3]
	ldr	r1, .L7+32
	ldr	r3, .L7+36
	ldr	r0, [r1]
	str	r5, [r4, #8]
	ldr	r1, .L7+40
	stm	r6, {r2, r3}
	bl	SONIC_WRITE
	ldr	r3, .L7+44
	ldr	r1, .L7+40
	ldr	r0, [r3]
	bl	SONIC_WRITE
	ldr	r3, .L7+48
	ldr	r1, .L7+40
	ldr	r0, [r3]
	bl	SONIC_WRITE
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r3, .L7+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	SIZEOF_SONIC_DESC
	.word	GFP_KERNEL
	.word	SIZEOF_SONIC_CDA
	.word	SIZEOF_SONIC_TD
	.word	SONIC_NUM_TDS
	.word	SIZEOF_SONIC_RD
	.word	SONIC_NUM_RDS
	.word	TX_TIMEOUT
	.word	SONIC_CRCT
	.word	macsonic_netdev_ops
	.word	65535
	.word	SONIC_FAET
	.word	SONIC_MPT
	.word	ENOMEM
	.size	macsonic_init, .-macsonic_init
	.comm	macsonic_netdev_ops,4,4
	.comm	TX_TIMEOUT,4,4
	.comm	SONIC_NUM_TDS,4,4
	.comm	SONIC_NUM_RDS,4,4
	.comm	SONIC_MPT,4,4
	.comm	SONIC_FAET,4,4
	.comm	SONIC_CRCT,4,4
	.comm	SIZEOF_SONIC_TD,4,4
	.comm	SIZEOF_SONIC_RD,4,4
	.comm	SIZEOF_SONIC_DESC,4,4
	.comm	SIZEOF_SONIC_CDA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
