	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_identify_module
_smiapp_identify_module:                ## @smiapp_identify_module
	.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, %rbx
	movq	112(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_SMIAPP_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	_SMIAPP_REG_U8_MANUFACTURER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	_SMIAPP_REG_U16_MODEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	_SMIAPP_REG_U8_REVISION_NUMBER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	_SMIAPP_REG_U8_REVISION_NUMBER_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	_SMIAPP_REG_U8_MODULE_DATE_YEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	_SMIAPP_REG_U8_MODULE_DATE_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	40(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	_SMIAPP_REG_U8_MODULE_DATE_DAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	48(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	_SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	56(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	_SMIAPP_REG_U16_SENSOR_MODEL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	64(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	_SMIAPP_REG_U8_SENSOR_REVISION_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	72(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	80(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_SMIAPP_REG_U8_SMIA_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	88(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_SMIAPP_REG_U8_SMIAPP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	96(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_smiapp_read_8only
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rcx
	movq	32(%rbx), %r8
	movq	40(%rbx), %r9
	movq	48(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	56(%rbx), %rdx
	movq	64(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	72(%rbx), %rdx
	movq	80(%rbx), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	88(%rbx), %rdx
	movq	96(%rbx), %rcx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, (%rbx)
	jne	LBB0_17
## %bb.15:
	cmpq	$0, (%r15)
	jne	LBB0_17
## %bb.16:
	movups	56(%rbx), %xmm0
	movups	%xmm0, (%rbx)
	movq	72(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_17:
	movq	_smiapp_module_idents@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_26
## %bb.18:
	movl	$36, %esi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpq	%rcx, %r8
	je	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsi
	movq	%r13, %rcx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r13
	jae	LBB0_26
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	_smiapp_module_idents@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rsi, %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-36(%rdi,%rsi), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-28(%rdi,%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_SMIAPP_MODULE_IDENT_FLAG_REV_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-12(%rdi,%rax), %r8
	movq	(%r12), %rcx
	testl	%edx, -20(%rdi,%rax)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	%rcx, %r8
	jl	LBB0_23
LBB0_25:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rdi,%rcx), %eax
	movl	%eax, 104(%rbx)
	movl	-4(%rdi,%rcx), %eax
	movl	%eax, 108(%rbx)
LBB0_26:
	movq	_smiapp_module_idents@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jb	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_28:
	movslq	104(%rbx), %rdx
	movq	(%rbx), %rcx
	movq	8(%rbx), %r8
	movq	16(%rbx), %r9
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_NAME,4,2                ## @SMIAPP_NAME
	.comm	_SMIAPP_REG_U8_MANUFACTURER_ID,4,2 ## @SMIAPP_REG_U8_MANUFACTURER_ID
	.comm	_SMIAPP_REG_U16_MODEL_ID,4,2    ## @SMIAPP_REG_U16_MODEL_ID
	.comm	_SMIAPP_REG_U8_REVISION_NUMBER_MAJOR,4,2 ## @SMIAPP_REG_U8_REVISION_NUMBER_MAJOR
	.comm	_SMIAPP_REG_U8_REVISION_NUMBER_MINOR,4,2 ## @SMIAPP_REG_U8_REVISION_NUMBER_MINOR
	.comm	_SMIAPP_REG_U8_MODULE_DATE_YEAR,4,2 ## @SMIAPP_REG_U8_MODULE_DATE_YEAR
	.comm	_SMIAPP_REG_U8_MODULE_DATE_MONTH,4,2 ## @SMIAPP_REG_U8_MODULE_DATE_MONTH
	.comm	_SMIAPP_REG_U8_MODULE_DATE_DAY,4,2 ## @SMIAPP_REG_U8_MODULE_DATE_DAY
	.comm	_SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID,4,2 ## @SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID
	.comm	_SMIAPP_REG_U16_SENSOR_MODEL_ID,4,2 ## @SMIAPP_REG_U16_SENSOR_MODEL_ID
	.comm	_SMIAPP_REG_U8_SENSOR_REVISION_NUMBER,4,2 ## @SMIAPP_REG_U8_SENSOR_REVISION_NUMBER
	.comm	_SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION,4,2 ## @SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION
	.comm	_SMIAPP_REG_U8_SMIA_VERSION,4,2 ## @SMIAPP_REG_U8_SMIA_VERSION
	.comm	_SMIAPP_REG_U8_SMIAPP_VERSION,4,2 ## @SMIAPP_REG_U8_SMIAPP_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sensor detection failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"module 0x%2.2x-0x%4.4x\n"

L_.str.2:                               ## @.str.2
	.asciz	"module revision 0x%2.2x-0x%2.2x date %2.2d-%2.2d-%2.2d\n"

L_.str.3:                               ## @.str.3
	.asciz	"sensor 0x%2.2x-0x%4.4x\n"

L_.str.4:                               ## @.str.4
	.asciz	"sensor revision 0x%2.2x firmware version 0x%2.2x\n"

L_.str.5:                               ## @.str.5
	.asciz	"smia version %2.2d smiapp version %2.2d\n"

	.comm	_smiapp_module_idents,8,3       ## @smiapp_module_idents
	.comm	_SMIAPP_MODULE_IDENT_FLAG_REV_LE,4,2 ## @SMIAPP_MODULE_IDENT_FLAG_REV_LE
L_.str.6:                               ## @.str.6
	.asciz	"no quirks for this module; let's hope it's fully compliant\n"

L_.str.7:                               ## @.str.7
	.asciz	"the sensor is called %s, ident %2.2x%4.4x%2.2x\n"

	.no_dead_strip	_smiapp_identify_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_identify_module
_smiapp_identify_module:                ; @smiapp_identify_module
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldr	x0, [x0, #112]
	bl	_v4l2_get_subdevdata
	mov	x19, x0
Lloh0:
	adrp	x8, _SMIAPP_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMIAPP_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #104]
Lloh3:
	adrp	x8, _SMIAPP_REG_U8_MANUFACTURER_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_REG_U8_MANUFACTURER_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.1:
Lloh6:
	adrp	x8, _SMIAPP_REG_U16_MODEL_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMIAPP_REG_U16_MODEL_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x21, x20, #8
	mov	x0, x20
	mov	x2, x21
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.2:
Lloh9:
	adrp	x8, _SMIAPP_REG_U8_REVISION_NUMBER_MAJOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMIAPP_REG_U8_REVISION_NUMBER_MAJOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x22, x20, #16
	mov	x0, x20
	mov	x2, x22
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.3:
Lloh12:
	adrp	x8, _SMIAPP_REG_U8_REVISION_NUMBER_MINOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMIAPP_REG_U8_REVISION_NUMBER_MINOR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, x20, #24
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.4:
Lloh15:
	adrp	x8, _SMIAPP_REG_U8_MODULE_DATE_YEAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMIAPP_REG_U8_MODULE_DATE_YEAR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x20, #32
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.5:
Lloh18:
	adrp	x8, _SMIAPP_REG_U8_MODULE_DATE_MONTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SMIAPP_REG_U8_MODULE_DATE_MONTH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x20, #40
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.6:
Lloh21:
	adrp	x8, _SMIAPP_REG_U8_MODULE_DATE_DAY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMIAPP_REG_U8_MODULE_DATE_DAY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, x20, #48
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.7:
Lloh24:
	adrp	x8, _SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, x20, #56
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.8:
Lloh27:
	adrp	x8, _SMIAPP_REG_U16_SENSOR_MODEL_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SMIAPP_REG_U16_SENSOR_MODEL_ID@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, x20, #64
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.9:
Lloh30:
	adrp	x8, _SMIAPP_REG_U8_SENSOR_REVISION_NUMBER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SMIAPP_REG_U8_SENSOR_REVISION_NUMBER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, x20, #72
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.10:
Lloh33:
	adrp	x8, _SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, x20, #80
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.11:
Lloh36:
	adrp	x8, _SMIAPP_REG_U8_SMIA_VERSION@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SMIAPP_REG_U8_SMIA_VERSION@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	add	x2, x20, #88
	mov	x0, x20
	bl	_smiapp_read_8only
	cbnz	w0, LBB0_13
; %bb.12:
Lloh39:
	adrp	x8, _SMIAPP_REG_U8_SMIAPP_VERSION@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMIAPP_REG_U8_SMIAPP_VERSION@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	add	x2, x20, #96
	mov	x0, x20
	bl	_smiapp_read_8only
	cbz	w0, LBB0_15
LBB0_13:
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	ldp	x2, x3, [x20]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x2, x3, [x20, #16]
	ldr	q0, [x20, #32]
	ldr	x8, [x20, #48]
	str	x8, [sp, #16]
	str	q0, [sp]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x2, x3, [x20, #56]
Lloh51:
	adrp	x1, l_.str.3@PAGE
Lloh52:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x2, x3, [x20, #72]
Lloh53:
	adrp	x1, l_.str.4@PAGE
Lloh54:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x2, x3, [x20, #88]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x21]
	cbnz	x8, LBB0_18
; %bb.17:
	ldur	q0, [x20, #56]
	str	q0, [x20]
	ldr	x8, [x20, #72]
	str	x8, [x20, #16]
LBB0_18:
Lloh57:
	adrp	x23, _smiapp_module_idents@GOTPAGE
Lloh58:
	ldr	x23, [x23, _smiapp_module_idents@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_27
; %bb.19:
	mov	x25, #0
	mov	x24, #0
Lloh59:
	adrp	x26, _SMIAPP_MODULE_IDENT_FLAG_REV_LE@GOTPAGE
Lloh60:
	ldr	x26, [x26, _SMIAPP_MODULE_IDENT_FLAG_REV_LE@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	x8, x9
	b.eq	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x25, x25, #40
	cmp	x24, w0, uxtw
	b.hs	LBB0_28
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x0, x25]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x0, x25
	ldr	x9, [x8, #8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w10, [x8, #16]
	ldr	w11, [x26]
	ldr	x8, [x8, #24]
	ldr	x9, [x22]
	tst	w11, w10
	b.eq	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x8, x9
	b.lt	LBB0_21
LBB0_26:
	add	x8, x0, x25
	ldr	d0, [x8, #32]
	rev64.2s	v0, v0
	str	d0, [x20, #104]
	b	LBB0_28
LBB0_27:
	mov	w24, #0
LBB0_28:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lo	LBB0_30
; %bb.29:
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_30:
	ldrsw	x2, [x20, #104]
	ldp	x3, x8, [x20]
	ldr	x9, [x20, #16]
	stp	x8, x9, [sp]
Lloh63:
	adrp	x1, l_.str.7@PAGE
Lloh64:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_NAME,4,2                ; @SMIAPP_NAME
	.comm	_SMIAPP_REG_U8_MANUFACTURER_ID,4,2 ; @SMIAPP_REG_U8_MANUFACTURER_ID
	.comm	_SMIAPP_REG_U16_MODEL_ID,4,2    ; @SMIAPP_REG_U16_MODEL_ID
	.comm	_SMIAPP_REG_U8_REVISION_NUMBER_MAJOR,4,2 ; @SMIAPP_REG_U8_REVISION_NUMBER_MAJOR
	.comm	_SMIAPP_REG_U8_REVISION_NUMBER_MINOR,4,2 ; @SMIAPP_REG_U8_REVISION_NUMBER_MINOR
	.comm	_SMIAPP_REG_U8_MODULE_DATE_YEAR,4,2 ; @SMIAPP_REG_U8_MODULE_DATE_YEAR
	.comm	_SMIAPP_REG_U8_MODULE_DATE_MONTH,4,2 ; @SMIAPP_REG_U8_MODULE_DATE_MONTH
	.comm	_SMIAPP_REG_U8_MODULE_DATE_DAY,4,2 ; @SMIAPP_REG_U8_MODULE_DATE_DAY
	.comm	_SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID,4,2 ; @SMIAPP_REG_U8_SENSOR_MANUFACTURER_ID
	.comm	_SMIAPP_REG_U16_SENSOR_MODEL_ID,4,2 ; @SMIAPP_REG_U16_SENSOR_MODEL_ID
	.comm	_SMIAPP_REG_U8_SENSOR_REVISION_NUMBER,4,2 ; @SMIAPP_REG_U8_SENSOR_REVISION_NUMBER
	.comm	_SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION,4,2 ; @SMIAPP_REG_U8_SENSOR_FIRMWARE_VERSION
	.comm	_SMIAPP_REG_U8_SMIA_VERSION,4,2 ; @SMIAPP_REG_U8_SMIA_VERSION
	.comm	_SMIAPP_REG_U8_SMIAPP_VERSION,4,2 ; @SMIAPP_REG_U8_SMIAPP_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sensor detection failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"module 0x%2.2x-0x%4.4x\n"

l_.str.2:                               ; @.str.2
	.asciz	"module revision 0x%2.2x-0x%2.2x date %2.2d-%2.2d-%2.2d\n"

l_.str.3:                               ; @.str.3
	.asciz	"sensor 0x%2.2x-0x%4.4x\n"

l_.str.4:                               ; @.str.4
	.asciz	"sensor revision 0x%2.2x firmware version 0x%2.2x\n"

l_.str.5:                               ; @.str.5
	.asciz	"smia version %2.2d smiapp version %2.2d\n"

	.comm	_smiapp_module_idents,8,3       ; @smiapp_module_idents
	.comm	_SMIAPP_MODULE_IDENT_FLAG_REV_LE,4,2 ; @SMIAPP_MODULE_IDENT_FLAG_REV_LE
l_.str.6:                               ; @.str.6
	.asciz	"no quirks for this module; let's hope it's fully compliant\n"

l_.str.7:                               ; @.str.7
	.asciz	"the sensor is called %s, ident %2.2x%4.4x%2.2x\n"

	.no_dead_strip	_smiapp_identify_module
.subsections_via_symbols
