	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function final_package
LCPI0_0:
	.space	4
	.long	7947                            ## 0x1f0b
	.long	11                              ## 0xb
	.long	22528                           ## 0x5800
LCPI0_1:
	.space	4
	.long	7957                            ## 0x1f15
	.long	21                              ## 0x15
	.long	43008                           ## 0xa800
LCPI0_2:
	.long	65535                           ## 0xffff
	.long	32                              ## 0x20
	.long	875                             ## 0x36b
	.long	1718                            ## 0x6b6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_final_package:                         ## @final_package
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -180(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	cmpq	$0, 40(%rdi)
	setne	%r9b
	movl	(%rdi), %eax
	movl	$16896, %r11d                   ## imm = 0x4200
	cmovnel	%ecx, %r11d
	movl	%r9d, %ebx
	shll	$4, %ebx
	addl	$16, %ebx
	cltd
	idivl	%ebx
	movl	$32768, -176(%rbp)              ## imm = 0x8000
	xorps	%xmm0, %xmm0
	movups	%xmm0, -172(%rbp)
	movq	$0, -156(%rbp)
	movl	$2, -148(%rbp)
	movq	48(%rdi), %r10
	movl	(%r10), %ebx
	movq	_GO7007_SENSOR_TV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movl	%r15d, %r14d
	andl	%ebx, %r14d
	cmovnel	%r11d, %r14d
	xorl	%r11d, %r11d
	cmpl	$0, 68(%rdi)
	setne	%r11b
	shll	$8, %r11d
	movq	_GO7007_SENSOR_CONFIG_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ebx
	orl	%r11d, %ebx
	orl	%r14d, %ebx
	movl	%ebx, -144(%rbp)
	movl	%eax, %r12d
	shll	$8, %r12d
	orl	$32, %eax
	shll	$9, %eax
	cmpl	$0, 64(%rdi)
	cmovel	%r12d, %eax
	movl	4(%rdi), %edx
	movl	%edx, %r14d
	sarl	$4, %r14d
	sarl	$3, %edx
	xorl	%ebx, %ebx
	cmpl	$0, 60(%rdi)
	cmovel	%r14d, %edx
	setne	%bl
	shll	$6, %ebx
	orl	%eax, %ebx
	orl	%edx, %ebx
	movl	%ebx, -140(%rbp)
	movl	8(%rdi), %eax
	movl	12(%rdi), %edx
	shll	$6, %eax
	sarl	$2, %edx
	orl	%eax, %edx
	orl	$32896, %edx                    ## imm = 0x8080
	movl	%edx, -136(%rbp)
	movq	$64, -132(%rbp)
	movl	$0, -124(%rbp)
	movl	56(%rdi), %eax
	shll	$8, %eax
	xorl	%edx, %edx
	andl	(%r10), %r15d
	setne	%dl
	shll	$7, %edx
	addl	%edx, %eax
	addl	$-191, %eax
	movl	%eax, -120(%rbp)
	movl	20(%rdi), %r11d
	orl	%r14d, %r12d
	xorl	%r15d, %r15d
	testl	%r11d, %r11d
	sete	%r15b
	movl	$875, %eax                      ## imm = 0x36B
	movl	$3404, %edx                     ## imm = 0xD4C
	cmovel	%eax, %edx
	movl	%edx, -116(%rbp)
	movl	%r12d, -112(%rbp)
	movl	24(%rdi), %r12d
	movq	_V4L2_PIX_FMT_MPEG4@GOTPCREL(%rip), %rbx
	movl	$384, %r13d                     ## imm = 0x180
	cmovel	%r11d, %r13d
	xorl	%eax, %eax
	cmpl	(%rbx), %r12d
	sete	%al
	movl	$1028, %ebx                     ## imm = 0x404
	cmovnel	%ecx, %ebx
	movl	%ebx, -108(%rbp)
	xorl	%ebx, %ebx
	cmpl	$0, 36(%rdi)
	setne	%bl
	shll	$12, %ebx
	movl	%eax, %edx
	shll	$11, %edx
	xorl	%r8d, %r8d
	cmpl	$0, 32(%rdi)
	movq	%rsi, %r10
	setne	%r8b
	shll	$2, %r8d
	xorl	%esi, %esi
	cmpl	$0, 28(%rdi)
	setne	%sil
	shll	$13, %r9d
	orl	%r13d, %r9d
	orl	%ebx, %r9d
	orl	%r8d, %r9d
	addl	%esi, %esi
	orl	%esi, %r9d
	orl	%edx, %r9d
	addl	$32769, %r9d                    ## imm = 0x8001
	movq	_V4L2_PIX_FMT_MPEG1@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r12d
	sete	%dl
	movq	_V4L2_PIX_FMT_MPEG2@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	sete	%bl
	orb	%dl, %bl
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r12d
	sete	%dl
	orb	%bl, %dl
	orb	%dl, %al
	movzbl	%dl, %edx
	shll	$7, %edx
	orl	$35104, %edx                    ## imm = 0x8920
	movq	_V4L2_PIX_FMT_H263@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r12d
	movl	%r9d, -104(%rbp)
	movl	$35104, %esi                    ## imm = 0x8920
	cmovnel	%ecx, %esi
	movzbl	%al, %eax
	movd	%eax, %xmm0
	pinsrb	$4, %r15d, %xmm0
	pshufd	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <u,7947,11,22528>
	pinsrd	$0, %edx, %xmm1
	pslld	$31, %xmm0
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = <u,7957,21,43008>
	pinsrd	$0, %esi, %xmm2
	blendvps	%xmm0, %xmm1, %xmm2
	movups	%xmm2, -100(%rbp)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [65535,32,875,1718]
	movups	%xmm0, -84(%rbp)
	movabsq	$14620068678145, %rax           ## imm = 0xD4C00000A01
	movq	%rax, -68(%rbp)
	movl	$4247, -60(%rbp)                ## imm = 0x1097
	movslq	16(%rdi), %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	testl	%r11d, %r11d
	cmovnel	%ecx, %eax
	movl	%eax, -56(%rbp)
	movl	(%rdi), %eax
	sarl	$4, %eax
	imull	%r14d, %eax
	imull	$110, %eax, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$5, %eax
	addl	%ecx, %eax
	movl	%eax, -52(%rbp)
	leaq	-176(%rbp), %rsi
	movq	%r10, %rdi
	movl	$1, %edx
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	callq	_copy_packages
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GO7007_SENSOR_TV,4,2           ## @GO7007_SENSOR_TV
	.comm	_GO7007_SENSOR_CONFIG_MASK,4,2  ## @GO7007_SENSOR_CONFIG_MASK
	.comm	_V4L2_PIX_FMT_MPEG4,4,2         ## @V4L2_PIX_FMT_MPEG4
	.comm	_V4L2_PIX_FMT_MPEG1,4,2         ## @V4L2_PIX_FMT_MPEG1
	.comm	_V4L2_PIX_FMT_MPEG2,4,2         ## @V4L2_PIX_FMT_MPEG2
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ## @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_H263,4,2          ## @V4L2_PIX_FMT_H263
	.no_dead_strip	_final_package
.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 final_package
lCPI0_0:
	.long	64                              ; 0x40
	.long	0                               ; 0x0
lCPI0_1:
	.long	7957                            ; 0x1f15
	.long	21                              ; 0x15
lCPI0_2:
	.long	7947                            ; 0x1f0b
	.long	11                              ; 0xb
lCPI0_4:
	.long	2561                            ; 0xa01
	.long	3404                            ; 0xd4c
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_3:
	.long	65535                           ; 0xffff
	.long	32                              ; 0x20
	.long	875                             ; 0x36b
	.long	1718                            ; 0x6b6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_final_package:                         ; @final_package
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x3, x2
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
	ldr	w9, [x0]
	ldp	x11, x10, [x0, #40]
	cmp	x11, #0
	mov	w11, #32
	mov	w12, #16
	csel	w11, w12, w11, eq
	mov	w12, #16896
	csel	w12, w12, wzr, eq
	sdiv	w14, w9, w11
	mov	w9, #32768
	str	w9, [sp, #8]
	stur	xzr, [sp, #12]
	stur	xzr, [sp, #28]
	stur	xzr, [sp, #20]
	mov	w9, #2
	str	w9, [sp, #36]
	ldr	w13, [x10]
Lloh3:
	adrp	x9, _GO7007_SENSOR_TV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GO7007_SENSOR_TV@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
	mov	w9, #40961
	mov	w15, #32769
	csel	w9, w15, w9, eq
	tst	w11, w13
	csel	w12, wzr, w12, eq
	ldp	w16, w15, [x0, #64]
	cmp	w15, #0
	cset	w15, ne
	bfi	w12, w15, #8, #1
Lloh6:
	adrp	x15, _GO7007_SENSOR_CONFIG_MASK@GOTPAGE
Lloh7:
	ldr	x15, [x15, _GO7007_SENSOR_CONFIG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w15, [x15]
	and	w13, w15, w13
	orr	w13, w12, w13
	lsl	w15, w14, #9
	lsl	w12, w14, #8
	orr	w14, w15, #0x4000
	cmp	w16, #0
	csel	w14, w12, w14, eq
	ldp	w16, w15, [x0]
	asr	w17, w15, #4
	asr	w15, w15, #3
	ldp	w2, w1, [x0, #56]
	cmp	w1, #0
	csel	w15, w17, w15, eq
	cset	w1, ne
	bfi	w14, w1, #6, #1
	orr	w14, w14, w15
	stp	w13, w14, [sp, #40]
	ldp	w13, w14, [x0, #8]
	lsl	w13, w13, #6
	orr	w13, w13, w14, asr #2
	mov	w14, #32896
	orr	w13, w13, w14
	str	w13, [sp, #48]
Lloh9:
	adrp	x13, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x13, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #52]
	str	wzr, [sp, #60]
	ldr	w10, [x10]
	tst	w10, w11
	cset	w10, ne
	lsl	w10, w10, #7
	bfi	w10, w2, #8, #24
	sub	w10, w10, #191
	mov	w11, #3404
	mov	w13, #875
	ldp	w15, w14, [x0, #16]
                                        ; kill: def $w15 killed $w15 def $x15
	sxtw	x15, w15
	cmp	w14, #0
	csel	w11, w13, w11, eq
	stp	w10, w11, [sp, #64]
	orr	w10, w17, w12
Lloh11:
	adrp	x11, _V4L2_PIX_FMT_MPEG4@GOTPAGE
Lloh12:
	ldr	x11, [x11, _V4L2_PIX_FMT_MPEG4@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	mov	w12, #384
	csel	w12, wzr, w12, eq
	mov	w13, #1028
	ldp	w1, w2, [x0, #24]
	cmp	w1, w11
	csel	w11, w13, wzr, eq
	cset	w13, eq
	stp	w10, w11, [sp, #72]
	ldp	w11, w10, [x0, #32]
	cmp	w10, #0
	cset	w10, ne
	cmp	w11, #0
	cset	w11, ne
	cmp	w2, #0
	orr	w9, w9, w12
	cset	w12, ne
	bfi	w9, w13, #11, #1
	bfi	w9, w10, #12, #1
	bfi	w9, w11, #2, #1
Lloh14:
	adrp	x10, _V4L2_PIX_FMT_MPEG1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_PIX_FMT_MPEG1@GOTPAGEOFF]
	bfi	w9, w12, #1, #1
Lloh16:
	ldr	w10, [x10]
	cmp	w1, w10
Lloh17:
	adrp	x10, _V4L2_PIX_FMT_MPEG2@GOTPAGE
Lloh18:
	ldr	x10, [x10, _V4L2_PIX_FMT_MPEG2@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	ccmp	w1, w10, #4, ne
Lloh20:
	adrp	x10, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ccmp	w1, w10, #4, ne
	cset	w10, eq
	orr	w10, w10, w13
	mov	w11, #35104
	mov	w12, #35232
	csel	w12, w12, w11, eq
Lloh23:
	adrp	x13, _V4L2_PIX_FMT_H263@GOTPAGE
Lloh24:
	ldr	x13, [x13, _V4L2_PIX_FMT_H263@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	cmp	w1, w13
	csel	w11, w11, wzr, eq
	cmp	w10, #0
	csel	w10, w12, w11, ne
	mov	w11, #43008
	mov	w12, #22528
	cmp	w14, #0
	csel	w11, w12, w11, eq
	cset	w12, eq
	stp	w9, w10, [sp, #80]
	dup.2s	v0, w12
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh26:
	adrp	x9, lCPI0_1@PAGE
Lloh27:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
Lloh28:
	adrp	x9, lCPI0_2@PAGE
Lloh29:
	ldr	d2, [x9, lCPI0_2@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [sp, #88]
	str	w11, [sp, #96]
Lloh30:
	adrp	x9, lCPI0_3@PAGE
Lloh31:
	ldr	q0, [x9, lCPI0_3@PAGEOFF]
	stur	q0, [sp, #100]
Lloh32:
	adrp	x9, lCPI0_4@PAGE
Lloh33:
	ldr	d0, [x9, lCPI0_4@PAGEOFF]
	stur	d0, [sp, #116]
	mov	w9, #4247
	mov	w10, #21846
	movk	w10, #21845, lsl #16
	mul	x10, x15, x10
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
	csel	w10, w15, w10, eq
	stp	w9, w10, [sp, #124]
	asr	w9, w16, #4
	mul	w9, w17, w9
	mov	w10, #110
	mul	w9, w9, w10
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #5
	str	w9, [sp, #132]
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #1
	bl	_copy_packages
	ldur	x8, [x29, #-8]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpAdrp	Lloh30, Lloh32
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpAdrp	Lloh28, Lloh30
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpAdrp	Lloh26, Lloh28
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GO7007_SENSOR_TV,4,2           ; @GO7007_SENSOR_TV
	.comm	_GO7007_SENSOR_CONFIG_MASK,4,2  ; @GO7007_SENSOR_CONFIG_MASK
	.comm	_V4L2_PIX_FMT_MPEG4,4,2         ; @V4L2_PIX_FMT_MPEG4
	.comm	_V4L2_PIX_FMT_MPEG1,4,2         ; @V4L2_PIX_FMT_MPEG1
	.comm	_V4L2_PIX_FMT_MPEG2,4,2         ; @V4L2_PIX_FMT_MPEG2
	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ; @V4L2_PIX_FMT_MJPEG
	.comm	_V4L2_PIX_FMT_H263,4,2          ; @V4L2_PIX_FMT_H263
	.no_dead_strip	_final_package
.subsections_via_symbols
