	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_stats
_do_stats:                              ## @do_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	leaq	-44(%rbp), %rdi
	callq	_mmal_vc_get_stats
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.1:
	movq	_stats_fields@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_vcos_countof
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r13), %rsi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_printf
	incq	%rbx
	movq	(%r12), %rdi
	callq	_vcos_countof
	movl	%eax, %eax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"error getting status (%i,%s)\n"

	.comm	_stats_fields,8,3               ## @stats_fields
L_.str.2:                               ## @.str.2
	.asciz	"%-32s: %u\n"

	.no_dead_strip	_do_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_stats
_do_stats:                              ; @do_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cmp	x0, #0
	cset	w1, eq
	add	x0, sp, #12
	bl	_mmal_vc_get_stats
Lloh2:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh5:
	adrp	x20, _stats_fields@GOTPAGE
Lloh6:
	ldr	x20, [x20, _stats_fields@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_vcos_countof
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh7:
	adrp	x19, l_.str.2@PAGE
Lloh8:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x21]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_printf
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_vcos_countof
	add	x21, x21, #16
	cmp	x22, w0, uxtw
	b.lo	LBB0_3
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x19, x0
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	bl	_mmal_status_to_string
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"error getting status (%i,%s)\n"

	.comm	_stats_fields,8,3               ; @stats_fields
l_.str.2:                               ; @.str.2
	.asciz	"%-32s: %u\n"

	.no_dead_strip	_do_stats
.subsections_via_symbols
