	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_dec_g_v_ctrl
_s5p_mfc_dec_g_v_ctrl:                  ## @s5p_mfc_dec_g_v_ctrl
	.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	%rdi, %rbx
	callq	_ctrl_to_ctx
	xorl	%r14d, %r14d
	cmpl	$128, (%rbx)
	jne	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	4(%rax), %eax
	movq	_MFCINST_HEAD_PARSED@GOTPCREL(%rip), %r13
	movq	_MFCINST_ABORT@GOTPCREL(%rip), %rcx
	cmpl	(%r13), %eax
	jl	LBB0_4
## %bb.2:
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_12
LBB0_4:
	movq	_MFCINST_INIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.5:
	movq	_MFCINST_RES_CHANGE_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_s5p_mfc_wait_for_done_ctx
	movl	4(%r15), %eax
	cmpl	(%r13), %eax
	jl	LBB0_10
## %bb.8:
	movq	_MFCINST_ABORT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_10
## %bb.9:
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFCINST_HEAD_PARSED,4,2        ## @MFCINST_HEAD_PARSED
	.comm	_MFCINST_ABORT,4,2              ## @MFCINST_ABORT
	.comm	_MFCINST_INIT,4,2               ## @MFCINST_INIT
	.comm	_MFCINST_RES_CHANGE_END,4,2     ## @MFCINST_RES_CHANGE_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoding not initialised\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_S5P_MFC_R2H_CMD_SEQ_DONE_RET,4,2 ## @S5P_MFC_R2H_CMD_SEQ_DONE_RET
	.no_dead_strip	_s5p_mfc_dec_g_v_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_dec_g_v_ctrl
_s5p_mfc_dec_g_v_ctrl:                  ; @s5p_mfc_dec_g_v_ctrl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_ctrl_to_ctx
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x22, _MFCINST_HEAD_PARSED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MFCINST_HEAD_PARSED@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x23, _MFCINST_ABORT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MFCINST_ABORT@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_6
; %bb.2:
	ldr	x21, [x20, #8]
Lloh4:
	adrp	x9, _MFCINST_INIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MFCINST_INIT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _MFCINST_RES_CHANGE_END@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MFCINST_RES_CHANGE_END@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5P_MFC_R2H_CMD_SEQ_DONE_RET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_s5p_mfc_wait_for_done_ctx
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_6
LBB0_4:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19, #4]
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MFCINST_HEAD_PARSED,4,2        ; @MFCINST_HEAD_PARSED
	.comm	_MFCINST_ABORT,4,2              ; @MFCINST_ABORT
	.comm	_MFCINST_INIT,4,2               ; @MFCINST_INIT
	.comm	_MFCINST_RES_CHANGE_END,4,2     ; @MFCINST_RES_CHANGE_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoding not initialised\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_S5P_MFC_R2H_CMD_SEQ_DONE_RET,4,2 ; @S5P_MFC_R2H_CMD_SEQ_DONE_RET
	.no_dead_strip	_s5p_mfc_dec_g_v_ctrl
.subsections_via_symbols
