	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_query_tab@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_17
## %bb.1:
	leaq	-44(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
	movq	-56(%rbp), %rdi
	callq	_av_free
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	xorl	%edi, %edi
	callq	_av_pix_fmt_desc_next
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_av_dynarray_add
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_av_pix_fmt_desc_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_av_pix_fmt_desc_get_id
	movl	%eax, %r14d
	movq	(%r15), %rax
	movq	%r12, %rcx
	shlq	$4, %rcx
	movl	%r14d, %edi
	callq	*8(%rax,%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str(%rip), %rdx
	movq	_AV_PIX_FMT_RGB32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.1(%rip), %rdx
	movq	_AV_PIX_FMT_RGB32_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.2(%rip), %rdx
	movq	_AV_PIX_FMT_BGR32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_AV_PIX_FMT_BGR32_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	leaq	L_.str.5(%rip), %r14
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movq	_cmp_str@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
	movq	(%r15), %rax
	movq	%r12, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, -44(%rbp)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_query_tab,8,3                  ## @query_tab
	.comm	_AV_PIX_FMT_RGB32,4,2           ## @AV_PIX_FMT_RGB32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rgb32"

	.comm	_AV_PIX_FMT_RGB32_1,4,2         ## @AV_PIX_FMT_RGB32_1
L_.str.1:                               ## @.str.1
	.asciz	"rgb32_1"

	.comm	_AV_PIX_FMT_BGR32,4,2           ## @AV_PIX_FMT_BGR32
L_.str.2:                               ## @.str.2
	.asciz	"bgr32"

	.comm	_AV_PIX_FMT_BGR32_1,4,2         ## @AV_PIX_FMT_BGR32_1
L_.str.3:                               ## @.str.3
	.asciz	"bgr32_1"

	.comm	_cmp_str,4,2                    ## @cmp_str
L_.str.4:                               ## @.str.4
	.asciz	"%s:\n"

L_.str.5:                               ## @.str.5
	.asciz	"  %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x23, _query_tab@GOTPAGE
Lloh1:
	ldr	x23, [x23, _query_tab@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x20, l_.str.5@PAGE
Lloh3:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh4:
	adrp	x26, _AV_PIX_FMT_RGB32@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AV_PIX_FMT_RGB32@GOTPAGEOFF]
Lloh6:
	adrp	x27, l_.str@PAGE
Lloh7:
	add	x27, x27, l_.str@PAGEOFF
Lloh8:
	adrp	x28, _AV_PIX_FMT_RGB32_1@GOTPAGE
Lloh9:
	ldr	x28, [x28, _AV_PIX_FMT_RGB32_1@GOTPAGEOFF]
Lloh10:
	adrp	x25, l_.str.1@PAGE
Lloh11:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh12:
	adrp	x19, l_.str.2@PAGE
Lloh13:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_putchar
	ldr	x0, [sp, #24]
	bl	_av_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_FF_ARRAY_ELEMS
	cmp	x24, w0, sxtw
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	mov	x0, #0
	bl	_av_pix_fmt_desc_next
	cbz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x0, sp, #24
	add	x1, sp, #20
	bl	_av_dynarray_add
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_av_pix_fmt_desc_next
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_av_pix_fmt_desc_get_id
	mov	x22, x0
	ldr	x8, [x23]
	add	x8, x8, x24, lsl #4
	ldr	x8, [x8, #8]
	blr	x8
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x26]
	mov	x2, x27
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x28]
	mov	x2, x25
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh14:
	adrp	x8, _AV_PIX_FMT_BGR32@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_PIX_FMT_BGR32@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	x2, x19
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _AV_PIX_FMT_BGR32_1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_PIX_FMT_BGR32_1@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w22, w9
Lloh20:
	adrp	x9, l_.str.3@PAGE
Lloh21:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x2, x9, x8, eq
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #20]
Lloh22:
	adrp	x8, _cmp_str@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cmp_str@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	w2, #8
	bl	_qsort
	ldr	x8, [x23]
	lsl	x9, x24, #4
	ldr	x8, [x8, x9]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
	add	x21, x21, #1
	ldrsw	x8, [sp, #20]
	cmp	x21, x8
	b.lt	LBB0_16
	b	LBB0_2
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_query_tab,8,3                  ; @query_tab
	.comm	_AV_PIX_FMT_RGB32,4,2           ; @AV_PIX_FMT_RGB32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rgb32"

	.comm	_AV_PIX_FMT_RGB32_1,4,2         ; @AV_PIX_FMT_RGB32_1
l_.str.1:                               ; @.str.1
	.asciz	"rgb32_1"

	.comm	_AV_PIX_FMT_BGR32,4,2           ; @AV_PIX_FMT_BGR32
l_.str.2:                               ; @.str.2
	.asciz	"bgr32"

	.comm	_AV_PIX_FMT_BGR32_1,4,2         ; @AV_PIX_FMT_BGR32_1
l_.str.3:                               ; @.str.3
	.asciz	"bgr32_1"

	.comm	_cmp_str,4,2                    ; @cmp_str
l_.str.4:                               ; @.str.4
	.asciz	"%s:\n"

l_.str.5:                               ; @.str.5
	.asciz	"  %s\n"

.subsections_via_symbols
