	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwdownload_config_output
_hwdownload_config_output:              ## @hwdownload_config_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movq	_AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_av_hwframe_transfer_get_formats
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	-32(%rbp), %rax
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	je	LBB0_9
## %bb.3:
	movl	(%rbx), %esi
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %edx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %edx
	addq	$4, %rax
	cmpl	%ecx, %edx
	jne	LBB0_5
LBB0_9:
	leaq	-32(%rbp), %rdi
	callq	_av_freep
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	leaq	-32(%rbp), %rdi
	callq	_av_freep
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_HWFRAME_TRANSFER_DIRECTION_FROM,4,2 ## @AV_HWFRAME_TRANSFER_DIRECTION_FROM
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid output format %s for hwframe download.\n"

	.no_dead_strip	_hwdownload_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwdownload_config_output
_hwdownload_config_output:              ; @hwdownload_config_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	ldr	w0, [x20]
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #0
	bl	_av_hwframe_transfer_get_formats
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x11, [sp, #8]
Lloh3:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x11]
	cmp	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w10, [x19]
	add	x11, x11, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w10
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x11], #4
	cmp	w9, w8
	b.ne	LBB0_4
LBB0_6:
	add	x0, sp, #8
	bl	_av_freep
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_av_get_pix_fmt_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_av_log
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	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
	add	sp, sp, #64
	b	_AVERROR
LBB0_8:
	add	x0, sp, #8
	bl	_av_freep
	mov	w0, #0
	ldur	d0, [x21, #4]
	stur	d0, [x19, #4]
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_HWFRAME_TRANSFER_DIRECTION_FROM,4,2 ; @AV_HWFRAME_TRANSFER_DIRECTION_FROM
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid output format %s for hwframe download.\n"

	.no_dead_strip	_hwdownload_config_output
.subsections_via_symbols
