	.file	"extr_viewfinder.c_mmalcam_reset_focus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to set focus to HYPERFOCAL, result %d"
	.align 8
.LC1:
	.string	"Failed to set focus to %d, result %d"
	.text
	.p2align 4
	.type	mmalcam_reset_focus, @function
mmalcam_reset_focus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MMAL_PARAMETER_FOCUS[rip]
	mov	r12, rsp
	mov	QWORD PTR 8[rsp], 0
	mov	rsi, r12
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR MMAL_PARAM_FOCUS_FIXED_HYPERFOCAL[rip]
	mov	DWORD PTR 4[rsp], eax
	call	mmal_port_parameter_set@PLT
	cmp	QWORD PTR MMAL_SUCCESS[rip], rax
	je	.L2
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	mov	eax, DWORD PTR MMAL_FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r12
	mov	DWORD PTR 4[rsp], ebp
	call	mmal_port_parameter_set@PLT
	mov	rdx, rax
	cmp	QWORD PTR MMAL_SUCCESS[rip], rdx
	mov	eax, DWORD PTR MMAL_TRUE[rip]
	je	.L1
	movsx	rsi, ebp
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	LOG_ERROR@PLT
	mov	eax, DWORD PTR MMAL_FALSE[rip]
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mmalcam_reset_focus, .-mmalcam_reset_focus
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,8,8
	.comm	MMAL_PARAM_FOCUS_FIXED_HYPERFOCAL,4,4
	.comm	MMAL_PARAMETER_FOCUS,4,4
	.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_viewfinder.c_mmalcam_reset_focus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to set focus to HYPERFOCAL, result %d\000"
	.align	2
.LC1:
	.ascii	"Failed to set focus to %d, result %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmalcam_reset_focus, %function
mmalcam_reset_focus:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r3, #0
	ldr	r0, .L10
	ldr	r2, .L10+4
	mov	r5, r1
	ldr	r1, .L10+8
	sub	sp, sp, #24
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	ldr	r0, [r4]
	mov	r1, sp
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	ip, [sp]
	str	r2, [sp, #4]
	bl	mmal_port_parameter_set
	ldr	r6, .L10+12
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L2
	mov	r1, r0
	ldr	r0, .L10+16
	bl	LOG_ERROR
	ldr	r3, .L10+20
	ldr	r0, [r3]
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, sp
	ldr	r0, [r4]
	str	r5, [sp, #4]
	bl	mmal_port_parameter_set
	ldr	r3, [r6]
	cmp	r3, r0
	ldreq	r3, .L10+24
	ldreq	r0, [r3]
	beq	.L1
.L9:
	mov	r2, r0
	mov	r1, r5
	ldr	r0, .L10+28
	bl	LOG_ERROR
	ldr	r3, .L10+20
	ldr	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MMAL_PARAMETER_FOCUS
	.word	MMAL_PARAM_FOCUS_FIXED_HYPERFOCAL
	.word	.LC2
	.word	MMAL_SUCCESS
	.word	.LC0
	.word	MMAL_FALSE
	.word	MMAL_TRUE
	.word	.LC1
	.size	mmalcam_reset_focus, .-mmalcam_reset_focus
	.comm	MMAL_TRUE,4,4
	.comm	MMAL_SUCCESS,4,4
	.comm	MMAL_PARAM_FOCUS_FIXED_HYPERFOCAL,4,4
	.comm	MMAL_PARAMETER_FOCUS,4,4
	.comm	MMAL_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
