	.file	"extr_mmal_list.c_mmal_list_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mmal_list_insert
	.type	mmal_list_insert, @function
mmal_list_insert:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mmal_list_lock@PLT
	mov	rbx, QWORD PTR 0[r13]
	test	rbx, rbx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbx
	mov	rdi, rbp
	call	r12
	test	rax, rax
	jne	.L11
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	jne	.L2
	mov	rdi, r13
	call	mmal_list_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	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
	jmp	mmal_list_push_back@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	DWORD PTR 8[r13], 1
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 0[r13], rbx
	je	.L12
	mov	QWORD PTR [rax], rbp
.L5:
	mov	QWORD PTR 0[rbp], rbx
	mov	rdi, r13
	mov	QWORD PTR 8[rbp], rax
	mov	QWORD PTR 8[rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	mmal_list_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	mmal_list_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	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
	jmp	mmal_list_push_front@PLT
	.cfi_endproc
.LFE0:
	.size	mmal_list_insert, .-mmal_list_insert
	.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_mmal_list.c_mmal_list_insert.c"
	.text
	.align	2
	.global	mmal_list_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmal_list_insert, %function
mmal_list_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r5, r1
	mov	r6, r2
	bl	mmal_list_lock
	ldr	r4, [r7]
	cmp	r4, #0
	beq	.L10
.L2:
	mov	r1, r4
	mov	r0, r5
	blx	r6
	cmp	r0, #0
	bne	.L11
	ldr	r4, [r4]
	cmp	r4, #0
	bne	.L2
	mov	r0, r7
	bl	mmal_list_unlock
	mov	r1, r5
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	mmal_list_push_back
.L11:
	ldm	r7, {r2, r3}
	add	r3, r3, #1
	str	r3, [r7, #4]
	ldr	r3, [r4, #4]
	cmp	r2, r4
	streq	r5, [r7]
	strne	r5, [r3]
	mov	r0, r7
	str	r3, [r5, #4]
	str	r4, [r5]
	str	r5, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mmal_list_unlock
.L10:
	mov	r0, r7
	bl	mmal_list_unlock
	mov	r1, r5
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	mmal_list_push_front
	.size	mmal_list_insert, .-mmal_list_insert
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
