	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_get_limits_binning
_smiapp_get_limits_binning:             ## @smiapp_get_limits_binning
	.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, %r13
	movq	8(%rdi), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	_SMIAPP_LIMIT_BINNING_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	movq	_SMIAPP_BINNING_CAPABILITY_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	_smiapp_get_limits_binning.limits(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %r12d
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	leaq	_smiapp_get_limits_binning.limits_replace(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rbx,%r14), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	(%rbx,%r15), %rdx
	movl	%ecx, (%rax,%rdx,4)
	incq	%r12
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jb	LBB0_3
	jmp	LBB0_11
LBB0_4:
	leaq	_smiapp_get_limits_binning.limits(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_smiapp_get_limits
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movq	(%r13), %rcx
	cmpl	$0, 528(%rcx)
	je	LBB0_8
## %bb.6:
	cmpl	$0, 512(%rcx)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpl	$0, 520(%rcx)
	jne	LBB0_12
LBB0_8:
	leaq	_smiapp_get_limits_binning.limits(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_smiapp_reg_limits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%r12), %r14
	movl	(%rax,%r14,8), %ecx
	movl	4(%rax,%r14,8), %edx
	movq	(%r13), %rax
	leaq	_smiapp_get_limits_binning.limits_replace(%rip), %rsi
	movq	(%r15,%rsi), %r12
	movl	(%rax,%r12,4), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %r9d
	callq	_dev_dbg
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %ecx
	leaq	_smiapp_get_limits_binning.limits(%rip), %r12
	movl	%ecx, (%rax,%r14,4)
	incq	%rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$8, %r15
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @smiapp_get_limits_binning.limits
_smiapp_get_limits_binning.limits:
	.quad	132                             ## 0x84
	.quad	136                             ## 0x88
	.quad	128                             ## 0x80
	.quad	134                             ## 0x86
	.quad	130                             ## 0x82
	.quad	138                             ## 0x8a
	.quad	140                             ## 0x8c

	.p2align	4                               ## @smiapp_get_limits_binning.limits_replace
_smiapp_get_limits_binning.limits_replace:
	.quad	133                             ## 0x85
	.quad	137                             ## 0x89
	.quad	129                             ## 0x81
	.quad	135                             ## 0x87
	.quad	131                             ## 0x83
	.quad	139                             ## 0x8b
	.quad	141                             ## 0x8d

	.comm	_SMIAPP_LIMIT_BINNING_CAPABILITY,8,3 ## @SMIAPP_LIMIT_BINNING_CAPABILITY
	.comm	_SMIAPP_BINNING_CAPABILITY_NO,4,2 ## @SMIAPP_BINNING_CAPABILITY_NO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"replace limit 0x%8.8x \"%s\" = %d, 0x%x\n"

	.comm	_smiapp_reg_limits,8,3          ## @smiapp_reg_limits
	.no_dead_strip	_smiapp_get_limits_binning
.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_binning
_smiapp_get_limits_binning:             ; @smiapp_get_limits_binning
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SMIAPP_LIMIT_BINNING_CAPABILITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMIAPP_LIMIT_BINNING_CAPABILITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w22, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _SMIAPP_BINNING_CAPABILITY_NO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_BINNING_CAPABILITY_NO@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x21, _smiapp_get_limits_binning.limits@PAGE
Lloh7:
	add	x21, x21, _smiapp_get_limits_binning.limits@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	cmp	w22, w23
	b.ne	LBB0_4
; %bb.1:
	cbz	w2, LBB0_11
; %bb.2:
	mov	x20, #0
Lloh8:
	adrp	x22, _smiapp_get_limits_binning.limits_replace@PAGE
Lloh9:
	add	x22, x22, _smiapp_get_limits_binning.limits_replace@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x9, x20, #3
	ldr	x10, [x22, x9]
	ldr	w10, [x8, x10, lsl #2]
	ldr	x9, [x21, x9]
	str	w10, [x8, x9, lsl #2]
	add	x20, x20, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x20, w0, uxtw
	b.lo	LBB0_3
	b	LBB0_11
LBB0_4:
Lloh10:
	adrp	x1, _smiapp_get_limits_binning.limits@PAGE
Lloh11:
	add	x1, x1, _smiapp_get_limits_binning.limits@PAGEOFF
	mov	x0, x19
	bl	_smiapp_get_limits
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	x8, [x19]
	ldr	w9, [x8, #528]
	cbz	w9, LBB0_8
; %bb.6:
	ldr	w9, [x8, #512]
	cbz	w9, LBB0_8
; %bb.7:
	ldr	w8, [x8, #520]
	cbnz	w8, LBB0_11
LBB0_8:
Lloh12:
	adrp	x21, _smiapp_get_limits_binning.limits@PAGE
Lloh13:
	add	x21, x21, _smiapp_get_limits_binning.limits@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_12
; %bb.9:
	mov	x23, #0
Lloh14:
	adrp	x24, _smiapp_reg_limits@GOTPAGE
Lloh15:
	ldr	x24, [x24, _smiapp_reg_limits@GOTPAGEOFF]
Lloh16:
	adrp	x25, _smiapp_get_limits_binning.limits_replace@PAGE
Lloh17:
	add	x25, x25, _smiapp_get_limits_binning.limits_replace@PAGEOFF
Lloh18:
	adrp	x22, l_.str@PAGE
Lloh19:
	add	x22, x22, l_.str@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x9, x23, #3
	ldr	x26, [x21, x9]
	add	x8, x8, x26, lsl #3
	ldp	w3, w2, [x8]
	ldr	x8, [x19]
	ldr	x9, [x25, x9]
	lsl	x27, x9, #2
	ldr	w4, [x8, x27]
	mov	x0, x20
	mov	x1, x22
	mov	x5, x4
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	w9, [x8, x27]
	str	w9, [x8, x26, lsl #2]
	add	x23, x23, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @smiapp_get_limits_binning.limits
_smiapp_get_limits_binning.limits:
	.quad	132                             ; 0x84
	.quad	136                             ; 0x88
	.quad	128                             ; 0x80
	.quad	134                             ; 0x86
	.quad	130                             ; 0x82
	.quad	138                             ; 0x8a
	.quad	140                             ; 0x8c

	.p2align	3                               ; @smiapp_get_limits_binning.limits_replace
_smiapp_get_limits_binning.limits_replace:
	.quad	133                             ; 0x85
	.quad	137                             ; 0x89
	.quad	129                             ; 0x81
	.quad	135                             ; 0x87
	.quad	131                             ; 0x83
	.quad	139                             ; 0x8b
	.quad	141                             ; 0x8d

	.comm	_SMIAPP_LIMIT_BINNING_CAPABILITY,8,3 ; @SMIAPP_LIMIT_BINNING_CAPABILITY
	.comm	_SMIAPP_BINNING_CAPABILITY_NO,4,2 ; @SMIAPP_BINNING_CAPABILITY_NO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"replace limit 0x%8.8x \"%s\" = %d, 0x%x\n"

	.comm	_smiapp_reg_limits,8,3          ; @smiapp_reg_limits
	.no_dead_strip	_smiapp_get_limits_binning
.subsections_via_symbols
