	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_enc_set_param              ## -- Begin function vpu_enc_set_param
	.p2align	4, 0x90
_vpu_enc_set_param:                     ## @vpu_enc_set_param
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_mtk_vcodec_debug
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AP_IPIMSG_ENC_SET_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	%r14d, -56(%rbp)
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	$0, -52(%rbp)
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_6:
	movl	$1, -52(%rbp)
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_5:
	movl	$1, -52(%rbp)
	movl	4(%r15), %eax
	jmp	LBB0_3
LBB0_4:
	movl	$1, -52(%rbp)
	movl	8(%r15), %eax
	jmp	LBB0_3
LBB0_2:
	movl	$1, -52(%rbp)
	movl	12(%r15), %eax
LBB0_3:
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_vpu_enc_send_msg
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mtk_vcodec_debug
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"id %d ->"

	.comm	_AP_IPIMSG_ENC_SET_PARAM,4,2    ## @AP_IPIMSG_ENC_SET_PARAM
L_.str.1:                               ## @.str.1
	.asciz	"id %d not supported"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"AP_IPIMSG_ENC_SET_PARAM %d fail"

L_.str.3:                               ## @.str.3
	.asciz	"id %d <-"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_enc_set_param              ; -- Begin function vpu_enc_set_param
	.p2align	2
_vpu_enc_set_param:                     ; @vpu_enc_set_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_mtk_vcodec_debug
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _AP_IPIMSG_ENC_SET_PARAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AP_IPIMSG_ENC_SET_PARAM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w8, [x20]
	stp	w8, w9, [sp, #24]
	str	w19, [sp, #8]
	sub	w8, w19, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	wzr, [sp, #12]
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_4:
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x21]
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x21, #4]
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x21, #8]
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	w8, [x21, #12]
LBB0_8:
	ldr	x9, [sp, #16]
	str	w8, [x9]
LBB0_9:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #24
	bl	_vpu_enc_send_msg
	cbz	x0, LBB0_12
; %bb.10:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x2, x19
	bl	_mtk_vcodec_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_mtk_vcodec_debug
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"id %d ->"

	.comm	_AP_IPIMSG_ENC_SET_PARAM,4,2    ; @AP_IPIMSG_ENC_SET_PARAM
l_.str.1:                               ; @.str.1
	.asciz	"id %d not supported"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"AP_IPIMSG_ENC_SET_PARAM %d fail"

l_.str.3:                               ; @.str.3
	.asciz	"id %d <-"

.subsections_via_symbols
