	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_ctx_ready
_s5p_mfc_ctx_ready:                     ## @s5p_mfc_ctx_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	movq	8(%rdi), %r8
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mfc_debug
	movq	8(%rbx), %rax
	movq	_MFCINST_GOT_INST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, %r14d
	cmpl	$0, 4(%rbx)
	jg	LBB0_9
LBB0_2:
	movq	_MFCINST_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_MFCINST_HEAD_PRODUCED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.5:
	movl	$1, %r14d
	cmpl	$0, 4(%rbx)
	jg	LBB0_9
LBB0_6:
	movq	_MFCINST_FINISHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, %r14d
	cmpl	$0, 4(%rbx)
	jg	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mfc_debug
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"src=%d, dst=%d, state=%d\n"

	.comm	_MFCINST_GOT_INST,8,3           ## @MFCINST_GOT_INST
	.comm	_MFCINST_RUNNING,8,3            ## @MFCINST_RUNNING
	.comm	_MFCINST_HEAD_PRODUCED,8,3      ## @MFCINST_HEAD_PRODUCED
	.comm	_MFCINST_FINISHING,8,3          ## @MFCINST_FINISHING
L_.str.1:                               ## @.str.1
	.asciz	"ctx is not ready\n"

	.no_dead_strip	_s5p_mfc_ctx_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_ctx_ready
_s5p_mfc_ctx_ready:                     ; @s5p_mfc_ctx_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	w9, w10, [x0]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _MFCINST_GOT_INST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MFCINST_GOT_INST@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #4]
	cmp	w9, #0
	b.gt	LBB0_7
LBB0_2:
Lloh5:
	adrp	x9, _MFCINST_RUNNING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MFCINST_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _MFCINST_HEAD_PRODUCED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MFCINST_HEAD_PRODUCED@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w9, [x19, #4]
	cmp	w9, #0
	b.gt	LBB0_7
LBB0_5:
Lloh11:
	adrp	x9, _MFCINST_FINISHING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MFCINST_FINISHING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.le	LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"src=%d, dst=%d, state=%d\n"

	.comm	_MFCINST_GOT_INST,8,3           ; @MFCINST_GOT_INST
	.comm	_MFCINST_RUNNING,8,3            ; @MFCINST_RUNNING
	.comm	_MFCINST_HEAD_PRODUCED,8,3      ; @MFCINST_HEAD_PRODUCED
	.comm	_MFCINST_FINISHING,8,3          ; @MFCINST_FINISHING
l_.str.1:                               ; @.str.1
	.asciz	"ctx is not ready\n"

	.no_dead_strip	_s5p_mfc_ctx_ready
.subsections_via_symbols
