	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwupload_config_output
_hwupload_config_output:                ## @hwupload_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movq	8(%r13), %r12
	movq	16(%r13), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_av_buffer_unref
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_av_buffer_ref
	movq	%rax, 8(%r14)
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_4
LBB0_6:
	movl	16(%r12), %edi
	callq	_av_hwframe_ctx_alloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	(%r14), %rcx
	movq	8(%r12), %rax
	movq	%rcx, (%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movl	20(%rbx), %ecx
	movl	%ecx, 28(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 24(%rax)
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.8:
	addq	$2, %rcx
	movq	%rcx, 16(%rax)
LBB0_9:
	movq	(%r12), %rdi
	callq	_av_hwframe_ctx_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	(%r12), %rdi
	callq	_av_buffer_ref
	movq	%rax, 8(%r14)
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_av_buffer_unref
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No input hwframe context.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Surface format is %s.\n"

	.no_dead_strip	_hwupload_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwupload_config_output
_hwupload_config_output:                ; @hwupload_config_output
	.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	x22, [x0, #24]
	ldp	x19, x8, [x22, #8]
	ldr	x23, [x8]
	mov	x0, x19
	bl	_av_buffer_unref
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_10
; %bb.2:
	bl	_av_buffer_ref
	str	x0, [x20, #8]
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_av_hwframe_ctx_alloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x0]
	str	x8, [x19, #8]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x0, [x23]
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_av_log
	ldr	x9, [x20]
	ldr	x8, [x19, #8]
	ldr	x10, [x23]
	stp	x9, x10, [x8]
	ldr	d0, [x23, #16]
	str	d0, [x8, #24]
	ldr	x9, [x22]
	tbnz	x9, #63, LBB0_6
; %bb.5:
	add	x9, x9, #2
	str	x9, [x8, #16]
LBB0_6:
	ldr	x0, [x19]
	bl	_av_hwframe_ctx_init
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	x0, [x19]
	bl	_av_buffer_ref
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
LBB0_8:
	mov	w21, #0
	b	LBB0_14
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	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_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_13:
	mov	x21, x0
	mov	x0, x19
	bl	_av_buffer_unref
LBB0_14:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No input hwframe context.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Surface format is %s.\n"

	.no_dead_strip	_hwupload_config_output
.subsections_via_symbols
