	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_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
	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, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	_MAX_MODES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_SE401_REQ_GET_CAMERA_DESCRIPTOR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_se401_read_req
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_usb_reset_device
	movl	$0, 8(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_se401_read_req
LBB0_2:
	movq	_SE401_REQ_LED_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_se401_write_req
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_36
## %bb.3:
	cmpl	$65, 4(%r15)
	jne	LBB0_4
## %bb.6:
	movq	%r15, %r14
	movq	_SE401_FORMAT_BAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_7
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_10:
	movl	20(%r14), %r15d
	shll	$8, %r15d
	orl	16(%r14), %r15d
	movq	_MAX_MODES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_11
## %bb.38:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_37
## %bb.39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r15d, %r15d
	jle	LBB0_35
## %bb.12:
	cmpl	$4, %r15d
	jae	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_14:
	movl	%r15d, %eax
	andl	$-4, %eax
	leaq	(,%r15,4), %rcx
	andq	$-16, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	24(%r14,%rdx,4), %xmm0
	movdqu	40(%r14,%rdx,4), %xmm1
	movdqu	56(%r14,%rdx,4), %xmm2
	movdqu	72(%r14,%rdx,4), %xmm3
	movdqa	%xmm0, %xmm4
	punpckldq	%xmm1, %xmm4            ## xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
	movdqa	%xmm2, %xmm5
	punpckldq	%xmm3, %xmm5            ## xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1]
	punpcklqdq	%xmm5, %xmm4            ## xmm4 = xmm4[0],xmm5[0]
	pshufd	$85, %xmm0, %xmm6               ## xmm6 = xmm0[1,1,1,1]
	pblendw	$12, %xmm1, %xmm6               ## xmm6 = xmm6[0,1],xmm1[2,3],xmm6[4,5,6,7]
	pblendw	$240, %xmm5, %xmm6              ## xmm6 = xmm6[0,1,2,3],xmm5[4,5,6,7]
	pshufd	$170, %xmm3, %xmm5              ## xmm5 = xmm3[2,2,2,2]
	pblendw	$63, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,2,3,4,5],xmm5[6,7]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pblendw	$15, %xmm0, %xmm5               ## xmm5 = xmm0[0,1,2,3],xmm5[4,5,6,7]
	punpckhdq	%xmm3, %xmm2            ## xmm2 = xmm2[2],xmm3[2],xmm2[3],xmm3[3]
	punpckhqdq	%xmm2, %xmm0            ## xmm0 = xmm0[1],xmm2[1]
	pslld	$8, %xmm6
	por	%xmm4, %xmm6
	movdqa	%xmm6, (%r12,%rdx)
	pslld	$8, %xmm0
	por	%xmm5, %xmm0
	movdqa	%xmm0, (%r13,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
## %bb.16:
	cmpq	%r15, %rax
	je	LBB0_19
LBB0_17:
	movq	%rax, %rcx
	shlq	$4, %rcx
	addq	%r14, %rcx
	addq	$36, %rcx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rcx), %edx
	shll	$8, %edx
	orl	-12(%rcx), %edx
	movl	%edx, (%r12,%rax,4)
	movl	(%rcx), %edx
	shll	$8, %edx
	orl	-4(%rcx), %edx
	movl	%edx, (%r13,%rax,4)
	incq	%rax
	addq	$16, %rcx
	cmpq	%rax, %r15
	jne	LBB0_18
LBB0_19:
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_V4L2_PIX_FMT_SE401@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r10,%r11)
	movl	$0, 12(%r10,%r11)
	movl	%edx, %eax
	imull	%esi, %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 16(%r10,%r11)
	imull	%ecx, %ecx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_34:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r14
	cmpq	%r15, %r14
	je	LBB0_35
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movl	(%r12,%r14,4), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r10
	movq	%r14, %r11
	shlq	$5, %r11
	movl	%esi, (%r10,%r11)
	movl	(%r13,%r14,4), %edx
	movl	%edx, 4(%r10,%r11)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r10,%r11)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r10,%r11)
	leaq	(%r10,%r11), %rbx
	addq	$8, %rbx
	movl	$1, 8(%r10,%r11)
	xorl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=2
	incq	%rax
	cmpq	%rax, %r15
	je	LBB0_25
LBB0_21:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rax,4), %edi
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	cmpl	%esi, %ecx
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movl	(%r13,%rax,4), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	cmpl	%edx, %edi
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	$2, (%rbx)
	movl	$2, %ecx
	xorl	%r9d, %r9d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$1, %ecx
	movb	$1, %r9b
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=2
	incq	%rax
	cmpq	%rax, %r15
	je	LBB0_32
LBB0_27:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rax,4), %edi
	leal	3(%rdi), %r8d
	testl	%edi, %edi
	cmovnsl	%edi, %r8d
	sarl	$2, %r8d
	cmpl	%esi, %r8d
	jne	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	(%r13,%rax,4), %edi
	leal	3(%rdi), %ebx
	testl	%edi, %edi
	cmovnsl	%edi, %ebx
	sarl	$2, %ebx
	cmpl	%edx, %ebx
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$4, (%rax)
	movl	$4, %ecx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	testb	%r9b, %r9b
	je	LBB0_30
## %bb.33:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r10,%r11)
	movl	%esi, 12(%r10,%r11)
	movl	%edx, %eax
	imull	%esi, %eax
	movl	%eax, 16(%r10,%r11)
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_34
LBB0_35:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	movl	%r15d, 16(%rbx)
	movl	$1, 20(%rbx)
	movq	_BULK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	$4, 24(%rbx)
	movl	$45, (%rbx)
	movq	_SE401_REQ_GET_BRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_se401_read_req
	xorl	%eax, %eax
	cmpl	$0, 8(%rbx)
	setne	%al
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MODES,4,2                  ## @MAX_MODES
	.comm	_SE401_REQ_GET_CAMERA_DESCRIPTOR,4,2 ## @SE401_REQ_GET_CAMERA_DESCRIPTOR
	.comm	_SE401_REQ_LED_CONTROL,4,2      ## @SE401_REQ_LED_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong descriptor type\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SE401_FORMAT_BAYER,4,2         ## @SE401_FORMAT_BAYER
L_.str.1:                               ## @.str.1
	.asciz	"Bayer format not supported!\n"

L_.str.2:                               ## @.str.2
	.asciz	"ExtraFeatures: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Too many frame sizes\n"

	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
L_.str.4:                               ## @.str.4
	.asciz	"Frame size: %dx%d bayer\n"

	.comm	_V4L2_PIX_FMT_SE401,4,2         ## @V4L2_PIX_FMT_SE401
L_.str.5:                               ## @.str.5
	.asciz	"Frame size: %dx%d 1/%dth janggu\n"

	.comm	_BULK_SIZE,4,2                  ## @BULK_SIZE
	.comm	_SE401_REQ_GET_BRT,4,2          ## @SE401_REQ_GET_BRT
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sd_config
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sd_config:                             ; @sd_config
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x0]
Lloh3:
	adrp	x21, _MAX_MODES@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_MODES@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x22, x9, x12
	mov	sp, x22
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
Lloh9:
	adrp	x24, _SE401_REQ_GET_CAMERA_DESCRIPTOR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SE401_REQ_GET_CAMERA_DESCRIPTOR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #1
	bl	_se401_read_req
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_usb_reset_device
	str	wzr, [x19, #8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_se401_read_req
LBB0_2:
Lloh11:
	adrp	x8, _SE401_REQ_LED_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SE401_REQ_LED_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_se401_write_req
	ldr	w0, [x19, #8]
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w8, #65
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x20, #8]
Lloh14:
	adrp	x9, _SE401_FORMAT_BAYER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SE401_FORMAT_BAYER@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.5:
	ldr	w1, [x20, #12]
	cbz	w1, LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
LBB0_7:
	ldp	w8, w9, [x20, #16]
	orr	w24, w8, w9, lsl #8
	ldr	w8, [x21]
	cmp	w24, w8
	b.le	LBB0_14
; %bb.8:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_pr_err
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.13:
	sub	sp, x29, #80
	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
LBB0_14:
	cmp	w24, #1
	b.lt	LBB0_38
; %bb.15:
	cmp	w24, #8
	b.hs	LBB0_17
; %bb.16:
	mov	x8, #0
	b	LBB0_20
LBB0_17:
	and	x8, x24, #0xfffffff8
	add	x9, x20, #88
	add	x10, x23, #16
	add	x11, x22, #16
	mov	x12, x8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x9, #64
	ld4.4s	{ v0, v1, v2, v3 }, [x13]
	ld4.4s	{ v4, v5, v6, v7 }, [x9]
	shl.4s	v16, v1, #8
	shl.4s	v17, v5, #8
	orr.16b	v16, v16, v0
	orr.16b	v17, v17, v4
	stp	q16, q17, [x11, #-16]
	shl.4s	v16, v3, #8
	shl.4s	v17, v7, #8
	orr.16b	v0, v16, v2
	orr.16b	v1, v17, v6
	stp	q0, q1, [x10, #-16]
	add	x9, x9, #128
	add	x10, x10, #32
	add	x11, x11, #32
	subs	x12, x12, #8
	b.ne	LBB0_18
; %bb.19:
	cmp	x8, x24
	b.eq	LBB0_22
LBB0_20:
	sub	x9, x24, x8
	lsl	x11, x8, #2
	add	x10, x22, x11
	add	x11, x23, x11
	add	x8, x20, x8, lsl #4
	add	x8, x8, #36
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	w12, w13, [x8, #-12]
	orr	w12, w12, w13, lsl #8
	str	w12, [x10], #4
	ldp	w12, w13, [x8, #-4]
	orr	w12, w12, w13, lsl #8
	str	w12, [x11], #4
	add	x8, x8, #16
	subs	x9, x9, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x25, #0
Lloh31:
	adrp	x26, _V4L2_FIELD_NONE@GOTPAGE
Lloh32:
	ldr	x26, [x26, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh33:
	adrp	x27, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh34:
	ldr	x27, [x27, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
	mov	w28, #1
Lloh35:
	adrp	x21, _V4L2_PIX_FMT_SE401@GOTPAGE
Lloh36:
	ldr	x21, [x21, _V4L2_PIX_FMT_SE401@GOTPAGEOFF]
Lloh37:
	adrp	x20, l_.str.5@PAGE
Lloh38:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w10, [x21]
	add	x9, x9, x25, lsl #5
	str	w10, [x9, #20]
	mul	w10, w8, w1
	add	w10, w10, w10, lsl #1
	stp	wzr, w10, [x9, #12]
	mul	w9, w11, w11
	stp	x8, x9, [sp, #-16]!
	mov	x0, x20
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	bl	_pr_info
	add	sp, sp, #16
	add	x25, x25, #1
	cmp	x25, x24
	b.eq	LBB0_38
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
	lsl	x8, x25, #2
	ldr	w1, [x22, x8]
	ldr	x9, [x19, #8]
	ldr	w8, [x23, x8]
	add	x10, x9, x25, lsl #5
	stp	w1, w8, [x10]
	ldr	w11, [x26]
	str	w11, [x10, #28]
	ldr	w11, [x27]
	str	w28, [x10, #8]!
	str	w11, [x10, #16]
	mov	x11, x24
	mov	x12, x22
	mov	x13, x23
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x13, x13, #4
	add	x12, x12, #4
	subs	x11, x11, #1
	b.eq	LBB0_30
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x12]
	cmp	w14, #0
	cinc	w14, w14, lt
	cmp	w1, w14, asr #1
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	w14, [x13]
	cmp	w14, #0
	cinc	w14, w14, lt
	cmp	w8, w14, asr #1
	b.ne	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w12, #0
	mov	w11, #2
	str	w11, [x10]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w12, #1
	mov	w11, #1
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x13, x24
	mov	x14, x22
	mov	x15, x23
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x15, x15, #4
	add	x14, x14, #4
	subs	x13, x13, #1
	b.eq	LBB0_36
LBB0_33:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x14]
	add	w17, w16, #3
	cmp	w16, #0
	csel	w16, w17, w16, lt
	cmp	w1, w16, asr #2
	b.ne	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	w16, [x15]
	add	w17, w16, #3
	cmp	w16, #0
	csel	w16, w17, w16, lt
	cmp	w8, w16, asr #2
	b.ne	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w11, #4
	str	w11, [x10]
	b	LBB0_23
LBB0_36:                                ;   in Loop: Header=BB0_25 Depth=1
	cbz	w12, LBB0_23
; %bb.37:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh39:
	adrp	x10, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh40:
	ldr	x10, [x10, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x10]
	add	x9, x9, x25, lsl #5
	mul	w10, w8, w1
	str	w1, [x9, #12]
	stp	w10, w11, [x9, #16]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp, #-16]!
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_38:
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
	str	w24, [x19, #16]
Lloh44:
	adrp	x8, _BULK_SIZE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BULK_SIZE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh47:
	adrp	x8, lCPI0_0@PAGE
Lloh48:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #20]
	mov	w8, #45
	str	w8, [x19]
Lloh49:
	adrp	x8, _SE401_REQ_GET_BRT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SE401_REQ_GET_BRT@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_se401_read_req
	mov	w0, #0
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w8, ne
	stp	w8, wzr, [x19, #4]
	b	LBB0_12
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdr	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MODES,4,2                  ; @MAX_MODES
	.comm	_SE401_REQ_GET_CAMERA_DESCRIPTOR,4,2 ; @SE401_REQ_GET_CAMERA_DESCRIPTOR
	.comm	_SE401_REQ_LED_CONTROL,4,2      ; @SE401_REQ_LED_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong descriptor type\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SE401_FORMAT_BAYER,4,2         ; @SE401_FORMAT_BAYER
l_.str.1:                               ; @.str.1
	.asciz	"Bayer format not supported!\n"

l_.str.2:                               ; @.str.2
	.asciz	"ExtraFeatures: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Too many frame sizes\n"

	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
l_.str.4:                               ; @.str.4
	.asciz	"Frame size: %dx%d bayer\n"

	.comm	_V4L2_PIX_FMT_SE401,4,2         ; @V4L2_PIX_FMT_SE401
l_.str.5:                               ; @.str.5
	.asciz	"Frame size: %dx%d 1/%dth janggu\n"

	.comm	_BULK_SIZE,4,2                  ; @BULK_SIZE
	.comm	_SE401_REQ_GET_BRT,4,2          ; @SE401_REQ_GET_BRT
	.no_dead_strip	_sd_config
.subsections_via_symbols
