	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videotoolbox_init              ## -- Begin function videotoolbox_init
	.p2align	4, 0x90
_videotoolbox_init:                     ## @videotoolbox_init
	.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, %r15
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	_HWACCEL_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movl	$4, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, 24(%r12)
	movq	_videotoolbox_uninit@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_videotoolbox_retrieve_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_videotoolbox_pixfmt@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_av_videotoolbox_alloc_context
	movq	%rax, %r13
	movq	_kCFAllocatorDefault@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_kCFStringEncodingUTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_CFStringCreateWithCString
	movl	%eax, %r12d
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_av_log
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_av_videotoolbox_default_init2
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_CFRelease
	jmp	LBB0_9
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	%r15, %rdi
	callq	_av_videotoolbox_default_init
	movl	%eax, %ebx
LBB0_9:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movq	%r15, %rdi
	callq	_videotoolbox_uninit
	movl	%ebx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWACCEL_AUTO,8,3               ## @HWACCEL_AUTO
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_videotoolbox_retrieve_data,4,2 ## @videotoolbox_retrieve_data
	.comm	_videotoolbox_pixfmt,4,2        ## @videotoolbox_pixfmt
	.comm	_kCFAllocatorDefault,4,2        ## @kCFAllocatorDefault
	.comm	_kCFStringEncodingUTF8,4,2      ## @kCFStringEncodingUTF8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTGetOSTypeFromString() is not available on this platform, %s pixel format can not be honored from the command line\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error creating Videotoolbox decoder.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_videotoolbox_init              ; -- Begin function videotoolbox_init
	.p2align	2
_videotoolbox_init:                     ; @videotoolbox_init
	.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	x19, x0
	ldr	x22, [x0]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _HWACCEL_AUTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HWACCEL_AUTO@GOTPAGEOFF]
Lloh2:
	adrp	x10, _AV_LOG_VERBOSE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x11, [x11, _AV_LOG_ERROR@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	mov	w0, #4
	bl	_av_mallocz
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh7:
	adrp	x8, _videotoolbox_uninit@GOTPAGE
Lloh8:
	ldr	x8, [x8, _videotoolbox_uninit@GOTPAGEOFF]
	stp	x8, x0, [x22, #16]
Lloh9:
	adrp	x8, _videotoolbox_retrieve_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _videotoolbox_retrieve_data@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22, #8]
	bl	_av_frame_alloc
	str	w0, [x21]
	cbz	w0, LBB0_6
; %bb.2:
Lloh12:
	adrp	x23, _videotoolbox_pixfmt@GOTPAGE
Lloh13:
	ldr	x23, [x23, _videotoolbox_pixfmt@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_7
; %bb.3:
	bl	_av_videotoolbox_alloc_context
	mov	x21, x0
Lloh14:
	adrp	x8, _kCFAllocatorDefault@GOTPAGE
Lloh15:
	ldr	x8, [x8, _kCFAllocatorDefault@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _kCFStringEncodingUTF8@GOTPAGE
Lloh18:
	ldr	x8, [x8, _kCFStringEncodingUTF8@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_CFStringCreateWithCString
	mov	x22, x0
	ldr	w8, [x23]
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
	mov	x0, x19
	mov	x1, x21
	bl	_av_videotoolbox_default_init2
	mov	x21, x0
	mov	x0, x22
	bl	_CFRelease
	tbnz	w21, #31, LBB0_8
LBB0_4:
	mov	w21, #0
	b	LBB0_10
LBB0_5:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_av_videotoolbox_default_init
	mov	x21, x0
	tbz	w21, #31, LBB0_4
LBB0_8:
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_av_log
LBB0_9:
	mov	x0, x19
	bl	_videotoolbox_uninit
LBB0_10:
	mov	x0, x21
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_HWACCEL_AUTO,8,3               ; @HWACCEL_AUTO
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_videotoolbox_retrieve_data,4,2 ; @videotoolbox_retrieve_data
	.comm	_videotoolbox_pixfmt,4,2        ; @videotoolbox_pixfmt
	.comm	_kCFAllocatorDefault,4,2        ; @kCFAllocatorDefault
	.comm	_kCFStringEncodingUTF8,4,2      ; @kCFStringEncodingUTF8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTGetOSTypeFromString() is not available on this platform, %s pixel format can not be honored from the command line\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error creating Videotoolbox decoder.\n"

.subsections_via_symbols
