	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwdownload_query_formats
_hwdownload_query_formats:              ## @hwdownload_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_av_pix_fmt_desc_next
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r13
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AV_PIX_FMT_FLAG_HWACCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_av_pix_fmt_desc_get_id
	testl	%ebx, %ebx
	movq	%r14, %rdi
	cmoveq	%r13, %rdi
	movl	%eax, %esi
	callq	_ff_add_format
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_av_pix_fmt_desc_next
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movq	-56(%rbp), %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	callq	_ff_formats_ref
	movl	%eax, %r15d
	sarl	$31, %r15d
	andl	%eax, %r15d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdi
	callq	_ff_formats_unref
	leaq	-48(%rbp), %rdi
	callq	_ff_formats_unref
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_HWACCEL,4,2    ## @AV_PIX_FMT_FLAG_HWACCEL
	.no_dead_strip	_hwdownload_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwdownload_query_formats
_hwdownload_query_formats:              ; @hwdownload_query_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	mov	x0, #0
	bl	_av_pix_fmt_desc_next
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _AV_PIX_FMT_FLAG_HWACCEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_PIX_FMT_FLAG_HWACCEL@GOTPAGEOFF]
	add	x23, sp, #8
	mov	x24, sp
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20]
	ldr	w25, [x22]
	mov	x0, x20
	bl	_av_pix_fmt_desc_get_id
	mov	x1, x0
	tst	w25, w21
	csel	x0, x24, x23, eq
	bl	_ff_add_format
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_av_pix_fmt_desc_next
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.4:
	ldr	x0, [sp, #8]
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	x0, [sp]
	ldr	x8, [x19]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	cmp	w0, #0
	csel	w21, w0, wzr, lt
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	add	x0, sp, #8
	bl	_ff_formats_unref
	mov	x0, sp
	bl	_ff_formats_unref
	b	LBB0_9
LBB0_8:
	mov	x21, x0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_HWACCEL,4,2    ; @AV_PIX_FMT_FLAG_HWACCEL
	.no_dead_strip	_hwdownload_query_formats
.subsections_via_symbols
