	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwmap_config_output
_hwmap_config_output:                   ## @hwmap_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %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), %r15
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_av_get_pix_fmt_name
	movl	%eax, %r14d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_av_buffer_unref
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	movq	%rdi, -72(%rbp)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movq	%rbx, %r15
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.2:
	callq	_av_hwdevice_find_type_by_name
	movq	_AV_HWDEVICE_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_42
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.5:
	movl	$1, (%rbx)
	callq	_av_hwframe_ctx_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.6:
	movq	(%rax), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rdx
	movq	%rdx, 8(%rcx)
	movl	12(%rsi), %edx
	movl	%edx, 28(%rcx)
	movl	8(%rsi), %edx
	movl	%edx, 24(%rcx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	js	LBB0_8
## %bb.7:
	addq	$2, %rdx
	movq	%rdx, 16(%rcx)
LBB0_8:
	movq	%rax, %rdi
	callq	_av_hwframe_ctx_init
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_36
## %bb.9:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	%r12, %rdi
	jmp	LBB0_43
LBB0_10:
	movq	32(%r12), %rdx
	leaq	-72(%rbp), %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_av_hwdevice_ctx_create_derived
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, %eax
	js	LBB0_24
LBB0_11:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	16(%rcx), %r13
	movq	(%rcx), %rdi
	movq	(%r12), %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_22
## %bb.13:
	movq	_AV_PIX_FMT_FLAG_HWACCEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_25
## %bb.14:
	cmpl	$0, (%r15)
	je	LBB0_33
## %bb.15:
	movq	-72(%rbp), %rdi
	callq	_av_hwframe_ctx_alloc
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_45
## %bb.16:
	movq	(%rax), %rcx
	movq	(%rbx), %rdx
	movq	%rdx, (%rcx)
	movq	8(%r12), %rdx
	movq	%rdx, 8(%rcx)
	movl	28(%r12), %edx
	movl	%edx, 28(%rcx)
	movl	24(%r12), %edx
	movl	%edx, 24(%rcx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	js	LBB0_18
## %bb.17:
	addq	$2, %rdx
	movq	%rdx, 16(%rcx)
LBB0_18:
	movq	%rax, %rdi
	callq	_av_hwframe_ctx_init
	testl	%eax, %eax
	js	LBB0_46
## %bb.19:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	32(%r12), %rdx
	movq	8(%r15), %rcx
	movl	16(%r15), %r8d
	leaq	-104(%rbp), %rdi
	callq	_av_hwframe_ctx_create_derived
	testl	%eax, %eax
	js	LBB0_48
## %bb.20:
	movq	%r13, %rdi
	callq	_av_buffer_unref
	movq	-104(%rbp), %rax
	movq	%rax, (%r13)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_22:
	cmpq	%rcx, (%rbx)
	je	LBB0_26
	jmp	LBB0_28
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	movq	%r12, %rdi
	jmp	LBB0_43
LBB0_24:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_42
LBB0_25:
	cmpq	%rcx, (%rbx)
	jne	LBB0_32
LBB0_26:
	cmpq	8(%r12), %rdi
	je	LBB0_32
## %bb.27:
	cmpq	%rcx, %rdi
	je	LBB0_32
LBB0_28:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_av_get_pix_fmt_name
	movl	%eax, %r14d
	movq	(%r12), %rdi
	callq	_av_get_pix_fmt_name
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str.7(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
LBB0_29:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_31:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_42
LBB0_41:
	leaq	-72(%rbp), %rdi
	callq	_av_buffer_unref
LBB0_42:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_43:
	callq	_av_buffer_unref
LBB0_44:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	(%r13), %rdi
	callq	_av_buffer_ref
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12)
	testq	%rax, %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_36
	jmp	LBB0_40
LBB0_33:
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_47
## %bb.34:
	movq	(%rbx), %rsi
	movq	(%r13), %rcx
	movl	16(%r15), %r8d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_av_hwframe_ctx_create_derived
	testl	%eax, %eax
	js	LBB0_49
LBB0_35:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_36:
	movq	(%r12), %rdi
	callq	_av_buffer_ref
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %eax
	movl	%eax, 12(%rcx)
	movl	8(%rdx), %eax
	movl	%eax, 8(%rcx)
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_44
## %bb.38:
	leaq	-72(%rbp), %rdi
	jmp	LBB0_43
LBB0_39:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
LBB0_40:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	testl	%r15d, %r15d
	jne	LBB0_41
	jmp	LBB0_42
LBB0_45:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_46:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_50
LBB0_47:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_29
LBB0_48:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_50
LBB0_49:
	movl	%eax, %r14d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_50:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configure hwmap %s -> %s.\n"

	.comm	_AV_HWDEVICE_TYPE_NONE,4,2      ## @AV_HWDEVICE_TYPE_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid device type.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to created derived device context: %d.\n"

	.comm	_AV_PIX_FMT_FLAG_HWACCEL,4,2    ## @AV_PIX_FMT_FLAG_HWACCEL
L_.str.3:                               ## @.str.3
	.asciz	"A device reference is required to map to a hardware format.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to create derived frames context: %d.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"Failed to initialise target frames context: %d.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to create derived source frames context: %d.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unsupported formats for hwmap: from %s (%s) to %s.\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to create frame context for reverse mapping: %d.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Mapping requires a hardware context (a device, or frames on input).\n"

	.no_dead_strip	_hwmap_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwmap_config_output
_hwmap_config_output:                   ; @hwmap_config_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldp	x8, x26, [x20, #16]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x24]
	bl	_av_get_pix_fmt_name
	mov	x22, x0
	ldr	x0, [x21]
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_av_log
	add	x19, x26, #8
	mov	x0, x19
	bl	_av_buffer_unref
	ldr	x0, [x20, #8]
	str	x0, [sp, #40]
	mov	x22, x24
	ldr	x8, [x22, #16]!
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x27, [x8]
	ldr	x0, [x26, #24]
	cbz	x0, LBB0_10
; %bb.2:
	bl	_av_hwdevice_find_type_by_name
Lloh5:
	adrp	x8, _AV_HWDEVICE_TYPE_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_HWDEVICE_TYPE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.3:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_4:
	cbz	x0, LBB0_23
; %bb.5:
	mov	w8, #1
	str	w8, [x26]
	bl	_av_hwframe_ctx_alloc
	str	x0, [x26, #8]
	cbz	x0, LBB0_25
; %bb.6:
	ldr	x8, [x0]
	ldr	x9, [x21]
	str	x9, [x8]
	ldr	x9, [x24]
	str	x9, [x8, #8]
	ldr	d0, [x24, #8]
	str	d0, [x8, #24]
	ldr	x9, [x20]
	tbnz	x9, #63, LBB0_8
; %bb.7:
	add	x9, x9, #2
	str	x9, [x8, #16]
LBB0_8:
	bl	_av_hwframe_ctx_init
	tbnz	w0, #31, LBB0_28
; %bb.9:
	mov	w25, #0
	b	LBB0_37
LBB0_10:
	mov	w25, #0
	b	LBB0_13
LBB0_11:
	mov	x1, x0
	ldr	x2, [x27, #32]
	add	x0, sp, #40
	mov	w3, #0
	bl	_av_hwdevice_ctx_create_derived
	tbnz	w0, #31, LBB0_27
; %bb.12:
	mov	w25, #1
LBB0_13:
	ldr	x0, [x21]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_34
; %bb.14:
	mov	x8, x0
	ldr	x0, [x24]
	ldr	x9, [x27]
	cmp	x0, x9
	b.ne	LBB0_24
; %bb.15:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _AV_PIX_FMT_FLAG_HWACCEL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_PIX_FMT_FLAG_HWACCEL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_29
; %bb.16:
	ldr	w8, [x26]
	cbz	w8, LBB0_35
; %bb.17:
	ldr	x0, [sp, #40]
	bl	_av_hwframe_ctx_alloc
	str	x0, [x19]
	cbz	x0, LBB0_41
; %bb.18:
	ldr	x8, [x0]
	ldr	x9, [x21]
	str	x9, [x8]
	ldr	x9, [x27, #8]
	str	x9, [x8, #8]
	ldr	d0, [x27, #24]
	str	d0, [x8, #24]
	ldr	x9, [x20]
	tbnz	x9, #63, LBB0_20
; %bb.19:
	add	x9, x9, #2
	str	x9, [x8, #16]
LBB0_20:
	bl	_av_hwframe_ctx_init
	tbnz	w0, #31, LBB0_46
; %bb.21:
	ldr	x1, [x24]
	ldr	x2, [x27, #32]
	ldr	x3, [x26, #8]
	ldr	w4, [x26, #16]
	add	x0, sp, #32
	bl	_av_hwframe_ctx_create_derived
	tbnz	w0, #31, LBB0_48
; %bb.22:
	mov	x0, x22
	bl	_av_buffer_unref
	ldr	x8, [sp, #32]
	str	x8, [x22]
	b	LBB0_37
LBB0_23:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.10@PAGE
Lloh22:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
LBB0_24:
	ldr	x8, [x21]
	cmp	x8, x9
	b.eq	LBB0_30
	b	LBB0_32
LBB0_25:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_44
LBB0_27:
	mov	x23, x0
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_44
LBB0_28:
	mov	x23, x0
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh36:
	adrp	x2, l_.str.9@PAGE
Lloh37:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_av_log
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_44
LBB0_29:
	ldr	x8, [x21]
	cmp	x8, x9
	b.ne	LBB0_31
LBB0_30:
	ldr	x8, [x27, #8]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_32
LBB0_31:
	ldr	x0, [x22]
	bl	_av_buffer_ref
	str	x0, [x19]
	cbnz	x0, LBB0_37
	b	LBB0_41
LBB0_32:
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w22, [x8]
	bl	_av_get_pix_fmt_name
	mov	x23, x0
	ldr	x0, [x27]
	bl	_av_get_pix_fmt_name
	mov	x24, x0
	ldr	x0, [x21]
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #8]
	str	x23, [sp]
Lloh41:
	adrp	x2, l_.str.7@PAGE
Lloh42:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x22
LBB0_33:
	bl	_av_log
LBB0_34:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_42
LBB0_35:
	ldr	x2, [sp, #40]
	cbz	x2, LBB0_47
; %bb.36:
	ldr	x1, [x21]
	ldr	x3, [x22]
	ldr	w4, [x26, #16]
	mov	x0, x19
	bl	_av_hwframe_ctx_create_derived
	tbnz	w0, #31, LBB0_49
LBB0_37:
	ldr	x0, [x19]
	bl	_av_buffer_ref
	str	x0, [x21, #16]
	cbz	x0, LBB0_41
; %bb.38:
	ldr	d0, [x24, #8]
	str	d0, [x21, #8]
	cbz	w25, LBB0_40
; %bb.39:
	add	x0, sp, #40
	bl	_av_buffer_unref
LBB0_40:
	mov	w23, #0
	b	LBB0_45
LBB0_41:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_42:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	cbz	w25, LBB0_44
LBB0_43:
	add	x0, sp, #40
	bl	_av_buffer_unref
LBB0_44:
	mov	x0, x19
	bl	_av_buffer_unref
LBB0_45:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_46:
	mov	x23, x0
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh50:
	adrp	x2, l_.str.5@PAGE
Lloh51:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_50
LBB0_47:
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x2, l_.str.3@PAGE
Lloh56:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	b	LBB0_33
LBB0_48:
	mov	x23, x0
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh60:
	adrp	x2, l_.str.6@PAGE
Lloh61:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_50
LBB0_49:
	mov	x23, x0
Lloh62:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh65:
	adrp	x2, l_.str.4@PAGE
Lloh66:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_50:
	mov	x0, x20
	bl	_av_log
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	cbnz	w25, LBB0_43
	b	LBB0_44
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configure hwmap %s -> %s.\n"

	.comm	_AV_HWDEVICE_TYPE_NONE,4,2      ; @AV_HWDEVICE_TYPE_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid device type.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to created derived device context: %d.\n"

	.comm	_AV_PIX_FMT_FLAG_HWACCEL,4,2    ; @AV_PIX_FMT_FLAG_HWACCEL
l_.str.3:                               ; @.str.3
	.asciz	"A device reference is required to map to a hardware format.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to create derived frames context: %d.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"Failed to initialise target frames context: %d.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to create derived source frames context: %d.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unsupported formats for hwmap: from %s (%s) to %s.\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to create frame context for reverse mapping: %d.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Mapping requires a hardware context (a device, or frames on input).\n"

	.no_dead_strip	_hwmap_config_output
.subsections_via_symbols
