	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_input_process_measurements
_cx23885_input_process_measurements:    ## @cx23885_input_process_measurements
	.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
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -312(%rbp)                ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	xorl	%ebx, %ebx
	leaq	-304(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$0, -308(%rbp)
	movl	(%r13), %edi
	movq	_ir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rx_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	movl	$256, %r8d                      ## imm = 0x100
	leaq	-308(%rbp), %r9
	callq	_v4l2_subdev_call
	movl	-308(%rbp), %r12d
	cmpl	$4, %r12d
	jl	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	shrq	$2, %r12
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ir_raw_event_store
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ebx
	movl	-308(%rbp), %r12d
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, -312(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_ir_raw_event_reset
	jmp	LBB0_10
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	callq	_ir_raw_event_handle
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ir,4,2                         ## @ir
	.comm	_rx_read,4,2                    ## @rx_read
	.no_dead_strip	_cx23885_input_process_measurements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_input_process_measurements
_cx23885_input_process_measurements:    ; @cx23885_input_process_measurements
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x22, [x0, #8]
Lloh3:
	adrp	x23, _ir@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ir@GOTPAGEOFF]
Lloh5:
	adrp	x24, _rx_read@GOTPAGE
Lloh6:
	ldr	x24, [x24, _rx_read@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	str	wzr, [sp, #4]
	ldr	w0, [x20]
	ldr	w1, [x23]
	ldr	w2, [x24]
	add	x3, sp, #8
	add	x5, sp, #4
	mov	w4, #256
	bl	_v4l2_subdev_call
	ldr	w8, [sp, #4]
	cmp	w8, #4
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	x25, x8, #2
	add	x21, sp, #8
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	mov	x1, x21
	bl	_ir_raw_event_store
	add	x21, x21, #4
	subs	x25, x25, #1
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #1
	ldr	w8, [sp, #4]
	b	LBB0_1
LBB0_6:
	cbz	w19, LBB0_8
; %bb.7:
	ldr	w0, [x22]
	bl	_ir_raw_event_reset
	b	LBB0_10
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
	ldr	w0, [x22]
	bl	_ir_raw_event_handle
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ir,4,2                         ; @ir
	.comm	_rx_read,4,2                    ; @rx_read
	.no_dead_strip	_cx23885_input_process_measurements
.subsections_via_symbols
