	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsv_h264_set_encode_ctrl
_qsv_h264_set_encode_ctrl:              ## @qsv_h264_set_encode_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rsi, %rdi
	movl	$26, %esi
	callq	_ff_alloc_a53_sei
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	leaq	24(%rcx), %rax
	movl	$4, 24(%rcx)
	movq	-24(%rbp), %rdx
	movl	%edx, 28(%rcx)
	addq	$2, %rdx
	movq	%rdx, (%rcx)
	shll	$3, %edx
	movl	%edx, 8(%rcx)
	movl	$4, 12(%rcx)
	movq	%rax, 16(%rcx)
	movq	$0, 16(%r14)
	movl	$1, (%r14)
	movq	8(%r14), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qsv_h264_set_encode_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsv_h264_set_encode_ctrl
_qsv_h264_set_encode_ctrl:              ; @qsv_h264_set_encode_ctrl
	.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	x8, x0
	mov	w0, #0
	cbz	x1, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x19, x2
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x1
	mov	w1, #26
	bl	_ff_alloc_a53_sei
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #0
	mov	w9, #4
	mov	x10, x8
	str	w9, [x10, #24]!
	ldr	x11, [sp]
	str	w11, [x8, #28]
	add	x11, x11, #2
	str	x11, [x8]
	lsl	w11, w11, #3
	stp	w11, w9, [x8, #8]
	str	x10, [x8, #16]
	str	xzr, [x19, #16]
	mov	w9, #1
	str	w9, [x19]
	ldr	x9, [x19, #8]
	str	x8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qsv_h264_set_encode_ctrl
.subsections_via_symbols
