	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_handle_button
_ov51x_handle_button:                   ## @ov51x_handle_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	%rsi, (%rdi)
	jne	LBB0_1
## %bb.4:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:
	movl	$-131, %eax
	addl	12(%rdi), %eax
	cmpl	$-3, %eax
	jb	LBB0_7
## %bb.6:
	movl	$1, 8(%rdi)
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	$1, 8(%rdi)
LBB0_3:
	movq	%rsi, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_CAMERA,4,2                 ## @KEY_CAMERA
	.no_dead_strip	_ov51x_handle_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_handle_button
_ov51x_handle_button:                   ; @ov51x_handle_button
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.1:
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w8, [x0, #12]
	sub	w8, w8, #131
	cmn	w8, #3
	b.lo	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x0, #8]
LBB0_4:
	ret
LBB0_5:
	cbz	x1, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x0, #8]
LBB0_7:
	str	x1, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_CAMERA,4,2                 ; @KEY_CAMERA
	.no_dead_strip	_ov51x_handle_button
.subsections_via_symbols
