	.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
	movl	(%rdi), %ecx
	movq	8(%rdi), %rdx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	_MFCINST_GOT_INST@GOTPCREL(%rip), %rsi
	movl	$1, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_15
## %bb.2:
	movq	_MFCINST_RUNNING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.3:
	movq	16(%rdi), %rsi
	cmpq	24(%rdi), %rsi
	jge	LBB0_15
LBB0_4:
	movq	_MFCINST_FINISHING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.5:
	movq	16(%rdi), %rsi
	movl	$1, %eax
	cmpq	24(%rdi), %rsi
	jge	LBB0_15
LBB0_6:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.7:
	movq	_MFCINST_HEAD_PARSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
## %bb.8:
	movq	32(%rdi), %rsi
	movq	_QUEUE_BUFS_MMAPED@GOTPCREL(%rip), %r8
	movl	$1, %eax
	cmpq	(%r8), %rsi
	je	LBB0_15
LBB0_9:
	movq	_MFCINST_RES_CHANGE_INIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_11
## %bb.10:
	movq	_MFCINST_RES_CHANGE_FLUSH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
LBB0_11:
	movq	16(%rdi), %rsi
	movl	$1, %eax
	cmpq	24(%rdi), %rsi
	jge	LBB0_15
LBB0_12:
	movq	_MFCINST_RES_CHANGE_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_14
## %bb.13:
	movl	$1, %eax
	testl	%ecx, %ecx
	jle	LBB0_14
LBB0_15:
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFCINST_GOT_INST,8,3           ## @MFCINST_GOT_INST
	.comm	_MFCINST_RUNNING,8,3            ## @MFCINST_RUNNING
	.comm	_MFCINST_FINISHING,8,3          ## @MFCINST_FINISHING
	.comm	_MFCINST_HEAD_PARSED,8,3        ## @MFCINST_HEAD_PARSED
	.comm	_QUEUE_BUFS_MMAPED,8,3          ## @QUEUE_BUFS_MMAPED
	.comm	_MFCINST_RES_CHANGE_INIT,8,3    ## @MFCINST_RES_CHANGE_INIT
	.comm	_MFCINST_RES_CHANGE_FLUSH,8,3   ## @MFCINST_RES_CHANGE_FLUSH
	.comm	_MFCINST_RES_CHANGE_END,8,3     ## @MFCINST_RES_CHANGE_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x10, _MFCINST_GOT_INST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MFCINST_GOT_INST@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_12
; %bb.2:
Lloh3:
	adrp	x10, _MFCINST_RUNNING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MFCINST_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldp	x10, x11, [x0, #16]
	cmp	x10, x11
	b.ge	LBB0_12
LBB0_4:
Lloh6:
	adrp	x10, _MFCINST_FINISHING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MFCINST_FINISHING@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldp	x10, x11, [x0, #16]
	cmp	x10, x11
	b.ge	LBB0_12
LBB0_6:
Lloh9:
	adrp	x10, _MFCINST_HEAD_PARSED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MFCINST_HEAD_PARSED@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	w8, #1
	ccmp	x9, x10, #0, ge
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [x0, #32]
Lloh12:
	adrp	x11, _QUEUE_BUFS_MMAPED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _QUEUE_BUFS_MMAPED@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_8:
Lloh15:
	adrp	x10, _MFCINST_RES_CHANGE_INIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MFCINST_RES_CHANGE_INIT@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _MFCINST_RES_CHANGE_FLUSH@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MFCINST_RES_CHANGE_FLUSH@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_10
; %bb.9:
	ldp	x10, x11, [x0, #16]
	cmp	x10, x11
	b.ge	LBB0_12
LBB0_10:
Lloh21:
	adrp	x10, _MFCINST_RES_CHANGE_END@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MFCINST_RES_CHANGE_END@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w8, #0, #4, eq
	b.gt	LBB0_12
; %bb.11:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MFCINST_GOT_INST,8,3           ; @MFCINST_GOT_INST
	.comm	_MFCINST_RUNNING,8,3            ; @MFCINST_RUNNING
	.comm	_MFCINST_FINISHING,8,3          ; @MFCINST_FINISHING
	.comm	_MFCINST_HEAD_PARSED,8,3        ; @MFCINST_HEAD_PARSED
	.comm	_QUEUE_BUFS_MMAPED,8,3          ; @QUEUE_BUFS_MMAPED
	.comm	_MFCINST_RES_CHANGE_INIT,8,3    ; @MFCINST_RES_CHANGE_INIT
	.comm	_MFCINST_RES_CHANGE_FLUSH,8,3   ; @MFCINST_RES_CHANGE_FLUSH
	.comm	_MFCINST_RES_CHANGE_END,8,3     ; @MFCINST_RES_CHANGE_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctx is not ready\n"

	.no_dead_strip	_s5p_mfc_ctx_ready
.subsections_via_symbols
