	.file	"extr_mmal_port.c_mmal_port_update_port_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmal_port_update_port_stats, @function
mmal_port_update_port_stats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	r12, QWORD PTR [rax]
	xor	eax, eax
	call	vcos_getmicrosecs@PLT
	mov	rdi, r12
	mov	ebp, eax
	lea	rbx, 20[r12]
	call	vcos_mutex_lock@PLT
	cmp	QWORD PTR MMAL_CORE_STATS_RX[rip], r13
	je	.L3
	lea	rbx, 4[r12]
.L3:
	mov	eax, DWORD PTR [rbx]
	add	DWORD PTR 12[rbx], 1
	test	eax, eax
	jne	.L4
	mov	DWORD PTR [rbx], ebp
	mov	DWORD PTR 4[rbx], ebp
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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	vcos_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, ebp
	sub	esi, DWORD PTR 4[rbx]
	call	vcos_max@PLT
	mov	DWORD PTR 4[rbx], ebp
	mov	DWORD PTR 8[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mmal_port_update_port_stats, .-mmal_port_update_port_stats
	.comm	MMAL_CORE_STATS_RX,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_mmal_port.c_mmal_port_update_port_stats.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmal_port_update_port_stats, %function
mmal_port_update_port_stats:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r6, [r3]
	bl	vcos_getmicrosecs
	mov	r5, r0
	mov	r0, r6
	bl	vcos_mutex_lock
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, r4
	addeq	r4, r6, #20
	addne	r4, r6, #4
	ldr	r3, [r4, #12]
	ldr	r2, [r4]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r4, #12]
	bne	.L4
	mov	r0, r6
	str	r5, [r4]
	str	r5, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	vcos_mutex_unlock
.L4:
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	sub	r1, r5, r1
	bl	vcos_max
	str	r5, [r4, #4]
	str	r0, [r4, #8]
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	vcos_mutex_unlock
.L9:
	.align	2
.L8:
	.word	MMAL_CORE_STATS_RX
	.size	mmal_port_update_port_stats, .-mmal_port_update_port_stats
	.comm	MMAL_CORE_STATS_RX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
