	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ceu_hw_config
_ceu_hw_config:                         ## @ceu_hw_config
	.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, %rbx
	movq	(%rdi), %r12
	movl	(%r12), %r15d
	movq	_CEU_CAIFR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_ceu_write
	movq	_CEU_CFWCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ceu_write
	movq	_CEU_CRCNTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ceu_write
	movq	_CEU_CRCMPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ceu_write
	movl	12(%rbx), %eax
	movl	4(%r12), %ecx
	imull	%eax, %ecx
	leal	7(%rcx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	movl	16(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$7, %ecx
	ja	LBB0_7
## %bb.1:
	movl	%r15d, %edi
	movl	8(%rbx), %r15d
	shll	$16, %r15d
	sarl	$3, %r14d
	orl	%r15d, %r14d
	movq	_CEU_CDOCR_SWAP_ENDIANNESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_CEU_CDOCR_NO_DOWSAMPLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movq	24(%rbx), %rcx
	movl	(%rcx), %r12d
	movq	_CEU_CAMCR_JPEG@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_5:
	movq	_CEU_CDOCR_NO_DOWSAMPLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
LBB0_6:
	xorl	%ecx, %ecx
	cmpl	$0, 16(%r12)
	setne	%cl
	jmp	LBB0_4
LBB0_2:
	movq	_CEU_CDOCR_NO_DOWSAMPLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
LBB0_3:
	xorl	%ecx, %ecx
	cmpl	$0, 16(%r12)
	sete	%cl
LBB0_4:
	leaq	(%r12,%rcx,4), %rcx
	addq	$8, %rcx
	movl	%eax, %r12d
LBB0_9:
	orl	%eax, %r15d
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%edi, %eax
	setne	%sil
	addl	%esi, %esi
	orl	(%rcx), %esi
	movq	_V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	andl	(%rax), %edi
	setne	%dl
	orl	%esi, %edx
	movq	_CEU_CAMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ceu_write
	movq	_CEU_CDOCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_ceu_write
	movq	_CEU_CAPCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CEU_CAPCR_BUS_WIDTH256@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ceu_write
	movq	_CEU_CAMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ceu_write
	movq	_CEU_CAPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ceu_write
	movq	_CEU_CFSZR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ceu_write
	movq	_CEU_CDWDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_ceu_write
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_CEU_CAIFR,4,2                  ## @CEU_CAIFR
	.comm	_CEU_CFWCR,4,2                  ## @CEU_CFWCR
	.comm	_CEU_CRCNTR,4,2                 ## @CEU_CRCNTR
	.comm	_CEU_CRCMPR,4,2                 ## @CEU_CRCMPR
	.comm	_CEU_CDOCR_SWAP_ENDIANNESS,4,2  ## @CEU_CDOCR_SWAP_ENDIANNESS
	.comm	_CEU_CAMCR_JPEG,4,2             ## @CEU_CAMCR_JPEG
	.comm	_CEU_CDOCR_NO_DOWSAMPLE,4,2     ## @CEU_CDOCR_NO_DOWSAMPLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_CEU_CAMCR,4,2                  ## @CEU_CAMCR
	.comm	_CEU_CDOCR,4,2                  ## @CEU_CDOCR
	.comm	_CEU_CAPCR,4,2                  ## @CEU_CAPCR
	.comm	_CEU_CAPCR_BUS_WIDTH256,4,2     ## @CEU_CAPCR_BUS_WIDTH256
	.comm	_CEU_CAMOR,4,2                  ## @CEU_CAMOR
	.comm	_CEU_CAPWR,4,2                  ## @CEU_CAPWR
	.comm	_CEU_CFSZR,4,2                  ## @CEU_CFSZR
	.comm	_CEU_CDWDR,4,2                  ## @CEU_CDWDR
	.no_dead_strip	_ceu_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ceu_hw_config
_ceu_hw_config:                         ; @ceu_hw_config
	.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	x19, x0
	ldr	x21, [x0]
	ldr	w24, [x21]
Lloh0:
	adrp	x8, _CEU_CAIFR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEU_CAIFR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ceu_write
Lloh3:
	adrp	x8, _CEU_CFWCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEU_CFWCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ceu_write
Lloh6:
	adrp	x8, _CEU_CRCNTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEU_CRCNTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ceu_write
Lloh9:
	adrp	x8, _CEU_CRCMPR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEU_CRCMPR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ceu_write
	ldr	w9, [x21, #4]
	ldp	w8, w10, [x19, #12]
	mul	w9, w9, w8
	add	w11, w9, #7
	cmp	w9, #0
	csel	w11, w11, w9, lt
	sub	w10, w10, #128
	cmp	w10, #7
	b.hi	LBB0_3
; %bb.1:
	ldr	w9, [x19, #8]
	lsl	w9, w9, #16
	orr	w20, w9, w11, asr #3
Lloh12:
	adrp	x11, _CEU_CDOCR_SWAP_ENDIANNESS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CEU_CDOCR_SWAP_ENDIANNESS@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x11]
Lloh15:
	adrp	x11, lJTI0_0@PAGE
Lloh16:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh17:
	adrp	x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w22, w10, w22
	ldr	x10, [x19, #24]
	ldr	w21, [x10]
Lloh20:
	adrp	x10, _CEU_CAMCR_JPEG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CEU_CAMCR_JPEG@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
Lloh25:
	adrp	x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w22, w10, w22
LBB0_5:
	ldr	w10, [x21, #16]
	add	x11, x21, #12
	add	x12, x21, #8
	b	LBB0_8
LBB0_6:
Lloh28:
	adrp	x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _CEU_CDOCR_NO_DOWSAMPLE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w22, w10, w22
LBB0_7:
	ldr	w10, [x21, #16]
	add	x11, x21, #8
	add	x12, x21, #12
LBB0_8:
	cmp	w10, #0
	csel	x10, x12, x11, eq
	mov	x21, x8
LBB0_9:
	orr	w23, w9, w8
	ldr	w8, [x10]
Lloh31:
	adrp	x9, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh32:
	ldr	x9, [x9, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w24
	cset	w9, ne
	orr	w8, w8, w9, lsl #1
Lloh34:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh35:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w24
	cset	w9, ne
	orr	w2, w8, w9
Lloh37:
	adrp	x8, _CEU_CAMCR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CEU_CAMCR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ceu_write
Lloh40:
	adrp	x8, _CEU_CDOCR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CEU_CDOCR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_ceu_write
Lloh43:
	adrp	x8, _CEU_CAPCR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CEU_CAPCR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _CEU_CAPCR_BUS_WIDTH256@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CEU_CAPCR_BUS_WIDTH256@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ceu_write
Lloh49:
	adrp	x8, _CEU_CAMOR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CEU_CAMOR@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ceu_write
Lloh52:
	adrp	x8, _CEU_CAPWR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CEU_CAPWR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ceu_write
Lloh55:
	adrp	x8, _CEU_CFSZR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CEU_CFSZR@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_ceu_write
Lloh58:
	adrp	x8, _CEU_CDWDR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CEU_CDWDR@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ceu_write
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CEU_CAIFR,4,2                  ; @CEU_CAIFR
	.comm	_CEU_CFWCR,4,2                  ; @CEU_CFWCR
	.comm	_CEU_CRCNTR,4,2                 ; @CEU_CRCNTR
	.comm	_CEU_CRCMPR,4,2                 ; @CEU_CRCMPR
	.comm	_CEU_CDOCR_SWAP_ENDIANNESS,4,2  ; @CEU_CDOCR_SWAP_ENDIANNESS
	.comm	_CEU_CAMCR_JPEG,4,2             ; @CEU_CAMCR_JPEG
	.comm	_CEU_CDOCR_NO_DOWSAMPLE,4,2     ; @CEU_CDOCR_NO_DOWSAMPLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_CEU_CAMCR,4,2                  ; @CEU_CAMCR
	.comm	_CEU_CDOCR,4,2                  ; @CEU_CDOCR
	.comm	_CEU_CAPCR,4,2                  ; @CEU_CAPCR
	.comm	_CEU_CAPCR_BUS_WIDTH256,4,2     ; @CEU_CAPCR_BUS_WIDTH256
	.comm	_CEU_CAMOR,4,2                  ; @CEU_CAMOR
	.comm	_CEU_CAPWR,4,2                  ; @CEU_CAPWR
	.comm	_CEU_CFSZR,4,2                  ; @CEU_CFSZR
	.comm	_CEU_CDWDR,4,2                  ; @CEU_CDWDR
	.no_dead_strip	_ceu_hw_config
.subsections_via_symbols
