	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_irq
_s5p_jpeg_irq:                          ## @s5p_jpeg_irq
	.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	%rsi, %rbx
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	8(%rsi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	(%rbx), %edi
	callq	_v4l2_m2m_get_curr_priv
	movq	%rax, %r15
	movl	8(%rax), %edi
	callq	_v4l2_m2m_src_buf_remove
	movq	%rax, %r14
	movl	8(%r15), %edi
	callq	_v4l2_m2m_dst_buf_remove
	movq	%rax, %r13
	movq	(%r15), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_enc_stream_stat
	movl	%eax, %r12d
LBB0_2:
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_timer_stat
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_result_stat_ok
	movq	(%r15), %rcx
	movq	_S5P_JPEG_DECODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_stream_stat_ok
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_7:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_clear_enc_stream_stat
	jmp	LBB0_12
LBB0_4:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jne	LBB0_7
LBB0_8:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_clear_timer_stat
LBB0_12:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_14:
	movl	8(%r14), %eax
	movl	%eax, 8(%r13)
	movl	4(%r14), %eax
	movl	%eax, 4(%r13)
	movq	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%r13), %ecx
	movl	%ecx, (%r13)
	movl	(%rax), %eax
	andl	(%r14), %eax
	orl	%ecx, %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_v4l2_m2m_buf_done
	movq	(%r15), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_vb2_set_plane_payload
LBB0_16:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_v4l2_m2m_buf_done
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_get_subsampling_mode
	movl	%eax, 12(%r15)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_clear_int
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	callq	_v4l2_m2m_job_finish
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_compressed_size
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_11:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.comm	_S5P_JPEG_DECODE,8,3            ## @S5P_JPEG_DECODE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ## @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s5p_jpeg_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_irq
_s5p_jpeg_irq:                          ; @s5p_jpeg_irq
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x20, x1, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w0, [x19]
	bl	_v4l2_m2m_get_curr_priv
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_v4l2_m2m_src_buf_remove
	mov	x24, x0
	ldr	w0, [x21, #8]
	bl	_v4l2_m2m_dst_buf_remove
	mov	x23, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x27, _S5P_JPEG_ENCODE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _S5P_JPEG_ENCODE@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_enc_stream_stat
	mov	x25, x0
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_timer_stat
	mov	x26, x0
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_result_stat_ok
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _S5P_JPEG_DECODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _S5P_JPEG_DECODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_stream_stat_ok
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	cbz	w25, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_clear_enc_stream_stat
	mov	x25, #0
	b	LBB0_13
LBB0_8:
	cbz	w26, LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_clear_timer_stat
	mov	x25, #0
	b	LBB0_13
LBB0_10:
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_compressed_size
	mov	x25, x0
	b	LBB0_13
LBB0_12:
	mov	x25, #0
Lloh14:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
LBB0_13:
	ldur	d0, [x24, #4]
	mov	x26, x23
	str	d0, [x26, #4]!
Lloh17:
	adrp	x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x23]
	bic	w9, w10, w9
	str	w9, [x23]
	ldr	w10, [x24]
	ldr	w8, [x8]
	and	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x23]
	mov	x0, x24
	mov	x1, x22
	bl	_v4l2_m2m_buf_done
	ldr	x8, [x21]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x26
	mov	w1, #0
	mov	x2, x25
	bl	_vb2_set_plane_payload
LBB0_15:
	mov	x0, x23
	mov	x1, x22
	bl	_v4l2_m2m_buf_done
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_get_subsampling_mode
	str	w0, [x21, #12]
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x19, #4]
	bl	_s5p_jpeg_clear_int
	ldr	w0, [x19]
	ldr	w1, [x21, #8]
	bl	_v4l2_m2m_job_finish
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_S5P_JPEG_DECODE,8,3            ; @S5P_JPEG_DECODE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ; @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s5p_jpeg_irq
.subsections_via_symbols
