	.file	"extr_stk-webcam.c_stk_prepare_sio_buffers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sio_bufs already allocated\n"
	.text
	.p2align 4
	.type	stk_prepare_sio_buffers, @function
stk_prepare_sio_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, esi
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdi
	mov	esi, 4
	mov	edi, r12d
	call	kcalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L12
	xor	ebx, ebx
	test	r12d, r12d
	jne	.L8
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebx, 1
	mov	DWORD PTR 0[rbp], ebx
	cmp	ebx, r12d
	je	.L6
.L8:
	mov	esi, ebx
	mov	rdi, rbp
	call	stk_setup_siobuf@PLT
	test	rax, rax
	je	.L7
	cmp	DWORD PTR 0[rbp], 1
	jle	.L12
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	stk_prepare_sio_buffers, .-stk_prepare_sio_buffers
	.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_stk-webcam.c_stk_prepare_sio_buffers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sio_bufs already allocated\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stk_prepare_sio_buffers, %function
stk_prepare_sio_buffers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	cmp	r4, #0
	beq	.L2
	ldr	r0, .L13
	bl	pr_err
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, r1
	ldr	r3, .L13+4
	mov	r5, r0
	mov	r1, #4
	mov	r0, r6
	ldr	r2, [r3]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L11
	cmp	r6, #0
	bne	.L8
	b	.L6
.L7:
	cmp	r4, r6
	str	r4, [r5]
	beq	.L6
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	stk_setup_siobuf
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L7
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L11
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	stk_prepare_sio_buffers, .-stk_prepare_sio_buffers
	.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
