	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_jpeg_set_queue_data
_mtk_jpeg_set_queue_data:               ## @mtk_jpeg_set_queue_data
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	64(%rdi), %r14
	movl	16(%rsi), %eax
	movl	%eax, 60(%rdi)
	movl	12(%rsi), %eax
	movl	%eax, 56(%rdi)
	movl	8(%rsi), %eax
	movl	%eax, 28(%rdi)
	movl	4(%rsi), %eax
	movl	%eax, 24(%rdi)
	movl	(%rsi), %esi
	movq	_MTK_JPEG_FMT_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mtk_jpeg_find_format
	movq	%rax, 16(%rbx)
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	24(%r15), %r8
	movq	32(%r15), %rdx
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	movl	(%r8,%rbx,4), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	4(%r15), %r10d
	movzbl	%al, %r8d
	movzbl	%ah, %ecx
	movl	%ecx, %r9d
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %r11d
	shrl	$24, %eax
	movl	16(%r15), %r12d
	movl	12(%r15), %r13d
	movl	8(%r15), %ebx
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	pushq	%r10
	pushq	%rbx
	pushq	%r13
	pushq	%r12
	pushq	%rax
	pushq	%r11
	callq	_v4l2_dbg
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_JPEG_FMT_TYPE_CAPTURE,4,2  ## @MTK_JPEG_FMT_TYPE_CAPTURE
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_parse cap:%c%c%c%c pic(%u, %u), buf(%u, %u)\n"

	.no_dead_strip	_mtk_jpeg_set_queue_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_jpeg_set_queue_data
_mtk_jpeg_set_queue_data:               ; @mtk_jpeg_set_queue_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #64]
	ldur	d0, [x1, #12]
	str	d0, [x0, #56]
	ldur	d0, [x1, #4]
	str	d0, [x0, #24]
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _MTK_JPEG_FMT_TYPE_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_JPEG_FMT_TYPE_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_mtk_jpeg_find_format
	str	x0, [x21, #16]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldp	x10, x9, [x20, #24]
	ldp	x12, x11, [x21]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x8, #2
	ldr	w14, [x9, x13]
	str	w14, [x11, x13]
	ldr	w14, [x10, x13]
	str	w14, [x12, x13]
	add	x8, x8, #1
	ldrsw	x13, [x0]
	cmp	x8, x13
	b.lt	LBB0_2
LBB0_3:
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w9, [x20]
	and	w4, w8, #0xff
	ubfx	w5, w8, #8, #8
	ubfx	w6, w8, #16, #8
	lsr	w7, w8, #24
	ldp	w10, w8, [x20, #12]
	ldr	w11, [x20, #8]
	stp	w11, w9, [sp, #8]
	stp	w8, w10, [sp]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_JPEG_FMT_TYPE_CAPTURE,4,2  ; @MTK_JPEG_FMT_TYPE_CAPTURE
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_parse cap:%c%c%c%c pic(%u, %u), buf(%u, %u)\n"

	.no_dead_strip	_mtk_jpeg_set_queue_data
.subsections_via_symbols
