	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_read_fw_version
_s5c73m3_read_fw_version:               ## @s5c73m3_read_fw_version
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 24(%rdi)
	movl	$96, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_S5C73M3_SENSOR_FW_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r12
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_s5c73m3_read
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-56(%rbp), %eax
	movq	(%r15), %rcx
	movb	%al, (%rcx,%r13,2)
	movzbl	-55(%rbp), %eax
	movq	(%r15), %rcx
	movb	%al, 1(%rcx,%r13,2)
	incq	%r13
	movq	_S5C73M3_SENSOR_FW_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addl	$2, %ebx
	cmpq	%rcx, %r13
	jl	LBB0_2
LBB0_4:
	movq	(%r15), %rcx
	cltq
	movb	$0, (%rcx,%rax)
	movq	_S5C73M3_SENSOR_TYPE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.5:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	orl	$6, %r12d
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_s5c73m3_read
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-56(%rbp), %eax
	movq	8(%r15), %rcx
	movb	%al, (%rcx,%rbx,2)
	movzbl	-55(%rbp), %eax
	movq	8(%r15), %rcx
	movb	%al, 1(%rcx,%rbx,2)
	incq	%rbx
	movq	_S5C73M3_SENSOR_TYPE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addl	$2, %r12d
	cmpq	%rcx, %rbx
	jl	LBB0_6
LBB0_8:
	leaq	32(%r15), %r12
	movq	8(%r15), %rcx
	cltq
	movb	$0, (%rcx,%rax)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	orl	$20, %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_s5c73m3_read
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	orl	$22, %ebx
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_s5c73m3_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movl	-52(%rbp), %eax
	shll	$16, %eax
	addl	-56(%rbp), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_13
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r14d
LBB0_13:
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_info
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_S5C73M3_SENSOR_FW_LEN,4,2      ## @S5C73M3_SENSOR_FW_LEN
	.comm	_S5C73M3_SENSOR_TYPE_LEN,4,2    ## @S5C73M3_SENSOR_TYPE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor type: %s, FW version: %s\n"

	.no_dead_strip	_s5c73m3_read_fw_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_read_fw_version
_s5c73m3_read_fw_version:               ; @s5c73m3_read_fw_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0, #24]
	cmp	x8, #0
	mov	w8, #96
	csel	w22, wzr, w8, eq
Lloh3:
	adrp	x21, _S5C73M3_SENSOR_FW_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _S5C73M3_SENSOR_FW_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, w23
	mov	x2, sp
	mov	x0, x19
	bl	_s5c73m3_read
	tbnz	w0, #31, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp]
	ldr	x9, [x19]
	strb	w8, [x9, x23]
	ldr	w8, [sp]
	lsr	w8, w8, #8
	ldr	x9, [x19]
	add	x9, x9, x23
	strb	w8, [x9, #1]
	add	x24, x24, #1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x23, x23, #2
	cmp	x24, w9, sxtw
	b.lt	LBB0_2
LBB0_4:
	ldr	x9, [x19]
	strb	wzr, [x9, w8, sxtw]
Lloh5:
	adrp	x21, _S5C73M3_SENSOR_TYPE_LEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _S5C73M3_SENSOR_TYPE_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	add	x25, x22, #6
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w25, w23
	mov	x2, sp
	mov	x0, x19
	bl	_s5c73m3_read
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp]
	ldr	x9, [x19, #8]
	strb	w8, [x9, x23]
	ldr	w8, [sp]
	lsr	w8, w8, #8
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	strb	w8, [x9, #1]
	add	x24, x24, #1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x23, x23, #2
	cmp	x24, w9, sxtw
	b.lt	LBB0_6
LBB0_8:
	add	x21, x19, #32
	ldr	x9, [x19, #8]
	strb	wzr, [x9, w8, sxtw]
	mov	w8, #20
	orr	w1, w22, w8
	mov	x23, sp
	mov	x2, sp
	mov	x0, x19
	bl	_s5c73m3_read
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	w8, #22
	orr	w1, w22, w8
	add	x2, x23, #4
	mov	x0, x19
	bl	_s5c73m3_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.10:
	ldp	w8, w9, [sp]
	add	w8, w8, w9, lsl #16
	str	w8, [x19, #16]
	b	LBB0_13
LBB0_11:
	mov	x20, x0
	b	LBB0_14
LBB0_12:
	mov	x20, x0
LBB0_13:
	ldp	x3, x2, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l2_info
LBB0_14:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_S5C73M3_SENSOR_FW_LEN,4,2      ; @S5C73M3_SENSOR_FW_LEN
	.comm	_S5C73M3_SENSOR_TYPE_LEN,4,2    ; @S5C73M3_SENSOR_TYPE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor type: %s, FW version: %s\n"

	.no_dead_strip	_s5c73m3_read_fw_version
.subsections_via_symbols
