	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_camera_source      ## -- Begin function fimc_hw_set_camera_source
	.p2align	4, 0x90
_fimc_hw_set_camera_source:             ## @fimc_hw_set_camera_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
	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, %r15
	movq	16(%rdi), %r14
	movl	(%rsi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.4:
	movq	%rsi, %rbx
	movq	_pix_desc@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %eax
	movq	(%r13), %rdi
	cmpl	(%rdi,%r14), %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r14
	cmpq	%rax, %r12
	jl	LBB0_7
## %bb.10:
	xorl	%ebx, %ebx
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_fimc_fmt_is_user_defined
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	movq	_FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_5:
	xorl	%r12d, %r12d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movl	-8(%rdi,%r14), %ebx
	movl	-4(%rdi,%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jne	LBB0_14
## %bb.13:
	movl	8(%r15), %edx
	addq	$12, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$130, (%rax)
	jne	LBB0_20
## %bb.15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$16, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$8, %eax
	jne	LBB0_20
## %bb.17:
	movq	_FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_FIMC_REG_CISRCFMT_ITU601_16BIT@GOTPCREL(%rip), %rax
LBB0_19:
	orl	(%rax), %ebx
LBB0_20:
	movl	(%r14), %eax
	shll	$16, %eax
	orl	4(%r14), %ebx
	orl	%eax, %ebx
	movq	_FIMC_REG_CISRCFMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pix_desc,8,3                   ## @pix_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Camera color format not supported: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIMC_REG_CISRCFMT_ITU601_8BIT,4,2 ## @FIMC_REG_CISRCFMT_ITU601_8BIT
	.comm	_FIMC_REG_CISRCFMT_ITU601_16BIT,4,2 ## @FIMC_REG_CISRCFMT_ITU601_16BIT
	.comm	_FIMC_REG_CISRCFMT,8,3          ## @FIMC_REG_CISRCFMT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_camera_source      ; -- Begin function fimc_hw_set_camera_source
	.p2align	2
_fimc_hw_set_camera_source:             ; @fimc_hw_set_camera_source
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x1]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x23, _pix_desc@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pix_desc@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x22, #0
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #8]
	ldr	x0, [x23]
	add	x8, x0, x22
	ldr	w10, [x8, #8]
	cmp	w9, w10
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #12
	cmp	x24, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_9
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_fimc_fmt_is_user_defined
Lloh2:
	adrp	x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, wzr, w8, eq
	b	LBB0_19
LBB0_7:
	mov	w22, #0
	b	LBB0_19
LBB0_8:
	mov	w24, #0
LBB0_9:
	mov	w22, #0
                                        ; implicit-def: $w25
	b	LBB0_11
LBB0_10:
	ldp	w22, w25, [x8]
LBB0_11:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.ne	LBB0_13
; %bb.12:
	add	x0, x19, #12
	ldr	w2, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_13:
	ldr	w8, [x20]
	cmp	w8, #130
	b.ne	LBB0_19
; %bb.14:
	cmp	w25, #16
	b.eq	LBB0_17
; %bb.15:
	cmp	w25, #8
	b.ne	LBB0_19
; %bb.16:
Lloh10:
	adrp	x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh12:
	adrp	x8, _FIMC_REG_CISRCFMT_ITU601_16BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIMC_REG_CISRCFMT_ITU601_16BIT@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_19:
	ldp	w8, w9, [x21]
	orr	w9, w9, w22
	orr	w0, w9, w8, lsl #16
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _FIMC_REG_CISRCFMT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FIMC_REG_CISRCFMT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
LBB0_20:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pix_desc,8,3                   ; @pix_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Camera color format not supported: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIMC_REG_CISRCFMT_ITU601_8BIT,4,2 ; @FIMC_REG_CISRCFMT_ITU601_8BIT
	.comm	_FIMC_REG_CISRCFMT_ITU601_16BIT,4,2 ; @FIMC_REG_CISRCFMT_ITU601_16BIT
	.comm	_FIMC_REG_CISRCFMT,8,3          ; @FIMC_REG_CISRCFMT
.subsections_via_symbols
