	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_alloc_instance_buffer_v6
_s5p_mfc_alloc_instance_buffer_v6:      ## @s5p_mfc_alloc_instance_buffer_v6
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_mfc_debug_enter
	movl	(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$14, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	12(%r15), %eax
	jmp	LBB0_8
LBB0_3:
	movl	16(%r15), %eax
	jmp	LBB0_8
LBB0_4:
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_5:
	movl	$0, 4(%rbx)
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_mfc_err
	jmp	LBB0_9
LBB0_6:
	movl	4(%r15), %eax
	jmp	LBB0_8
LBB0_7:
	movl	8(%r15), %eax
LBB0_8:
	movl	%eax, 4(%rbx)
LBB0_9:
	movq	_BANK_L_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%rbx), %rdx
	movq	%r14, %rdi
	callq	_s5p_mfc_alloc_priv_buf
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_mfc_err
	jmp	LBB0_12
LBB0_11:
	movl	4(%rbx), %edx
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	xorl	%eax, %eax
	callq	_wmb
	xorl	%eax, %eax
	callq	_mfc_debug_leave
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Codec type(%d) should be checked!\n"

	.comm	_BANK_L_CTX,4,2                 ## @BANK_L_CTX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate instance buffer\n"

	.no_dead_strip	_s5p_mfc_alloc_instance_buffer_v6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_alloc_instance_buffer_v6
_s5p_mfc_alloc_instance_buffer_v6:      ; @s5p_mfc_alloc_instance_buffer_v6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x21, [x8]
	bl	_mfc_debug_enter
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #14
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21, #12]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x21, #16]
	b	LBB0_8
LBB0_4:
	ldr	w8, [x21]
	b	LBB0_8
LBB0_5:
	str	wzr, [x19, #4]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
	b	LBB0_9
LBB0_6:
	ldr	w8, [x21, #4]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21, #8]
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
Lloh4:
	adrp	x8, _BANK_L_CTX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BANK_L_CTX@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, x19, #4
	mov	x0, x20
	bl	_s5p_mfc_alloc_priv_buf
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.10:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_mfc_err
	b	LBB0_12
LBB0_11:
	ldp	w2, w0, [x19, #4]
	mov	w1, #0
	bl	_memset
	bl	_wmb
	bl	_mfc_debug_leave
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Codec type(%d) should be checked!\n"

	.comm	_BANK_L_CTX,4,2                 ; @BANK_L_CTX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate instance buffer\n"

	.no_dead_strip	_s5p_mfc_alloc_instance_buffer_v6
.subsections_via_symbols
