	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_formats
_query_formats:                         ## @query_formats
	.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, %r14
	movq	16(%rdi), %r13
	movq	$0, -48(%rbp)
	movl	(%r13), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, 8(%r13)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	xorl	(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	%ebx, %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r12
	movq	16(%rax), %rax
	movl	(%rax), %ecx
	movq	8(%r13), %rax
	movq	8(%rax), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, %ecx
	jge	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_av_pix_fmt_count_planes
	cmpq	8(%r12), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	callq	_ff_add_format
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_14
LBB0_8:
	cmpl	$0, 4(%r13)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	$0, -48(%rbp)
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdi
	callq	_ff_add_format
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi
	movq	(%r14), %rax
	movq	(%rax), %rsi
	callq	_ff_formats_ref
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ## @AV_PIX_FMT_FLAG_BE
	.no_dead_strip	_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_formats
_query_formats:                         ; @query_formats
	.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, #16]
	str	xzr, [sp, #8]
	ldr	w0, [x22]
	bl	_av_pix_fmt_desc_get
	str	x0, [x22, #8]
	mov	w0, #0
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_8
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x23, _AV_PIX_FMT_FLAG_BE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_PIX_FMT_FLAG_BE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21]
	ldr	w10, [x23]
	ldr	w8, [x8]
	eor	w8, w8, w9
	tst	w8, w10
	b.eq	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	mov	x0, x20
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_av_pix_fmt_desc_get
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	ldr	x10, [x8, #8]
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	cmp	w9, #9
	b.ge	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_av_pix_fmt_count_planes
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_ff_add_format
	tbz	w0, #31, LBB0_3
	b	LBB0_14
LBB0_8:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22, #4]
	cmp	x20, x8
	b.lt	LBB0_10
LBB0_12:
	str	xzr, [sp, #8]
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_ff_add_format
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldr	x0, [sp, #8]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ; @AV_PIX_FMT_FLAG_BE
	.no_dead_strip	_query_formats
.subsections_via_symbols
