	.file	"extr_ip_fw_table.c_prepare_batch_buffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prepare_batch_buffer, @function
prepare_batch_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rsi]
	mov	DWORD PTR 4[rsp], ecx
	mov	QWORD PTR 24[rsp], r9
	mov	QWORD PTR 8[rsp], rax
	cmp	ecx, 1
	je	.L13
	movsx	rdi, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR M_WAITOK[rip]
	imul	rdi, QWORD PTR 8[rsp]
	or	edx, DWORD PTR M_ZERO[rip]
	cmp	DWORD PTR OP_ADD[rip], r8d
	mov	esi, DWORD PTR M_TEMP[rip]
	jne	.L4
	add	rdi, rdi
.L4:
	call	malloc@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jle	.L9
.L3:
	mov	r14, QWORD PTR 16[rsp]
	xor	r15d, r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	call	[QWORD PTR 16[rbp]]
	test	eax, eax
	jne	.L5
.L14:
	add	r15d, 1
	add	r14, QWORD PTR 8[rsp]
	add	rbx, 4
	cmp	DWORD PTR 4[rsp], r15d
	jle	.L5
.L8:
	cmp	DWORD PTR OP_ADD[rip], r12d
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, r13
	jne	.L6
	call	[QWORD PTR 8[rbp]]
	test	eax, eax
	je	.L14
.L5:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR [rdx], rdi
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR TA_BUF_SZ[rip]
	mov	rdi, QWORD PTR [r9]
	mov	r15, r9
	xor	esi, esi
	call	memset@PLT
	mov	rax, QWORD PTR [r15]
	mov	QWORD PTR 16[rsp], rax
	jmp	.L3
.L9:
	xor	eax, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	prepare_batch_buffer, .-prepare_batch_buffer
	.comm	TA_BUF_SZ,4,4
	.comm	OP_ADD,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,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_ip_fw_table.c_prepare_batch_buffer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_batch_buffer, %function
prepare_batch_buffer:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #1
	mov	r6, r3
	mov	r7, r1
	mov	r8, r0
	mov	r4, r2
	ldr	r10, [r1]
	sub	sp, sp, #12
	beq	.L14
	ldr	r9, .L16
	mul	r0, r10, r3
	ldr	r2, [r9]
	ldr	r3, [sp, #48]
	ldr	r1, .L16+4
	cmp	r2, r3
	ldr	r2, .L16+8
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, .L16+12
	lsleq	r0, r0, #1
	ldr	r1, [r1]
	orr	r2, ip, r2
	bl	malloc
	cmp	r6, #0
	str	r0, [sp, #4]
	ble	.L9
.L3:
	mov	r3, r6
	ldr	fp, [sp, #4]
	mov	r5, #0
	mov	r6, fp
	mov	fp, r7
	mov	r7, r3
	b	.L8
.L15:
	cmp	r7, r5
	add	r6, r6, r10
	add	r4, r4, #4
	ble	.L5
.L8:
	ldr	r3, [r9]
	ldr	r2, [sp, #48]
	mov	r1, r4
	cmp	r3, r2
	ldreq	r3, [fp, #4]
	ldrne	r3, [fp, #8]
	mov	r2, r6
	mov	r0, r8
	blx	r3
	cmp	r0, #0
	add	r5, r5, #1
	beq	.L15
.L5:
	ldr	r3, [sp, #52]
	ldr	r2, [sp, #4]
	str	r2, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L16+16
	mov	r1, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	ldr	r9, .L16
	ldr	r0, [r3]
	bl	memset
	ldr	r3, [sp, #52]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	b	.L3
.L9:
	mov	r0, #0
	b	.L5
.L17:
	.align	2
.L16:
	.word	OP_ADD
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_TEMP
	.word	TA_BUF_SZ
	.size	prepare_batch_buffer, .-prepare_batch_buffer
	.comm	TA_BUF_SZ,4,4
	.comm	OP_ADD,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
