	.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	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r14
	cmpl	$0, 8(%rax)
	jne	LBB0_5
## %bb.3:
	movq	_levels_in_pix_fmts@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ff_make_format_list
	movq	8(%r14), %rcx
	movq	(%rcx), %rsi
	addq	$8, %rsi
	movl	%eax, %edi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_33
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_av_pix_fmt_desc_get
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	8(%rax), %rcx
	movl	(%rcx), %r15d
	andl	(%rax), %r12d
	cmpl	$2, (%rbx)
	jl	LBB0_11
## %bb.6:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_av_pix_fmt_desc_get
	movl	(%r13), %ecx
	andl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rax), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.12:
	cmpl	$8, %r15d
	jne	LBB0_14
## %bb.13:
	movq	_levels_out_rgb8_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_32
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.15:
	cmpl	$9, %r15d
	jne	LBB0_17
## %bb.16:
	movq	_levels_out_rgb9_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_32
LBB0_17:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.18:
	cmpl	$10, %r15d
	jne	LBB0_20
## %bb.19:
	movq	_levels_out_rgb10_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_32
LBB0_20:
	cmpl	$9, %r15d
	sete	%al
	cmpl	$8, %r15d
	sete	%bl
	testl	%r12d, %r12d
	setne	%dl
	cmpl	$12, %r15d
	sete	%cl
	andb	%dl, %cl
	orb	%cl, %bl
	testb	%cl, %cl
	je	LBB0_21
## %bb.22:
	movq	_levels_out_rgb12_pix_fmts@GOTPCREL(%rip), %rdx
	jmp	LBB0_23
LBB0_21:
	movq	_levels_out_yuv8_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_23:
	orb	%bl, %al
	testb	%bl, %bl
	jne	LBB0_25
## %bb.24:
	movq	_levels_out_yuv9_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_25:
	testb	%al, %al
	jne	LBB0_27
## %bb.26:
	movq	_levels_out_yuv10_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_27:
	movq	%rdx, %rsi
	cmpl	$10, %r15d
	je	LBB0_29
## %bb.28:
	movq	_levels_out_yuv12_pix_fmts@GOTPCREL(%rip), %rsi
LBB0_29:
	testb	%al, %al
	cmovneq	%rdx, %rsi
	testb	%cl, %cl
	jne	LBB0_32
## %bb.30:
	cmpl	$12, %r15d
	ja	LBB0_10
## %bb.31:
	movl	$5888, %eax                     ## imm = 0x1700
	btl	%r15d, %eax
	jae	LBB0_10
LBB0_32:
	movq	(%rsi), %rdi
	callq	_ff_make_format_list
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_ff_formats_ref
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_levels_in_pix_fmts,8,3         ## @levels_in_pix_fmts
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.comm	_levels_out_rgb8_pix_fmts,8,3   ## @levels_out_rgb8_pix_fmts
	.comm	_levels_out_rgb9_pix_fmts,8,3   ## @levels_out_rgb9_pix_fmts
	.comm	_levels_out_rgb10_pix_fmts,8,3  ## @levels_out_rgb10_pix_fmts
	.comm	_levels_out_rgb12_pix_fmts,8,3  ## @levels_out_rgb12_pix_fmts
	.comm	_levels_out_yuv8_pix_fmts,8,3   ## @levels_out_yuv8_pix_fmts
	.comm	_levels_out_yuv9_pix_fmts,8,3   ## @levels_out_yuv9_pix_fmts
	.comm	_levels_out_yuv10_pix_fmts,8,3  ## @levels_out_yuv10_pix_fmts
	.comm	_levels_out_yuv12_pix_fmts,8,3  ## @levels_out_yuv12_pix_fmts
	.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:
	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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
	cbz	x21, LBB0_15
; %bb.1:
	ldr	w9, [x21]
	cbz	w9, LBB0_15
; %bb.2:
	mov	x19, x0
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _levels_in_pix_fmts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _levels_in_pix_fmts@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_ff_make_format_list
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, x8, #8
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_20
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_av_pix_fmt_desc_get
	ldr	w8, [x0]
Lloh3:
	adrp	x23, _AV_PIX_FMT_FLAG_RGB@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AV_PIX_FMT_FLAG_RGB@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w22, w9, w8
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.6:
	mov	w24, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_av_pix_fmt_desc_get
	ldr	w8, [x0]
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	w22, w8
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_10:
	cmp	w22, #0
	ccmp	w20, #8, #0, ne
	b.eq	LBB0_16
; %bb.11:
	cmp	w22, #0
	ccmp	w20, #9, #0, ne
	b.eq	LBB0_17
; %bb.12:
	cmp	w22, #0
	ccmp	w20, #10, #0, ne
	b.eq	LBB0_18
; %bb.13:
	cmp	w20, #10
	cset	w8, eq
	cmp	w20, #9
	cset	w9, eq
	cmp	w20, #8
	cset	w10, eq
	cmp	w22, #0
	cset	w11, ne
	cmp	w20, #12
	cset	w12, eq
	ands	w11, w11, w12
Lloh5:
	adrp	x12, _levels_out_yuv8_pix_fmts@GOTPAGE
Lloh6:
	ldr	x12, [x12, _levels_out_yuv8_pix_fmts@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh7:
	adrp	x13, _levels_out_rgb12_pix_fmts@GOTPAGE
Lloh8:
	ldr	x13, [x13, _levels_out_rgb12_pix_fmts@GOTPAGEOFF]
	csel	x12, x13, x12, ne
Lloh9:
	adrp	x13, _levels_out_yuv9_pix_fmts@GOTPAGE
Lloh10:
	ldr	x13, [x13, _levels_out_yuv9_pix_fmts@GOTPAGEOFF]
	orr	w9, w10, w9
	cmp	w10, #0
	csel	x10, x12, x13, ne
	orr	w8, w9, w8
Lloh11:
	adrp	x12, _levels_out_yuv10_pix_fmts@GOTPAGE
Lloh12:
	ldr	x12, [x12, _levels_out_yuv10_pix_fmts@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x10, x12, ne
Lloh13:
	adrp	x10, _levels_out_yuv12_pix_fmts@GOTPAGE
Lloh14:
	ldr	x10, [x10, _levels_out_yuv12_pix_fmts@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, ne
	tbnz	w11, #0, LBB0_19
; %bb.14:
	cmp	w20, #12
	mov	w9, #1
	lsl	w9, w9, w20
	mov	w10, #5888
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.ne	LBB0_19
LBB0_15:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_16:
Lloh18:
	adrp	x8, _levels_out_rgb8_pix_fmts@GOTPAGE
Lloh19:
	ldr	x8, [x8, _levels_out_rgb8_pix_fmts@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh20:
	adrp	x8, _levels_out_rgb9_pix_fmts@GOTPAGE
Lloh21:
	ldr	x8, [x8, _levels_out_rgb9_pix_fmts@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _levels_out_rgb10_pix_fmts@GOTPAGE
Lloh23:
	ldr	x8, [x8, _levels_out_rgb10_pix_fmts@GOTPAGEOFF]
LBB0_19:
	ldr	x0, [x8]
	bl	_ff_make_format_list
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_levels_in_pix_fmts,8,3         ; @levels_in_pix_fmts
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.comm	_levels_out_rgb8_pix_fmts,8,3   ; @levels_out_rgb8_pix_fmts
	.comm	_levels_out_rgb9_pix_fmts,8,3   ; @levels_out_rgb9_pix_fmts
	.comm	_levels_out_rgb10_pix_fmts,8,3  ; @levels_out_rgb10_pix_fmts
	.comm	_levels_out_rgb12_pix_fmts,8,3  ; @levels_out_rgb12_pix_fmts
	.comm	_levels_out_yuv8_pix_fmts,8,3   ; @levels_out_yuv8_pix_fmts
	.comm	_levels_out_yuv9_pix_fmts,8,3   ; @levels_out_yuv9_pix_fmts
	.comm	_levels_out_yuv10_pix_fmts,8,3  ; @levels_out_yuv10_pix_fmts
	.comm	_levels_out_yuv12_pix_fmts,8,3  ; @levels_out_yuv12_pix_fmts
	.no_dead_strip	_query_formats
.subsections_via_symbols
