	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_format
_get_format:                            ## @get_format
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	(%rsi), %ecx
	cmpl	%eax, %ecx
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	_AV_PIX_FMT_QSV@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	addq	$4, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, %ecx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi), %ecx
	addq	$4, %rsi
	cmpl	%eax, %ecx
	jne	LBB0_3
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_9:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	callq	_av_hwframe_ctx_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%rax), %rbx
	movq	32(%rbx), %r12
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	16(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	12(%r15), %edi
	movl	$32, %esi
	callq	_FFALIGN
	movq	%rax, 16(%rbx)
	movl	8(%r15), %edi
	movl	$32, %esi
	callq	_FFALIGN
	movq	%rax, 8(%rbx)
	movl	$32, 4(%rbx)
	movq	_MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	(%r15), %rdi
	callq	_av_hwframe_ctx_init
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %r14
LBB0_7:
	movq	%r14, %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_QSV,4,2             ## @AV_PIX_FMT_QSV
	.comm	_MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET,4,2 ## @MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The QSV pixel format not offered in get_format()\n"

	.no_dead_strip	_get_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_format
_get_format:                            ; @get_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
	cmp	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _AV_PIX_FMT_QSV@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AV_PIX_FMT_QSV@GOTPAGEOFF]
	ldr	w10, [x20]
	add	x11, x1, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w10
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x11], #4
	cmp	w9, w8
	b.ne	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh10:
	adrp	x21, _AV_PIX_FMT_NONE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _AV_PIX_FMT_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_av_hwframe_ctx_alloc
	str	x0, [x19]
Lloh12:
	adrp	x21, _AV_PIX_FMT_NONE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.7:
	ldr	x22, [x0]
	ldr	x23, [x22, #32]
	ldr	w8, [x20]
	str	w8, [x22]
	ldp	w0, w8, [x19, #12]
	str	w8, [x22, #24]
	mov	w24, #32
	mov	w1, #32
	bl	_FFALIGN
	str	x0, [x22, #16]
	ldr	w0, [x19, #8]
	mov	w1, #32
	bl	_FFALIGN
	str	x0, [x22, #8]
	str	w24, [x22, #4]
Lloh14:
	adrp	x8, _MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23]
	ldr	x0, [x19]
	bl	_av_hwframe_ctx_init
	cmp	w0, #0
	csel	x21, x21, x20, lt
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_QSV,4,2             ; @AV_PIX_FMT_QSV
	.comm	_MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET,4,2 ; @MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The QSV pixel format not offered in get_format()\n"

	.no_dead_strip	_get_format
.subsections_via_symbols
