	.file	"extr_mmal_component.c_mmal_component_disable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %d"
	.text
	.p2align 4
	.globl	mmal_component_disable
	.type	mmal_component_disable, @function
mmal_component_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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	r13, QWORD PTR MMAL_EINVAL[rip]
	test	rdi, rdi
	je	.L1
	mov	r12, QWORD PTR 32[rdi]
	mov	edx, DWORD PTR 40[rdi]
	mov	rbx, rdi
	mov	esi, DWORD PTR 44[rdi]
	lea	rdi, .LC0[rip]
	mov	r13, QWORD PTR MMAL_ENOSYS[rip]
	call	LOG_TRACE@PLT
	mov	rdi, r12
	call	vcos_mutex_lock@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L23
	mov	rax, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rdi, rbx
	call	rax
	mov	r13, rax
.L5:
	cmp	QWORD PTR MMAL_ENOSYS[rip], r13
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	je	.L24
.L7:
	cmp	rax, r13
	jne	.L13
	mov	QWORD PTR 8[rbx], 0
.L13:
	mov	rdi, r12
	call	vcos_mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, 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
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	xor	ebp, ebp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, ebp
	mov	esi, DWORD PTR MMAL_TRUE[rip]
	add	ebp, 1
	mov	edi, DWORD PTR [rax+rdx*4]
	call	mmal_port_pause@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	jne	.L8
.L6:
	cmp	DWORD PTR [rbx], ebp
	ja	.L10
	cmp	rax, QWORD PTR MMAL_SUCCESS[rip]
	jne	.L8
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, ebp
	mov	esi, DWORD PTR MMAL_TRUE[rip]
	add	ebp, 1
	mov	edi, DWORD PTR [rax+rdx*4]
	call	mmal_port_pause@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	jne	.L8
.L9:
	cmp	DWORD PTR 4[rbx], ebp
	ja	.L12
	mov	r13, rax
	mov	rax, QWORD PTR MMAL_SUCCESS[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r12
	call	vcos_mutex_unlock@PLT
	mov	r13, QWORD PTR MMAL_SUCCESS[rip]
	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
	mov	rax, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r13, rax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	mmal_component_disable, .-mmal_component_disable
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,8,8
	.comm	MMAL_ENOSYS,8,8
	.comm	MMAL_EINVAL,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_component.c_mmal_component_disable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s %d\000"
	.text
	.align	2
	.global	mmal_component_disable
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmal_component_disable, %function
mmal_component_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	beq	.L23
	ldr	r7, [r4, #20]
	ldr	r6, .L26
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #28]
	ldr	r0, .L26+4
	ldr	r5, [r6]
	bl	LOG_TRACE
	mov	r0, r7
	bl	vcos_mutex_lock
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [r4, #20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	mov	r0, r4
	blx	r3
	mov	r5, r0
.L5:
	ldr	r3, [r6]
	ldr	r6, .L26+8
	cmp	r3, r5
	ldr	r0, [r6]
	beq	.L25
.L7:
	cmp	r0, r5
	moveq	r3, #0
	streq	r3, [r4, #8]
.L13:
	mov	r0, r7
	bl	vcos_mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r3, .L26+12
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	mov	r5, #0
	ldr	r8, .L26+16
	b	.L6
.L10:
	ldr	r3, [r4, #16]
	ldr	r1, [r8]
	ldr	r0, [r3, r5, lsl #2]
	bl	mmal_port_pause
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r0
	bne	.L8
.L6:
	ldr	r3, [r4]
	cmp	r3, r5
	bhi	.L10
	ldr	r3, [r6]
	cmp	r0, r3
	moveq	r5, #0
	ldreq	r8, .L26+16
	beq	.L9
	b	.L8
.L12:
	ldr	r3, [r4, #12]
	ldr	r1, [r8]
	ldr	r0, [r3, r5, lsl #2]
	bl	mmal_port_pause
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r0
	bne	.L8
.L9:
	ldr	r3, [r4, #4]
	cmp	r3, r5
	bhi	.L12
	mov	r5, r0
	ldr	r0, [r6]
	b	.L7
.L24:
	mov	r0, r7
	bl	vcos_mutex_unlock
	ldr	r3, .L26+8
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r5, r0
	b	.L13
.L27:
	.align	2
.L26:
	.word	MMAL_ENOSYS
	.word	.LC0
	.word	MMAL_SUCCESS
	.word	MMAL_EINVAL
	.word	MMAL_TRUE
	.size	mmal_component_disable, .-mmal_component_disable
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_ENOSYS,4,4
	.comm	MMAL_EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
