	.file	"extr_w5200.c_wiz_send_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wiz_send_data
	.type	wiz_send_data, @function
wiz_send_data:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	jne	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	getSn_TX_WR@PLT
	mov	rbp, QWORD PTR SMASK[rip]
	mov	edi, r12d
	mov	r14, rax
	and	rbp, rax
	call	SBASE@PLT
	mov	rcx, QWORD PTR SSIZE[rip]
	lea	rdi, [rax+rbp]
	lea	rax, [rbx+rbp]
	cmp	rax, rcx
	jle	.L3
	sub	rcx, rbp
	mov	rsi, r13
	mov	r15, rbx
	mov	rdx, rcx
	mov	rbp, rcx
	call	WIZCHIP_WRITE_BUF@PLT
	mov	edi, r12d
	sub	r15, rbp
	lea	rbp, 0[r13+rbp*4]
	call	SBASE@PLT
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, rax
	call	WIZCHIP_WRITE_BUF@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rsi, [rbx+r14]
	mov	edi, r12d
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	setSn_TX_WR@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, rbx
	mov	rsi, r13
	call	WIZCHIP_WRITE_BUF@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	wiz_send_data, .-wiz_send_data
	.comm	SSIZE,8,8
	.comm	SMASK,8,8
	.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_w5200.c_wiz_send_data.c"
	.text
	.align	2
	.global	wiz_send_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	wiz_send_data, %function
wiz_send_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r2, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r7, r1
	mov	r4, r0
	bl	getSn_TX_WR
	mov	r8, r0
	ldr	r3, .L7
	mov	r0, r4
	ldr	r6, [r3]
	bl	SBASE
	ldr	r2, .L7+4
	and	r6, r6, r8
	ldr	r2, [r2]
	add	r3, r5, r6
	cmp	r3, r2
	add	r0, r0, r6
	ble	.L3
	sub	r6, r2, r6
	mov	r2, r6
	mov	r1, r7
	bl	WIZCHIP_WRITE_BUF
	mov	r0, r4
	bl	SBASE
	add	r1, r7, r6, lsl #2
	sub	r2, r5, r6
	bl	WIZCHIP_WRITE_BUF
	mov	r0, r4
	add	r1, r5, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	setSn_TX_WR
.L3:
	mov	r1, r7
	mov	r2, r5
	bl	WIZCHIP_WRITE_BUF
	mov	r0, r4
	add	r1, r5, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	setSn_TX_WR
.L8:
	.align	2
.L7:
	.word	SMASK
	.word	SSIZE
	.size	wiz_send_data, .-wiz_send_data
	.comm	SSIZE,4,4
	.comm	SMASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
