	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __smiapp_read
___smiapp_read:                         ## @__smiapp_read
	.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
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_SMIAPP_REG_WIDTH
	movq	%rax, %rbx
	movq	_SMIAPP_REG_8BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r14, %rbx
	je	LBB0_4
## %bb.1:
	movq	_SMIAPP_REG_16BIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.2:
	movq	_SMIAPP_REG_32BIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%r12d, %edi
	callq	_SMIAPP_REG_ADDR
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_____smiapp_read_8only
	jmp	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_____smiapp_read
LBB0_8:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movq	_SMIAPP_REG_FLAG_FLOAT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	movl	(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_float_to_u32_mul_1000000
	movl	%eax, (%r14)
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_REG_8BIT,8,3            ## @SMIAPP_REG_8BIT
	.comm	_SMIAPP_REG_16BIT,8,3           ## @SMIAPP_REG_16BIT
	.comm	_SMIAPP_REG_32BIT,8,3           ## @SMIAPP_REG_32BIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMIAPP_REG_FLAG_FLOAT,4,2      ## @SMIAPP_REG_FLAG_FLOAT
	.no_dead_strip	___smiapp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __smiapp_read
___smiapp_read:                         ; @__smiapp_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	mov	x0, x20
	bl	_SMIAPP_REG_WIDTH
Lloh0:
	adrp	x8, _SMIAPP_REG_8BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMIAPP_REG_8BIT@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x8, _SMIAPP_REG_16BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_REG_16BIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SMIAPP_REG_32BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMIAPP_REG_32BIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x25
	ccmp	x0, x8, #4, ne
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	bl	_SMIAPP_REG_ADDR
	mov	x1, x0
	cbz	w24, LBB0_5
; %bb.2:
	cmp	x23, x25
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x22
	mov	x2, x23
	mov	x3, x19
	bl	_____smiapp_read_8only
	tbz	w0, #31, LBB0_6
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x22
	mov	x2, x23
	mov	x3, x19
	bl	_____smiapp_read
	tbnz	w0, #31, LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _SMIAPP_REG_FLAG_FLOAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMIAPP_REG_FLAG_FLOAT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_float_to_u32_mul_1000000
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_REG_8BIT,8,3            ; @SMIAPP_REG_8BIT
	.comm	_SMIAPP_REG_16BIT,8,3           ; @SMIAPP_REG_16BIT
	.comm	_SMIAPP_REG_32BIT,8,3           ; @SMIAPP_REG_32BIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMIAPP_REG_FLAG_FLOAT,4,2      ; @SMIAPP_REG_FLAG_FLOAT
	.no_dead_strip	___smiapp_read
.subsections_via_symbols
