	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_get_version
_m5mols_get_version:                    ## @m5mols_get_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_m5mols
	movq	%rax, %r12
	movq	32(%rax), %r15
	movq	_SYSTEM_VER_CUSTOMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r12), %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	_SYSTEM_VER_PROJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_m5mols_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	movq	_SYSTEM_VER_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%r12), %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	_SYSTEM_VER_HARDWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r12), %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	movq	_SYSTEM_VER_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r12), %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:
	movq	_SYSTEM_VER_AWB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r12), %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u16
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.6:
	movq	_AF_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	addq	$8, %rdx
	movq	%r14, %rdi
	callq	_m5mols_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	movq	_VERSION_STRING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_SYSTEM_VER_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_m5mols_read_u8
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movq	_VERSION_STRING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_12:
	movq	_REG_SAMSUNG_ELECTRO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_is_manufacturer
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_17
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_14:
	movq	_REG_SAMSUNG_OPTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_is_manufacturer
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
LBB0_16:
	movq	_REG_SAMSUNG_TECHWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_is_manufacturer
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
LBB0_17:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	callq	_is_available_af
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSTEM_VER_CUSTOMER,4,2        ## @SYSTEM_VER_CUSTOMER
	.comm	_SYSTEM_VER_PROJECT,4,2         ## @SYSTEM_VER_PROJECT
	.comm	_SYSTEM_VER_FIRMWARE,4,2        ## @SYSTEM_VER_FIRMWARE
	.comm	_SYSTEM_VER_HARDWARE,4,2        ## @SYSTEM_VER_HARDWARE
	.comm	_SYSTEM_VER_PARAMETER,4,2       ## @SYSTEM_VER_PARAMETER
	.comm	_SYSTEM_VER_AWB,4,2             ## @SYSTEM_VER_AWB
	.comm	_AF_VERSION,4,2                 ## @AF_VERSION
	.comm	_VERSION_STRING_SIZE,4,2        ## @VERSION_STRING_SIZE
	.comm	_SYSTEM_VER_STRING,4,2          ## @SYSTEM_VER_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Manufacturer\t[%s]\n"

	.comm	_REG_SAMSUNG_ELECTRO,4,2        ## @REG_SAMSUNG_ELECTRO
L_.str.1:                               ## @.str.1
	.asciz	"Samsung Electro-Mechanics"

	.comm	_REG_SAMSUNG_OPTICS,4,2         ## @REG_SAMSUNG_OPTICS
L_.str.2:                               ## @.str.2
	.asciz	"Samsung Fiber-Optics"

	.comm	_REG_SAMSUNG_TECHWIN,4,2        ## @REG_SAMSUNG_TECHWIN
L_.str.3:                               ## @.str.3
	.asciz	"Samsung Techwin"

L_.str.4:                               ## @.str.4
	.asciz	"None"

L_.str.5:                               ## @.str.5
	.asciz	"Customer/Project\t[0x%02x/0x%02x]\n"

L_.str.6:                               ## @.str.6
	.asciz	"No support Auto Focus on this firmware\n"

	.no_dead_strip	_m5mols_get_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_get_version
_m5mols_get_version:                    ; @m5mols_get_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_to_m5mols
	mov	x20, x0
	ldr	x21, [x0, #32]
Lloh0:
	adrp	x8, _SYSTEM_VER_CUSTOMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSTEM_VER_CUSTOMER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x0, #4
	mov	x0, x19
	bl	_m5mols_read_u8
	cbnz	w0, LBB0_19
; %bb.1:
Lloh3:
	adrp	x8, _SYSTEM_VER_PROJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYSTEM_VER_PROJECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_m5mols_read_u8
	cbnz	w0, LBB0_19
; %bb.2:
Lloh6:
	adrp	x8, _SYSTEM_VER_FIRMWARE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYSTEM_VER_FIRMWARE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, x20, #24
	mov	x0, x19
	bl	_m5mols_read_u16
	cbnz	w0, LBB0_19
; %bb.3:
Lloh9:
	adrp	x8, _SYSTEM_VER_HARDWARE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SYSTEM_VER_HARDWARE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, x20, #20
	mov	x0, x19
	bl	_m5mols_read_u16
	cbnz	w0, LBB0_19
; %bb.4:
Lloh12:
	adrp	x8, _SYSTEM_VER_PARAMETER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYSTEM_VER_PARAMETER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, x20, #16
	mov	x0, x19
	bl	_m5mols_read_u16
	cbnz	w0, LBB0_19
; %bb.5:
Lloh15:
	adrp	x8, _SYSTEM_VER_AWB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYSTEM_VER_AWB@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x20, #12
	mov	x0, x19
	bl	_m5mols_read_u16
	cbnz	w0, LBB0_19
; %bb.6:
Lloh18:
	adrp	x8, _AF_VERSION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_VERSION@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x20, #8
	mov	x0, x19
	bl	_m5mols_read_u8
	cbnz	w0, LBB0_19
; %bb.7:
Lloh21:
	adrp	x22, _VERSION_STRING_SIZE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _VERSION_STRING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x23, #0
Lloh23:
	adrp	x24, _SYSTEM_VER_STRING@GOTPAGE
Lloh24:
	ldr	x24, [x24, _SYSTEM_VER_STRING@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_m5mols_read_u8
	cbnz	w0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x21, x21, #4
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_11:
Lloh25:
	adrp	x8, _REG_SAMSUNG_ELECTRO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REG_SAMSUNG_ELECTRO@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_manufacturer
	cbz	x0, LBB0_13
; %bb.12:
Lloh28:
	adrp	x8, l_.str.1@PAGE
Lloh29:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh30:
	adrp	x8, _REG_SAMSUNG_OPTICS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REG_SAMSUNG_OPTICS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_manufacturer
	cbz	x0, LBB0_15
; %bb.14:
Lloh33:
	adrp	x8, l_.str.2@PAGE
Lloh34:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh35:
	adrp	x8, _REG_SAMSUNG_TECHWIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REG_SAMSUNG_TECHWIN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_manufacturer
Lloh38:
	adrp	x8, l_.str.3@PAGE
Lloh39:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh40:
	adrp	x9, l_.str.4@PAGE
Lloh41:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_16:
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	ldp	w9, w8, [x20]
	stp	x8, x9, [sp]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x20
	bl	_is_available_af
	cbnz	w0, LBB0_18
; %bb.17:
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSTEM_VER_CUSTOMER,4,2        ; @SYSTEM_VER_CUSTOMER
	.comm	_SYSTEM_VER_PROJECT,4,2         ; @SYSTEM_VER_PROJECT
	.comm	_SYSTEM_VER_FIRMWARE,4,2        ; @SYSTEM_VER_FIRMWARE
	.comm	_SYSTEM_VER_HARDWARE,4,2        ; @SYSTEM_VER_HARDWARE
	.comm	_SYSTEM_VER_PARAMETER,4,2       ; @SYSTEM_VER_PARAMETER
	.comm	_SYSTEM_VER_AWB,4,2             ; @SYSTEM_VER_AWB
	.comm	_AF_VERSION,4,2                 ; @AF_VERSION
	.comm	_VERSION_STRING_SIZE,4,2        ; @VERSION_STRING_SIZE
	.comm	_SYSTEM_VER_STRING,4,2          ; @SYSTEM_VER_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Manufacturer\t[%s]\n"

	.comm	_REG_SAMSUNG_ELECTRO,4,2        ; @REG_SAMSUNG_ELECTRO
l_.str.1:                               ; @.str.1
	.asciz	"Samsung Electro-Mechanics"

	.comm	_REG_SAMSUNG_OPTICS,4,2         ; @REG_SAMSUNG_OPTICS
l_.str.2:                               ; @.str.2
	.asciz	"Samsung Fiber-Optics"

	.comm	_REG_SAMSUNG_TECHWIN,4,2        ; @REG_SAMSUNG_TECHWIN
l_.str.3:                               ; @.str.3
	.asciz	"Samsung Techwin"

l_.str.4:                               ; @.str.4
	.asciz	"None"

l_.str.5:                               ; @.str.5
	.asciz	"Customer/Project\t[0x%02x/0x%02x]\n"

l_.str.6:                               ; @.str.6
	.asciz	"No support Auto Focus on this firmware\n"

	.no_dead_strip	_m5mols_get_version
.subsections_via_symbols
