	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_io_move                 ## -- Begin function avpriv_io_move
	.p2align	4, 0x90
_avpriv_io_move:                        ## @avpriv_io_move
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	_AVIO_FLAG_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_ffurl_alloc
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ffurl_alloc
	movq	-32(%rbp), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%rdi), %rax
	movq	-24(%rbp), %rsi
	cmpq	(%rsi), %rax
	je	LBB0_5
LBB0_7:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	*%rax
LBB0_8:
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_ffurl_close
	movq	-24(%rbp), %rdi
LBB0_9:
	callq	_ffurl_close
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_READ_WRITE,4,2       ## @AVIO_FLAG_READ_WRITE
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_io_move                 ; -- Begin function avpriv_io_move
	.p2align	2
_avpriv_io_move:                        ; @avpriv_io_move
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x1, x0
Lloh0:
	adrp	x8, _AVIO_FLAG_READ_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVIO_FLAG_READ_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x3, #0
	bl	_ffurl_alloc
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x20
	mov	x3, #0
	bl	_ffurl_alloc
	mov	x19, x0
	ldr	x0, [sp, #8]
	tbnz	w19, #31, LBB0_8
; %bb.2:
	ldr	x8, [x0]
	ldr	x1, [sp]
	ldr	x9, [x1]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_7
LBB0_4:
	mov	x19, x0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.6:
	blr	x8
LBB0_7:
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_ffurl_close
	ldr	x0, [sp]
LBB0_8:
	bl	_ffurl_close
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_READ_WRITE,4,2       ; @AVIO_FLAG_READ_WRITE
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
