	.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_40
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_40
## %bb.2:
	movq	%rdi, %r14
	cmpl	$0, 8(%rax)
	jne	LBB0_12
## %bb.3:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	je	LBB0_7
## %bb.4:
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.5:
	cmpl	$2, 4(%rax)
	jne	LBB0_9
LBB0_6:
	movq	_in2_pix_fmts@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	cmpl	$1, 4(%rax)
	je	LBB0_6
LBB0_9:
	movq	_in1_pix_fmts@GOTPCREL(%rip), %rax
LBB0_10:
	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_39
## %bb.11:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
LBB0_12:
	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_17
## %bb.13:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>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_40
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rax), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_40
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_14
LBB0_17:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.18:
	cmpl	$8, %r15d
	jne	LBB0_20
## %bb.19:
	movq	_out_rgb8_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_38
LBB0_20:
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.21:
	cmpl	$9, %r15d
	jne	LBB0_23
## %bb.22:
	movq	_out_rgb9_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_38
LBB0_23:
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.24:
	cmpl	$10, %r15d
	jne	LBB0_26
## %bb.25:
	movq	_out_rgb10_pix_fmts@GOTPCREL(%rip), %rsi
	jmp	LBB0_38
LBB0_26:
	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_28
## %bb.27:
	movq	_out_rgb12_pix_fmts@GOTPCREL(%rip), %rdx
	jmp	LBB0_29
LBB0_28:
	movq	_out_yuv8_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_29:
	orb	%bl, %al
	testb	%bl, %bl
	jne	LBB0_31
## %bb.30:
	movq	_out_yuv9_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_31:
	testb	%al, %al
	jne	LBB0_33
## %bb.32:
	movq	_out_yuv10_pix_fmts@GOTPCREL(%rip), %rdx
LBB0_33:
	movq	%rdx, %rsi
	cmpl	$10, %r15d
	je	LBB0_35
## %bb.34:
	movq	_out_yuv12_pix_fmts@GOTPCREL(%rip), %rsi
LBB0_35:
	testb	%al, %al
	cmovneq	%rdx, %rsi
	testb	%cl, %cl
	jne	LBB0_38
## %bb.36:
	cmpl	$12, %r15d
	ja	LBB0_40
## %bb.37:
	movl	$5888, %eax                     ## imm = 0x1700
	btl	%r15d, %eax
	jae	LBB0_40
LBB0_38:
	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_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	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	_in2_pix_fmts,8,3               ## @in2_pix_fmts
	.comm	_in1_pix_fmts,8,3               ## @in1_pix_fmts
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.comm	_out_rgb8_pix_fmts,8,3          ## @out_rgb8_pix_fmts
	.comm	_out_rgb9_pix_fmts,8,3          ## @out_rgb9_pix_fmts
	.comm	_out_rgb10_pix_fmts,8,3         ## @out_rgb10_pix_fmts
	.comm	_out_rgb12_pix_fmts,8,3         ## @out_rgb12_pix_fmts
	.comm	_out_yuv8_pix_fmts,8,3          ## @out_yuv8_pix_fmts
	.comm	_out_yuv9_pix_fmts,8,3          ## @out_yuv9_pix_fmts
	.comm	_out_yuv10_pix_fmts,8,3         ## @out_yuv10_pix_fmts
	.comm	_out_yuv12_pix_fmts,8,3         ## @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_21
; %bb.1:
	ldr	w9, [x21]
	cbz	w9, LBB0_21
; %bb.2:
	mov	x19, x0
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_11
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x8, #4]
	cmp	w8, #2
	b.ne	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _in2_pix_fmts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _in2_pix_fmts@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.eq	LBB0_6
LBB0_8:
Lloh2:
	adrp	x8, _in1_pix_fmts@GOTPAGE
Lloh3:
	ldr	x8, [x8, _in1_pix_fmts@GOTPAGEOFF]
LBB0_9:
	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_26
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
LBB0_11:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_av_pix_fmt_desc_get
	ldr	w8, [x0]
Lloh4:
	adrp	x23, _AV_PIX_FMT_FLAG_RGB@GOTPAGE
Lloh5:
	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_16
; %bb.12:
	mov	w24, #1
LBB0_13:                                ; =>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_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_13
LBB0_16:
	cmp	w22, #0
	ccmp	w20, #8, #0, ne
	b.eq	LBB0_22
; %bb.17:
	cmp	w22, #0
	ccmp	w20, #9, #0, ne
	b.eq	LBB0_23
; %bb.18:
	cmp	w22, #0
	ccmp	w20, #10, #0, ne
	b.eq	LBB0_24
; %bb.19:
	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
Lloh6:
	adrp	x12, _out_yuv8_pix_fmts@GOTPAGE
Lloh7:
	ldr	x12, [x12, _out_yuv8_pix_fmts@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh8:
	adrp	x13, _out_rgb12_pix_fmts@GOTPAGE
Lloh9:
	ldr	x13, [x13, _out_rgb12_pix_fmts@GOTPAGEOFF]
	csel	x12, x13, x12, ne
Lloh10:
	adrp	x13, _out_yuv9_pix_fmts@GOTPAGE
Lloh11:
	ldr	x13, [x13, _out_yuv9_pix_fmts@GOTPAGEOFF]
	orr	w9, w10, w9
	cmp	w10, #0
	csel	x10, x12, x13, ne
	orr	w8, w9, w8
Lloh12:
	adrp	x12, _out_yuv10_pix_fmts@GOTPAGE
Lloh13:
	ldr	x12, [x12, _out_yuv10_pix_fmts@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x10, x12, ne
Lloh14:
	adrp	x10, _out_yuv12_pix_fmts@GOTPAGE
Lloh15:
	ldr	x10, [x10, _out_yuv12_pix_fmts@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, ne
	tbnz	w11, #0, LBB0_25
; %bb.20:
	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_25
LBB0_21:
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh18:
	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_22:
Lloh19:
	adrp	x8, _out_rgb8_pix_fmts@GOTPAGE
Lloh20:
	ldr	x8, [x8, _out_rgb8_pix_fmts@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh21:
	adrp	x8, _out_rgb9_pix_fmts@GOTPAGE
Lloh22:
	ldr	x8, [x8, _out_rgb9_pix_fmts@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh23:
	adrp	x8, _out_rgb10_pix_fmts@GOTPAGE
Lloh24:
	ldr	x8, [x8, _out_rgb10_pix_fmts@GOTPAGEOFF]
LBB0_25:
	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_26:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_in2_pix_fmts,8,3               ; @in2_pix_fmts
	.comm	_in1_pix_fmts,8,3               ; @in1_pix_fmts
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.comm	_out_rgb8_pix_fmts,8,3          ; @out_rgb8_pix_fmts
	.comm	_out_rgb9_pix_fmts,8,3          ; @out_rgb9_pix_fmts
	.comm	_out_rgb10_pix_fmts,8,3         ; @out_rgb10_pix_fmts
	.comm	_out_rgb12_pix_fmts,8,3         ; @out_rgb12_pix_fmts
	.comm	_out_yuv8_pix_fmts,8,3          ; @out_yuv8_pix_fmts
	.comm	_out_yuv9_pix_fmts,8,3          ; @out_yuv9_pix_fmts
	.comm	_out_yuv10_pix_fmts,8,3         ; @out_yuv10_pix_fmts
	.comm	_out_yuv12_pix_fmts,8,3         ; @out_yuv12_pix_fmts
	.no_dead_strip	_query_formats
.subsections_via_symbols
