	.file	"extr_dm9000.c_dm9000_send_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dm9000_send_packet, @function
dm9000_send_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	to_dm9000_board@PLT
	mov	rbp, rax
	cmp	DWORD PTR [rax], r12d
	je	.L2
	cmp	DWORD PTR CHECKSUM_NONE[rip], r12d
	mov	esi, DWORD PTR DM9000_TCCR[rip]
	je	.L7
	mov	edx, DWORD PTR TCCR_IP[rip]
	mov	rdi, rax
	or	edx, DWORD PTR TCCR_UDP[rip]
	or	edx, DWORD PTR TCCR_TCP[rip]
	call	iow@PLT
.L4:
	mov	DWORD PTR 0[rbp], r12d
.L2:
	mov	esi, DWORD PTR DM9000_TXPLL[rip]
	mov	edx, ebx
	mov	rdi, rbp
	sar	ebx, 8
	call	iow@PLT
	mov	esi, DWORD PTR DM9000_TXPLH[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	iow@PLT
	mov	edx, DWORD PTR TCR_TXREQ[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, DWORD PTR DM9000_TCR[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	iow@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	edx, edx
	mov	rdi, rax
	call	iow@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dm9000_send_packet, .-dm9000_send_packet
	.comm	TCR_TXREQ,4,4
	.comm	TCCR_UDP,4,4
	.comm	TCCR_TCP,4,4
	.comm	TCCR_IP,4,4
	.comm	DM9000_TXPLL,4,4
	.comm	DM9000_TXPLH,4,4
	.comm	DM9000_TCR,4,4
	.comm	DM9000_TCCR,4,4
	.comm	CHECKSUM_NONE,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_dm9000.c_dm9000_send_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm9000_send_packet, %function
dm9000_send_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r2
	bl	to_dm9000_board
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, r5
	beq	.L2
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	cmp	r3, r5
	ldrne	r3, .L7+8
	ldrne	ip, .L7+12
	ldrne	r2, .L7+16
	ldrne	r3, [r3]
	ldrne	ip, [ip]
	ldrne	r2, [r2]
	orrne	r3, r3, ip
	moveq	r2, #0
	orrne	r2, r3, r2
	bl	iow
	str	r5, [r4]
.L2:
	ldr	r3, .L7+20
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	iow
	ldr	r3, .L7+24
	asr	r2, r6, #8
	ldr	r1, [r3]
	mov	r0, r4
	bl	iow
	ldr	r2, .L7+28
	ldr	r3, .L7+32
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	iow
.L8:
	.align	2
.L7:
	.word	CHECKSUM_NONE
	.word	DM9000_TCCR
	.word	TCCR_IP
	.word	TCCR_UDP
	.word	TCCR_TCP
	.word	DM9000_TXPLL
	.word	DM9000_TXPLH
	.word	TCR_TXREQ
	.word	DM9000_TCR
	.size	dm9000_send_packet, .-dm9000_send_packet
	.comm	TCR_TXREQ,4,4
	.comm	TCCR_UDP,4,4
	.comm	TCCR_TCP,4,4
	.comm	TCCR_IP,4,4
	.comm	DM9000_TXPLL,4,4
	.comm	DM9000_TXPLH,4,4
	.comm	DM9000_TCR,4,4
	.comm	DM9000_TCCR,4,4
	.comm	CHECKSUM_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
