	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amf_init_encoder
_amf_init_encoder:                      ## @amf_init_encoder
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.3:
	movq	_AMFVideoEncoderVCE_AVC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_AMFVideoEncoder_HEVC@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r14
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	setne	%bl
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_AVERROR
	movq	8(%r12), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_AMF_RETURN_IF_FALSE
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %r12
LBB0_8:
	movl	(%r12), %r12d
	movl	%r12d, %edi
	callq	_amf_av_to_amf_format
	movq	%rax, (%r15)
	movq	_AMF_SURFACE_UNKNOWN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
	movl	(%r13), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_AMF_RETURN_IF_FALSE
	movq	16(%r15), %rdi
	movq	(%rdi), %rax
	movl	12(%r15), %esi
	leaq	8(%r15), %rcx
	movq	%r14, %rdx
	callq	*(%rax)
	movq	_AMF_OK@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	_AVERROR_ENCODER_NOT_FOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_AMF_RETURN_IF_FALSE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMFVideoEncoderVCE_AVC,8,3     ## @AMFVideoEncoderVCE_AVC
	.comm	_AMFVideoEncoder_HEVC,8,3       ## @AMFVideoEncoder_HEVC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Codec %d is not supported\n"

	.comm	_AMF_SURFACE_UNKNOWN,8,3        ## @AMF_SURFACE_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"Format %s is not supported\n"

	.comm	_AMF_OK,8,3                     ## @AMF_OK
	.comm	_AVERROR_ENCODER_NOT_FOUND,4,2  ## @AVERROR_ENCODER_NOT_FOUND
L_.str.2:                               ## @.str.2
	.asciz	"CreateComponent(%ls) failed with error %d\n"

	.no_dead_strip	_amf_init_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amf_init_encoder
_amf_init_encoder:                      ; @amf_init_encoder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldp	x8, x19, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _AMFVideoEncoderVCE_AVC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMFVideoEncoderVCE_AVC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _AMFVideoEncoder_HEVC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AMFVideoEncoder_HEVC@GOTPAGEOFF]
LBB0_4:
	ldr	x20, [x8]
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	cmp	x20, #0
	cset	w22, ne
Lloh4:
	adrp	x23, _EINVAL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_AVERROR
	mov	x2, x0
	ldr	x8, [x21, #8]
	ldr	w4, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_AMF_RETURN_IF_FALSE
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x21, [x8]
LBB0_8:
	ldr	w21, [x21]
	mov	x0, x21
	bl	_amf_av_to_amf_format
	str	x0, [x19]
Lloh8:
	adrp	x8, _AMF_SURFACE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMF_SURFACE_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w22, ne
	ldr	w0, [x23]
	bl	_AVERROR
	mov	x23, x0
	mov	x0, x21
	bl	_av_get_pix_fmt_name
	mov	x4, x0
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_AMF_RETURN_IF_FALSE
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w1, [x19, #12]
	add	x3, x19, #8
	mov	x2, x20
	blr	x8
Lloh13:
	adrp	x8, _AMF_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AMF_OK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w1, eq
Lloh16:
	adrp	x8, _AVERROR_ENCODER_NOT_FOUND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_ENCODER_NOT_FOUND@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	str	x0, [sp]
	mov	x0, x19
	mov	x4, x20
	bl	_AMF_RETURN_IF_FALSE
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AMFVideoEncoderVCE_AVC,8,3     ; @AMFVideoEncoderVCE_AVC
	.comm	_AMFVideoEncoder_HEVC,8,3       ; @AMFVideoEncoder_HEVC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Codec %d is not supported\n"

	.comm	_AMF_SURFACE_UNKNOWN,8,3        ; @AMF_SURFACE_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"Format %s is not supported\n"

	.comm	_AMF_OK,8,3                     ; @AMF_OK
	.comm	_AVERROR_ENCODER_NOT_FOUND,4,2  ; @AVERROR_ENCODER_NOT_FOUND
l_.str.2:                               ; @.str.2
	.asciz	"CreateComponent(%ls) failed with error %d\n"

	.no_dead_strip	_amf_init_encoder
.subsections_via_symbols
