	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_mjpeg_ipc_decode
_delta_mjpeg_ipc_decode:                ## @delta_mjpeg_ipc_decode
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_to_ctx
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	(%rax), %r13
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_delta_get_free_frame
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	5184(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movslq	(%r12), %rax
	movq	%rax, 64(%r13)
	movl	4(%r12), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltq
	movq	%rax, 56(%r13)
	movq	_JPEG_DISP_AUX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_JPEG_ADDITIONAL_FLAG_420MB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_JPEG_HDEC_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	_JPEG_VDEC_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	_JPEG_NORMAL_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movl	$4, 8(%r13)
	movq	-56(%rbp), %rax
	movq	24(%rax), %rcx
	movq	%rcx, 24(%r13)
	movslq	12(%rax), %rdx
	movslq	16(%rax), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, 16(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	(%r15), %r12d
	movl	8(%r14), %esi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_ipc_decode_param_str
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_dev_vdbg
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	_JPEG_DECODER_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 5184(%r13)
	movl	$72, -96(%rbp)
	movq	%r13, -88(%rbp)
	movl	$72, -80(%rbp)
	movq	%r12, -72(%rbp)
	movl	12(%r14), %edi
	leaq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_delta_ipc_decode
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	movl	(%r15), %r15d
	movl	8(%r14), %esi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_ipc_decode_param_str
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	4(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_delta_mjpeg_check_status
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %ebx
	movl	(%r15), %r15d
	movl	8(%r14), %esi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_ipc_decode_param_str
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_5:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movq	_V4L2_BUF_FLAG_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_DELTA_FRAME_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	%rcx, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JPEG_DISP_AUX_EN,4,2           ## @JPEG_DISP_AUX_EN
	.comm	_JPEG_ADDITIONAL_FLAG_420MB,4,2 ## @JPEG_ADDITIONAL_FLAG_420MB
	.comm	_JPEG_HDEC_1,4,2                ## @JPEG_HDEC_1
	.comm	_JPEG_VDEC_1,4,2                ## @JPEG_VDEC_1
	.comm	_JPEG_NORMAL_DECODE,4,2         ## @JPEG_NORMAL_DECODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s  %s\n"

	.comm	_JPEG_DECODER_NO_ERROR,4,2      ## @JPEG_DECODER_NO_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s  dumping command %s\n"

	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ## @V4L2_BUF_FLAG_KEYFRAME
	.comm	_DELTA_FRAME_DEC,4,2            ## @DELTA_FRAME_DEC
	.no_dead_strip	_delta_mjpeg_ipc_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_mjpeg_ipc_decode
_delta_mjpeg_ipc_decode:                ; @delta_mjpeg_ipc_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
	bl	_to_ctx
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	add	x1, sp, #40
	mov	x0, x21
	bl	_delta_get_free_frame
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	w8, #5184
	add	x22, x20, x8
	mov	w26, #72
	mov	x0, x20
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldrsw	x8, [x24]
	str	x8, [x20, #64]
	ldr	w9, [x24, #4]
	add	w8, w8, w9
	sub	w8, w8, #1
	sxtw	x8, w8
	str	x8, [x20, #56]
Lloh0:
	adrp	x8, _JPEG_DISP_AUX_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JPEG_DISP_AUX_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh3:
	adrp	x8, _JPEG_ADDITIONAL_FLAG_420MB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JPEG_ADDITIONAL_FLAG_420MB@GOTPAGEOFF]
Lloh5:
	adrp	x9, _JPEG_HDEC_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _JPEG_HDEC_1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh9:
	adrp	x8, _JPEG_VDEC_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JPEG_VDEC_1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _JPEG_NORMAL_DECODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _JPEG_NORMAL_DECODE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	mov	w8, #4
	str	w8, [x20, #8]
	ldr	x8, [sp, #40]
	ldr	x9, [x8, #24]
	str	x9, [x20, #24]
	ldpsw	x10, x8, [x8, #12]
	madd	x8, x8, x10, x9
	str	x8, [x20, #16]
	ldr	w23, [x25]
	ldr	w24, [x21]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #4
	bl	_ipc_decode_param_str
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_dev_vdbg
	mov	x0, x22
	mov	w1, #0
	mov	w2, #72
	bl	_memset
Lloh17:
	adrp	x8, _JPEG_DECODER_NO_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _JPEG_DECODER_NO_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #5184]
	str	w26, [sp, #24]
	str	x20, [sp, #32]
	str	w26, [sp, #8]
	str	x22, [sp, #16]
	ldr	w0, [x19, #12]
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_delta_ipc_decode
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	ldr	w22, [x25]
	ldr	w21, [x21]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #4
	bl	_ipc_decode_param_str
	mov	x3, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	mov	x0, x21
	mov	x1, x22
	bl	_delta_mjpeg_check_status
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w22, [x25]
	ldr	w21, [x21]
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #4
	bl	_ipc_decode_param_str
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
LBB0_5:
	mov	w23, #0
Lloh24:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]
	str	w8, [x9, #8]
Lloh27:
	adrp	x8, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_BUF_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x10, _DELTA_FRAME_DEC@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DELTA_FRAME_DEC@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	ldr	w11, [x9]
	orr	w10, w11, w10
	stp	w10, w8, [x9]
	str	x9, [x19]
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_JPEG_DISP_AUX_EN,4,2           ; @JPEG_DISP_AUX_EN
	.comm	_JPEG_ADDITIONAL_FLAG_420MB,4,2 ; @JPEG_ADDITIONAL_FLAG_420MB
	.comm	_JPEG_HDEC_1,4,2                ; @JPEG_HDEC_1
	.comm	_JPEG_VDEC_1,4,2                ; @JPEG_VDEC_1
	.comm	_JPEG_NORMAL_DECODE,4,2         ; @JPEG_NORMAL_DECODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s  %s\n"

	.comm	_JPEG_DECODER_NO_ERROR,4,2      ; @JPEG_DECODER_NO_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s  dumping command %s\n"

	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_BUF_FLAG_KEYFRAME,4,2     ; @V4L2_BUF_FLAG_KEYFRAME
	.comm	_DELTA_FRAME_DEC,4,2            ; @DELTA_FRAME_DEC
	.no_dead_strip	_delta_mjpeg_ipc_decode
.subsections_via_symbols
