	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudaupload_config_output
_cudaupload_config_output:              ## @cudaupload_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, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_av_buffer_unref
	movl	8(%rbx), %edi
	callq	_av_hwframe_ctx_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rcx
	movq	_AV_PIX_FMT_CUDA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 12(%rcx)
	movl	12(%r15), %edx
	movl	%edx, 8(%rcx)
	movl	8(%r15), %edx
	movl	%edx, 4(%rcx)
	movl	4(%r15), %edx
	movl	%edx, (%rcx)
	movq	%rax, %rdi
	callq	_av_hwframe_ctx_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_av_buffer_ref
	movl	%eax, %ecx
	movl	%eax, (%r14)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_CUDA,4,2            ## @AV_PIX_FMT_CUDA
	.no_dead_strip	_cudaupload_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudaupload_config_output
_cudaupload_config_output:              ; @cudaupload_config_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
	ldp	x20, x9, [x8]
	ldr	x21, [x9]
	mov	x0, x20
	bl	_av_buffer_unref
	ldr	w0, [x20, #8]
	bl	_av_hwframe_ctx_alloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_PIX_FMT_CUDA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_CUDA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x21, #12]
	stp	w10, w9, [x8, #8]
	ldur	d0, [x21, #4]
	str	d0, [x8]
	bl	_av_hwframe_ctx_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [x20]
	bl	_av_buffer_ref
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_CUDA,4,2            ; @AV_PIX_FMT_CUDA
	.no_dead_strip	_cudaupload_config_output
.subsections_via_symbols
