	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_get_limits
_smiapp_get_limits:                     ## @smiapp_get_limits
	.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	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	movl	%r12d, %r13d
	xorl	%r12d, %r12d
	movq	_smiapp_reg_limits@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movslq	(%rbx,%r12,4), %rcx
	movl	4(%rax,%rcx,8), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_smiapp_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	movq	(%r14), %rcx
	movslq	(%rbx,%r12,4), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	(%r15), %rax
	movslq	(%rbx,%r12,4), %rdx
	movl	(%rax,%rdx,8), %ecx
	movl	4(%rax,%rdx,8), %edx
	movl	-44(%rbp), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %r9d
	callq	_dev_dbg
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smiapp_reg_limits,8,3          ## @smiapp_reg_limits
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%8.8x \"%s\" = %u, 0x%x\n"

	.no_dead_strip	_smiapp_get_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_get_limits
_smiapp_get_limits:                     ; @smiapp_get_limits
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_v4l2_get_subdevdata
	cbz	w22, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w23, w22
Lloh0:
	adrp	x24, _smiapp_reg_limits@GOTPAGE
Lloh1:
	ldr	x24, [x24, _smiapp_reg_limits@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #12
	mov	x0, x20
	bl	_smiapp_read
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	ldrsw	x10, [x19]
	str	w8, [x9, x10, lsl #2]
	ldr	x8, [x24]
	ldrsw	x9, [x19], #4
	add	x8, x8, x9, lsl #3
	ldp	w3, w2, [x8]
	ldr	w4, [sp, #12]
	mov	x0, x21
	mov	x1, x22
	mov	x5, x4
	bl	_dev_dbg
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_smiapp_reg_limits,8,3          ; @smiapp_reg_limits
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%8.8x \"%s\" = %u, 0x%x\n"

	.no_dead_strip	_smiapp_get_limits
.subsections_via_symbols
