	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwupload_query_formats
_hwupload_query_formats:                ## @hwupload_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, %r12
	movq	24(%rdi), %r14
	movq	$0, -48(%rbp)
	movl	16(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	callq	_av_buffer_ref
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	(%rax), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_av_hwdevice_get_hwframe_constraints
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	(%rax), %r15
	movq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_ff_make_format_list
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	testq	%r15, %r15
	je	LBB0_17
## %bb.12:
	movl	(%r15), %esi
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_17
## %bb.13:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %r15
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ff_add_format
	testl	%eax, %eax
	js	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r15), %esi
	addq	$4, %r15
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_15
## %bb.16:
	movq	-48(%rbp), %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_17:
	movq	8(%r12), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_8
## %bb.18:
	movq	%r13, %rdi
	callq	_ff_make_format_list
	movq	(%r12), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_8
## %bb.19:
	leaq	-56(%rbp), %rdi
	callq	_av_hwframe_constraints_free
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_av_buffer_unref
	leaq	-56(%rbp), %rdi
	callq	_av_hwframe_constraints_free
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A hardware device reference is required to upload frames to.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.no_dead_strip	_hwupload_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwupload_query_formats
_hwupload_query_formats:                ; @hwupload_query_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	str	xzr, [sp]
	ldr	w0, [x0, #16]
	cbz	w0, LBB0_13
; %bb.1:
	bl	_av_buffer_ref
	str	x0, [x19]
	cbz	x0, LBB0_14
; %bb.2:
	ldr	x8, [x0]
	str	x8, [x19, #8]
	mov	x1, #0
	bl	_av_hwdevice_get_hwframe_constraints
	str	x0, [sp, #8]
	cbz	x0, LBB0_16
; %bb.3:
	ldp	x22, x21, [x0]
	mov	x0, x21
	bl	_ff_make_format_list
	str	x0, [sp]
	cbz	x0, LBB0_17
; %bb.4:
	cbz	x22, LBB0_10
; %bb.5:
	ldr	w1, [x22]
Lloh0:
	adrp	x23, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w1, w8
	b.eq	LBB0_10
; %bb.6:
	add	x24, x22, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_ff_add_format
	tbnz	w0, #31, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x24], #4
	ldr	w8, [x23]
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.9:
	ldr	x0, [sp]
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.11:
	mov	x0, x21
	bl	_ff_make_format_list
	ldr	x8, [x20]
	ldr	x1, [x8]
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.12:
	add	x0, sp, #8
	bl	_av_hwframe_constraints_free
	mov	w22, #0
	b	LBB0_20
LBB0_13:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_16:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_19:
	mov	x22, x0
	mov	x0, x19
	bl	_av_buffer_unref
	add	x0, sp, #8
	bl	_av_hwframe_constraints_free
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A hardware device reference is required to upload frames to.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.no_dead_strip	_hwupload_query_formats
.subsections_via_symbols
