	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_try_run_v5
_s5p_mfc_try_run_v5:                    ## @s5p_mfc_try_run_v5
	.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
	leaq	16(%rdi), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mfc_debug                      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_s5p_mfc_get_new_ctx
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	8(%rbx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r14
	xorl	%eax, %eax
	callq	_s5p_mfc_clock_on
	movq	%r14, %rdi
	callq	_s5p_mfc_clean_ctx_int_flags
	movq	(%r14), %rsi
	movq	_MFCINST_DECODER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_21
## %bb.9:
	movq	%r14, %rdi
	callq	_s5p_mfc_set_dec_desc_buffer
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_27
## %bb.10:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_MFC_DEC_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_s5p_mfc_run_dec_frame
	movl	%eax, %r14d
	jmp	LBB0_30
LBB0_6:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_35
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_21:
	movq	_MFCINST_ENCODER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_28
## %bb.22:
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_27
## %bb.23:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_24:
	movq	%r14, %rdi
	callq	_s5p_mfc_run_enc_frame
	movl	%eax, %r14d
	jmp	LBB0_30
LBB0_28:
	leaq	L_.str.7(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mfc_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_35:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mfc_err                        ## TAILCALL
LBB0_25:
	movl	4(%rbx), %edi
	movq	_close_inst_cmd@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_27:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_29:
	subl	(%rax), %r14d
	jmp	LBB0_30
LBB0_14:
	movl	4(%rbx), %edi
	movq	_open_inst_cmd@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_s5p_mfc_hw_call
	movl	%eax, %r14d
	jmp	LBB0_30
LBB0_17:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5p_mfc_run_res_change         ## TAILCALL
LBB0_18:
	movq	_MFC_DEC_FRAME@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	movq	_QUEUE_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	leaq	L_.str.6(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
LBB0_20:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5p_mfc_run_init_dec           ## TAILCALL
LBB0_16:
	movq	%r14, %rdi
	callq	_s5p_mfc_run_init_dec_buffers
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_mfc_debug
LBB0_30:
	testl	%r14d, %r14d
	je	LBB0_34
## %bb.31:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_mfc_err
LBB0_33:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5p_mfc_clock_off              ## TAILCALL
LBB0_34:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_MFC_DEC_LAST_FRAME@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5p_mfc_run_dec_frame          ## TAILCALL
LBB0_26:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5p_mfc_run_init_enc           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_14
	.long	L0_0_set_27
	.long	L0_0_set_26
	.long	L0_0_set_24
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_25, LBB0_25-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_25
	.long	L0_1_set_17
	.long	L0_1_set_18
	.long	L0_1_set_19
	.long	L0_1_set_14
	.long	L0_1_set_16
	.long	L0_1_set_20
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering suspend so do not schedule any jobs\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't lock HW\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to unlock hardware\n"

L_.str.3:                               ## @.str.3
	.asciz	"No ctx is scheduled to be run\n"

	.comm	_MFCINST_DECODER,8,3            ## @MFCINST_DECODER
	.comm	_MFC_DEC_LAST_FRAME,4,2         ## @MFC_DEC_LAST_FRAME
	.comm	_MFC_DEC_FRAME,4,2              ## @MFC_DEC_FRAME
	.comm	_open_inst_cmd,4,2              ## @open_inst_cmd
	.comm	_close_inst_cmd,4,2             ## @close_inst_cmd
L_.str.4:                               ## @.str.4
	.asciz	"head parsed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Finished remaining frames after resolution change\n"

	.comm	_QUEUE_FREE,4,2                 ## @QUEUE_FREE
L_.str.6:                               ## @.str.6
	.asciz	"Will re-init the codec\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MFCINST_ENCODER,8,3            ## @MFCINST_ENCODER
L_.str.7:                               ## @.str.7
	.asciz	"Invalid context type: %d\n"

	.no_dead_strip	_s5p_mfc_try_run_v5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_try_run_v5
_s5p_mfc_try_run_v5:                    ; @s5p_mfc_try_run_v5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x1, x0, #16
	mov	w0, #0
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_mfc_debug
LBB0_5:
	mov	x0, x19
	bl	_s5p_mfc_get_new_ctx
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x20, [x8, w0, uxtw #3]
	bl	_s5p_mfc_clock_on
	mov	x0, x20
	bl	_s5p_mfc_clean_ctx_int_flags
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _MFCINST_DECODER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MFCINST_DECODER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_s5p_mfc_set_dec_desc_buffer
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_17
; %bb.8:
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh9:
	adrp	x8, _MFC_DEC_FRAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MFC_DEC_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_s5p_mfc_run_dec_frame
	mov	x20, x0
	b	LBB0_27
LBB0_10:
	mov	w0, #0
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	x0, LBB0_18
; %bb.11:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
Lloh14:
	adrp	x9, _MFCINST_ENCODER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MFCINST_ENCODER@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_17
; %bb.14:
Lloh17:
	adrp	x9, lJTI0_0@PAGE
Lloh18:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	x0, x20
	bl	_s5p_mfc_run_enc_frame
	mov	x20, x0
	b	LBB0_27
LBB0_16:
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_mfc_err
LBB0_17:
Lloh21:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_27
LBB0_18:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_mfc_err
LBB0_19:
	ldr	w0, [x19, #4]
Lloh26:
	adrp	x8, _close_inst_cmd@GOTPAGE
Lloh27:
	ldr	x8, [x8, _close_inst_cmd@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19, #4]
Lloh28:
	adrp	x8, _open_inst_cmd@GOTPAGE
Lloh29:
	ldr	x8, [x8, _open_inst_cmd@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_s5p_mfc_hw_call
	mov	x20, x0
	b	LBB0_27
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5p_mfc_run_res_change
LBB0_23:
Lloh30:
	adrp	x8, _MFC_DEC_FRAME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MFC_DEC_FRAME@GOTPAGEOFF]
	b	LBB0_33
LBB0_24:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
Lloh34:
	adrp	x8, _QUEUE_FREE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _QUEUE_FREE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x20, #12]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5p_mfc_run_init_dec
LBB0_26:
	mov	x0, x20
	bl	_s5p_mfc_run_init_dec_buffers
	mov	x20, x0
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_mfc_debug
LBB0_27:
	cbz	w20, LBB0_31
; %bb.28:
	mov	w0, #0
	mov	x1, x19
	bl	_test_and_clear_bit
	cbnz	x0, LBB0_30
; %bb.29:
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_mfc_err
LBB0_30:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5p_mfc_clock_off
LBB0_31:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_32:
Lloh43:
	adrp	x8, _MFC_DEC_LAST_FRAME@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MFC_DEC_LAST_FRAME@GOTPAGEOFF]
LBB0_33:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5p_mfc_run_dec_frame
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_s5p_mfc_run_init_enc
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_20-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_34-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
lJTI0_1:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_19-LBB0_9)>>2
	.byte	(LBB0_22-LBB0_9)>>2
	.byte	(LBB0_23-LBB0_9)>>2
	.byte	(LBB0_24-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
	.byte	(LBB0_26-LBB0_9)>>2
	.byte	(LBB0_25-LBB0_9)>>2
	.byte	(LBB0_32-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering suspend so do not schedule any jobs\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't lock HW\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to unlock hardware\n"

l_.str.3:                               ; @.str.3
	.asciz	"No ctx is scheduled to be run\n"

	.comm	_MFCINST_DECODER,8,3            ; @MFCINST_DECODER
	.comm	_MFC_DEC_LAST_FRAME,4,2         ; @MFC_DEC_LAST_FRAME
	.comm	_MFC_DEC_FRAME,4,2              ; @MFC_DEC_FRAME
	.comm	_open_inst_cmd,4,2              ; @open_inst_cmd
	.comm	_close_inst_cmd,4,2             ; @close_inst_cmd
l_.str.4:                               ; @.str.4
	.asciz	"head parsed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Finished remaining frames after resolution change\n"

	.comm	_QUEUE_FREE,4,2                 ; @QUEUE_FREE
l_.str.6:                               ; @.str.6
	.asciz	"Will re-init the codec\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MFCINST_ENCODER,8,3            ; @MFCINST_ENCODER
l_.str.7:                               ; @.str.7
	.asciz	"Invalid context type: %d\n"

	.no_dead_strip	_s5p_mfc_try_run_v5
.subsections_via_symbols
