	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_set_format_source
_smiapp_set_format_source:              ## @smiapp_set_format_source
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_smiapp_sensor
	movq	%rax, %r14
	movq	24(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	___smiapp_get_format
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
	cmpq	%rbx, 40(%r14)
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_smiapp_validate_csi_data_format
	movq	%rax, %r15
	movl	16(%rax), %eax
	movl	%eax, 8(%r13)
	movq	(%r13), %rax
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	%r15, 24(%r14)
	movl	(%r15), %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	(%r13), %eax
	je	LBB0_7
## %bb.4:
	movq	32(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movzbl	(%r15), %ecx
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	$1, %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	___v4l2_ctrl_modify_range
	incq	%rbx
	movq	32(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	movq	8(%r15), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_9
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %r13
	movq	24(%r14), %rax
	movq	8(%rax), %rbx
	subq	8(%r14), %rbx
	movl	16(%r14), %r15d
	movq	(%r13,%rbx,8), %rdi
	callq	___fls
	movl	%eax, %r12d
	movq	(%r13,%rbx,8), %rdi
	movq	%rdi, %rbx
	notq	%rbx
	callq	___ffs
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	___v4l2_ctrl_modify_range
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smiapp_pll_update              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_smiapp_set_format_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_set_format_source
_smiapp_set_format_source:              ; @smiapp_set_format_source
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x23, x1
	mov	x20, x0
	bl	_to_smiapp_sensor
	mov	x19, x0
	ldr	x24, [x0, #24]
	ldr	w22, [x21, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	___smiapp_get_format
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #40]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_smiapp_validate_csi_data_format
	ldr	w8, [x0, #16]
	str	w8, [x21, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x20, x0
	str	x0, [x19, #24]
	ldr	w8, [x0]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.4:
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, #0
	mov	w22, #-1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w8, [x20]
	lsl	w8, w22, w8
	mvn	w2, w8
	mov	w1, #0
	mov	w3, #1
	mov	w4, #0
	bl	___v4l2_ctrl_modify_range
	add	x21, x21, #1
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_6
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldp	x22, x9, [x19]
	sub	x8, x8, x9
	lsl	x23, x8, #3
	ldr	w20, [x19, #16]
	ldr	x0, [x22, x23]
	bl	___fls
	mov	x21, x0
	ldr	x0, [x22, x23]
	mvn	x22, x0
	bl	___ffs
	mov	x4, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	x3, x22
	bl	___v4l2_ctrl_modify_range
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_smiapp_pll_update
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_smiapp_set_format_source
.subsections_via_symbols
