	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_update_port_stats
_mmal_port_update_port_stats:           ## @mmal_port_update_port_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_vcos_mutex_lock
	movq	_MMAL_CORE_STATS_RX@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%r15, (%rax)
	sete	%cl
	shlq	$4, %rcx
	incl	16(%rcx,%r12)
	leaq	(%rcx,%r12), %rbx
	addq	$4, %rbx
	cmpl	$0, 4(%rcx,%r12)
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	leaq	4(%rbx), %r15
	movl	%r14d, %esi
	subl	4(%rbx), %esi
	callq	_vcos_max
	movl	%eax, 8(%rbx)
	movq	%r15, %rbx
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, (%rbx)
	addq	$4, %rbx
LBB0_3:
	movl	%r14d, (%rbx)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_CORE_STATS_RX,8,3         ## @MMAL_CORE_STATS_RX
	.no_dead_strip	_mmal_port_update_port_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_update_port_stats
_mmal_port_update_port_stats:           ; @mmal_port_update_port_stats
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_vcos_getmicrosecs
	mov	x20, x0
	mov	x0, x19
	bl	_vcos_mutex_lock
Lloh0:
	adrp	x8, _MMAL_CORE_STATS_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_CORE_STATS_RX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x19, #4
	add	x10, x19, #20
	cmp	x8, x21
	csel	x21, x10, x9, eq
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	w8, w0, [x21, #4]!
	sub	w1, w20, w8
	bl	_vcos_max
	str	w0, [x21, #4]
	b	LBB0_3
LBB0_2:
	str	w20, [x21], #4
LBB0_3:
	str	w20, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_CORE_STATS_RX,8,3         ; @MMAL_CORE_STATS_RX
	.no_dead_strip	_mmal_port_update_port_stats
.subsections_via_symbols
