	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos4_jpeg_parse_huff_tbl
_exynos4_jpeg_parse_huff_tbl:           ## @exynos4_jpeg_parse_huff_tbl
	.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	$72, %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	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	24(%rdi), %edi
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_20
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movq	%rax, -104(%rbp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	16(%rbx), %rcx
	addq	(%rcx,%r14,8), %rax
	movq	%rax, -88(%rbp)
	movq	$0, -96(%rbp)
	cmpq	$0, -104(%rbp)
	jle	LBB0_19
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##       Child Loop BB0_11 Depth 3
	leaq	-104(%rbp), %rdi
	callq	_get_byte
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %ecx
	andb	$15, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	shrb	$4, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rdx,%rax), %ecx
	addl	$8, %r13d
	movl	%ebx, %r14d
	movl	%r12d, %r15d
	cmpl	$16, %r12d
	je	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rdi
	callq	_get_byte
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	%eax, %edx
	movl	%r13d, %ecx
	andb	$24, %cl
	movl	%eax, %ebx
	shll	%cl, %ebx
	orl	%r14d, %ebx
	leal	1(%r15), %r12d
	testb	$3, %r12b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=3
	andl	$2147483644, %r15d              ## imm = 0x7FFFFFFC
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r15
	movzbl	-48(%rbp), %edi                 ## 1-byte Folded Reload
	movzbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%rdx, %r14
	callq	_exynos4_huff_tbl_len
	addq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	%r14, %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	addl	%eax, %edx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=3
	andl	$2147483644, %ebx               ## imm = 0x7FFFFFFC
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movzbl	-48(%rbp), %edi                 ## 1-byte Folded Reload
	movzbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	callq	_exynos4_huff_tbl_val
	addq	%rax, %rbx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	movq	%r13, %rdx
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	%r15, %rcx
	addl	$8, %r14d
	movl	%r12d, %ebx
	cmpl	%r12d, %edx
	movl	%eax, %r12d
	je	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rcx, %r15
	leaq	-104(%rbp), %rdi
	movq	%rdx, %r13
	callq	_get_byte
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	%r14d, %ecx
	andb	$24, %cl
	shll	%cl, %eax
	orl	%eax, %r12d
	movl	%r12d, %ecx
	leal	1(%rbx), %r12d
	testb	$3, %r12b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r13, %rdx
	movl	%ecx, %eax
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$3, %cl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rcx
	movzbl	-48(%rbp), %edi                 ## 1-byte Folded Reload
	movq	%rcx, %rbx
	movzbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	callq	_exynos4_huff_tbl_val
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writel
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-96(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jl	LBB0_2
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exynos4_jpeg_parse_huff_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos4_jpeg_parse_huff_tbl
_exynos4_jpeg_parse_huff_tbl:           ; @exynos4_jpeg_parse_huff_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	ldr	x25, [x0, #32]
	ldr	w0, [x0, #24]
	bl	_v4l2_m2m_next_src_buf
	str	x0, [sp]                        ; 8-byte Folded Spill
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	ldp	x9, x20, [sp, #8]               ; 16-byte Folded Reload
	ldr	x8, [x20, #8]
	lsl	x19, x9, #3
	ldr	x8, [x8, x19]
	str	x8, [sp, #24]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	w1, #0
	bl	_vb2_plane_vaddr
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x19]
	add	x8, x8, x0
	stp	xzr, x8, [sp, #32]
	ldr	x8, [sp, #24]
	cmp	x8, #1
	b.lt	LBB0_18
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	add	x0, sp, #24
	bl	_get_byte
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w28, #0
	mov	w23, #0
	mov	w20, #0
	mov	w26, #0
	and	w21, w0, #0xf
	ubfx	w22, w0, #4, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=3
	add	w20, w24, w27
	add	w28, w28, #8
	mov	x26, x19
	cmp	w19, #16
	b.eq	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x27, x20
	add	x0, sp, #24
	bl	_get_byte
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	x24, x0
	and	w8, w28, #0x18
	lsl	w8, w0, w8
	orr	w23, w8, w23
	add	w19, w26, #1
	tst	w19, #0x3
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=3
	ldr	x20, [x25]
	mov	x0, x22
	mov	x1, x21
	bl	_exynos4_huff_tbl_len
	and	w8, w26, #0x7ffffffc
	add	x8, x20, x8
	add	x1, x8, x0
	mov	x0, x23
	bl	_writel
	mov	w23, #0
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=2
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	w28, #0
	mov	w23, #0
	mov	w26, #0
	add	w24, w24, w27
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	w28, w28, #8
	mov	x26, x19
	cmp	w24, w19
	b.eq	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x0, sp, #24
	bl	_get_byte
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	and	w8, w28, #0x18
	lsl	w8, w0, w8
	orr	w23, w8, w23
	add	w19, w26, #1
	tst	w19, #0x3
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	x27, [x25]
	mov	x0, x22
	mov	x1, x21
	bl	_exynos4_huff_tbl_val
	and	w8, w26, #0x7ffffffc
	add	x8, x27, x8
	add	x1, x8, x0
	mov	x0, x23
	bl	_writel
	mov	w23, #0
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=2
	tst	w20, #0x3
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=2
	ldr	x19, [x25]
	mov	x0, x22
	mov	x1, x21
	bl	_exynos4_huff_tbl_val
	and	w8, w20, #0x7ffffffc
	add	x8, x19, x8
	add	x1, x8, x0
	mov	x0, x23
	bl	_writel
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=2
	ldp	x9, x8, [sp, #24]
	cmp	x8, x9
	b.lt	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [sp, #8]                ; 16-byte Folded Reload
	add	x9, x9, #1
	ldrsw	x8, [x8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x9, x8
	b.lt	LBB0_2
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exynos4_jpeg_parse_huff_tbl
.subsections_via_symbols
