	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_op_s_ctrl
_venc_op_s_ctrl:                        ## @venc_op_s_ctrl
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ctrl_to_inst
	movq	%rax, %r14
	movl	l___const.venc_op_s_ctrl.en+8(%rip), %eax
	movl	%eax, -48(%rbp)
	movq	l___const.venc_op_s_ctrl.en(%rip), %rax
	movq	%rax, -56(%rbp)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$29, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	xorl	%r15d, %r15d
	jmpq	*%rax
LBB0_2:
	movl	4(%rbx), %eax
	movl	%eax, 28(%r14)
	jmp	LBB0_41
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_42
LBB0_4:
	movl	4(%rbx), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_41
LBB0_5:
	movl	4(%rbx), %eax
	movl	%eax, 96(%r14)
	jmp	LBB0_41
LBB0_6:
	movl	4(%rbx), %eax
	movl	%eax, 60(%r14)
	jmp	LBB0_41
LBB0_7:
	movl	4(%rbx), %eax
	movl	%eax, 52(%r14)
	jmp	LBB0_41
LBB0_8:
	movl	4(%rbx), %eax
	movl	%eax, 56(%r14)
	jmp	LBB0_41
LBB0_9:
	movl	4(%rbx), %eax
	movl	%eax, 108(%r14)
	jmp	LBB0_41
LBB0_10:
	movl	4(%rbx), %eax
	movl	%eax, 92(%r14)
	jmp	LBB0_41
LBB0_11:
	movl	4(%rbx), %eax
	movl	%eax, 100(%r14)
	jmp	LBB0_41
LBB0_12:
	movl	4(%rbx), %eax
	movl	%eax, 84(%r14)
	jmp	LBB0_41
LBB0_13:
	movl	4(%rbx), %eax
	movl	%eax, 36(%r14)
	jmp	LBB0_41
LBB0_14:
	movl	4(%rbx), %eax
	movl	%eax, 76(%r14)
	jmp	LBB0_41
LBB0_15:
	movl	4(%rbx), %eax
	movl	%eax, 104(%r14)
	jmp	LBB0_41
LBB0_16:
	movl	4(%rbx), %eax
	movl	%eax, 68(%r14)
	jmp	LBB0_41
LBB0_17:
	movl	4(%rbx), %eax
	movl	%eax, 64(%r14)
	jmp	LBB0_41
LBB0_18:
	movl	4(%rbx), %eax
	movl	%eax, 40(%r14)
	jmp	LBB0_41
LBB0_19:
	movl	4(%rbx), %eax
	movl	%eax, 44(%r14)
	jmp	LBB0_41
LBB0_20:
	movl	4(%rbx), %eax
	movl	%eax, 48(%r14)
	jmp	LBB0_41
LBB0_21:
	movl	4(%rbx), %eax
	movl	%eax, 88(%r14)
	jmp	LBB0_41
LBB0_22:
	movl	4(%rbx), %eax
	movl	%eax, 32(%r14)
	jmp	LBB0_41
LBB0_23:
	movl	4(%rbx), %eax
	movl	%eax, 80(%r14)
	jmp	LBB0_41
LBB0_24:
	movl	4(%rbx), %eax
	movl	%eax, 112(%r14)
	jmp	LBB0_41
LBB0_25:
	movl	4(%rbx), %eax
	movl	%eax, 72(%r14)
	jmp	LBB0_41
LBB0_26:
	movl	4(%rbx), %edi
	movl	12(%r14), %esi
	movq	%r14, %rcx
	addq	$16, %rcx
	leaq	-40(%rbp), %rdx
	callq	_venc_calc_bpframes
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.27:
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_41
LBB0_28:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 8(%r14)
	je	LBB0_40
## %bb.29:
	cmpl	$0, 4(%r14)
	je	LBB0_40
## %bb.30:
	movq	_HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	jmp	LBB0_38
LBB0_31:
	movl	20(%r14), %edi
	movl	4(%rbx), %esi
	movq	%r14, %rcx
	addq	$16, %rcx
	leaq	-40(%rbp), %rdx
	callq	_venc_calc_bpframes
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.32:
	movl	-40(%rbp), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_41
LBB0_33:
	movl	4(%rbx), %eax
	movl	%eax, 116(%r14)
	jmp	LBB0_41
LBB0_34:
	movl	4(%rbx), %eax
	movl	%eax, 124(%r14)
	jmp	LBB0_41
LBB0_35:
	movl	4(%rbx), %eax
	movl	%eax, 120(%r14)
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 8(%r14)
	je	LBB0_40
## %bb.36:
	cmpl	$0, 4(%r14)
	je	LBB0_40
## %bb.37:
	movq	_HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	120(%r14), %eax
	movl	%eax, -32(%rbp)
	movl	$0, -36(%rbp)
	leaq	-40(%rbp), %rdx
LBB0_38:
	movq	%r14, %rdi
	callq	_hfi_session_set_property
	testl	%eax, %eax
	je	LBB0_40
## %bb.39:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_42
LBB0_40:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_41:
	xorl	%r15d, %r15d
LBB0_42:
	movl	%r15d, %eax
	addq	$40, %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_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_28
	.long	L0_0_set_42
	.long	L0_0_set_31
	.long	L0_0_set_33
	.long	L0_0_set_34
	.long	L0_0_set_35
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.venc_op_s_ctrl.en
l___const.venc_op_s_ctrl.en:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE,4,2 ## @HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE
	.comm	_HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME,4,2 ## @HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_venc_op_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_op_s_ctrl
_venc_op_s_ctrl:                        ; @venc_op_s_ctrl
	.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, x0
	bl	_ctrl_to_inst
Lloh0:
	adrp	x8, l___const.venc_op_s_ctrl.en@PAGE
Lloh1:
	add	x8, x8, l___const.venc_op_s_ctrl.en@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #16]
	ldr	w8, [x8, #8]
	str	w8, [sp, #24]
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #29
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w19, #0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #28]
	b	LBB0_41
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_41
LBB0_4:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #24]
	b	LBB0_41
LBB0_5:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #96]
	b	LBB0_41
LBB0_6:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #60]
	b	LBB0_41
LBB0_7:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #52]
	b	LBB0_41
LBB0_8:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #56]
	b	LBB0_41
LBB0_9:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #108]
	b	LBB0_41
LBB0_10:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #92]
	b	LBB0_41
LBB0_11:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #100]
	b	LBB0_41
LBB0_12:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #84]
	b	LBB0_41
LBB0_13:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #36]
	b	LBB0_41
LBB0_14:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #76]
	b	LBB0_41
LBB0_15:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #104]
	b	LBB0_41
LBB0_16:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #68]
	b	LBB0_41
LBB0_17:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #64]
	b	LBB0_41
LBB0_18:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #40]
	b	LBB0_41
LBB0_19:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #44]
	b	LBB0_41
LBB0_20:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #48]
	b	LBB0_41
LBB0_21:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #88]
	b	LBB0_41
LBB0_22:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #32]
	b	LBB0_41
LBB0_23:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #80]
	b	LBB0_41
LBB0_24:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #112]
	b	LBB0_41
LBB0_25:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #72]
	b	LBB0_41
LBB0_26:
	ldr	w0, [x21, #4]
	ldr	w1, [x20, #12]
	add	x3, x20, #16
	mov	x2, sp
	bl	_venc_calc_bpframes
	mov	x19, x0
	cbnz	w0, LBB0_41
; %bb.27:
	ldr	w8, [x21, #4]
	str	w8, [x20, #20]
	b	LBB0_41
LBB0_28:
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_40
; %bb.29:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_40
; %bb.30:
Lloh7:
	adrp	x8, _HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #16
	b	LBB0_38
LBB0_31:
	ldr	w0, [x20, #20]
	ldr	w1, [x21, #4]
	add	x3, x20, #16
	mov	x2, sp
	bl	_venc_calc_bpframes
	mov	x19, x0
	cbnz	w0, LBB0_41
; %bb.32:
	ldr	w8, [sp]
	str	w8, [x20, #12]
	b	LBB0_41
LBB0_33:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #116]
	b	LBB0_41
LBB0_34:
	mov	w19, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #124]
	b	LBB0_41
LBB0_35:
	ldr	w8, [x21, #4]
	str	w8, [x20, #120]
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_40
; %bb.36:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_40
; %bb.37:
Lloh10:
	adrp	x8, _HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x20, #120]
	stp	wzr, w8, [sp, #4]
	mov	x2, sp
LBB0_38:
	mov	x0, x20
	bl	_hfi_session_set_property
	cbz	w0, LBB0_40
; %bb.39:
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_41
LBB0_40:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w19, #0
LBB0_41:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_41-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_33-LBB0_2)>>2
	.byte	(LBB0_34-LBB0_2)>>2
	.byte	(LBB0_35-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @__const.venc_op_s_ctrl.en
l___const.venc_op_s_ctrl.en:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE,4,2 ; @HFI_PROPERTY_CONFIG_VENC_TARGET_BITRATE
	.comm	_HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME,4,2 ; @HFI_PROPERTY_CONFIG_VENC_REQUEST_SYNC_FRAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_venc_op_s_ctrl
.subsections_via_symbols
