	.file	"extr_clock.c_clock_stop_clocks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"stopping clock %d"
	.text
	.p2align 4
	.type	clock_stop_clocks, @function
clock_stop_clocks:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L7
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	ebx, 1
	cmp	DWORD PTR [r12], ebx
	jbe	.L11
.L4:
	mov	rdx, QWORD PTR 8[r12]
	mov	eax, ebx
	mov	rbp, QWORD PTR [rdx+rax*8]
	cmp	QWORD PTR 8[rbp], 0
	je	.L3
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	add	ebx, 1
	call	LOG_TRACE@PLT
	mov	rdi, rbp
	call	mmal_port_clock_request_flush@PLT
	mov	esi, DWORD PTR MMAL_FALSE[rip]
	mov	rdi, rbp
	call	mmal_port_clock_active_set@PLT
	cmp	DWORD PTR [r12], ebx
	ja	.L4
.L11:
	add	rsp, 8
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	clock_stop_clocks, .-clock_stop_clocks
	.comm	MMAL_FALSE,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_clock.c_clock_stop_clocks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stopping clock %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clock_stop_clocks, %function
clock_stop_clocks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r4, #0
	ldr	r8, .L17
	ldr	r7, .L17+4
	b	.L4
.L3:
	cmp	r2, r4
	popls	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, [r6, #4]
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r1, [r5]
	mov	r0, r8
	bl	LOG_TRACE
	mov	r0, r5
	bl	mmal_port_clock_request_flush
	mov	r0, r5
	ldr	r1, [r7]
	bl	mmal_port_clock_active_set
	ldr	r2, [r6]
	cmp	r2, r4
	bhi	.L4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	MMAL_FALSE
	.size	clock_stop_clocks, .-clock_stop_clocks
	.comm	MMAL_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
