	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function retry_transfer_wrapper
_retry_transfer_wrapper:                ## @retry_transfer_wrapper
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r12
	movl	$5, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_ff_check_interrupt
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	*-80(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r15d
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	js	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$2, %esi
	callq	_FFMAX
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rcx
	addq	%rdx, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_15
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_av_usleep
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%r15d, %eax
	movl	%eax, %r15d
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	subl	%eax, %r14d
	cltq
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %r13
	cmpl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_3
	jmp	LBB0_23
LBB0_5:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_23
LBB0_1:
	xorl	%r15d, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovlel	%r15d, %eax
	movl	%eax, %r15d
	jmp	LBB0_23
LBB0_24:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_retry_transfer_wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function retry_transfer_wrapper
_retry_transfer_wrapper:                ; @retry_transfer_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	w3, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x24, x0
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	mov	w19, #0
	add	x25, x0, #16
	mov	w26, #5
Lloh0:
	adrp	x22, _EINTR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
	mov	x28, x2
	mov	x23, x1
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_ff_check_interrupt
	cbnz	x0, LBB0_18
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x28
	blr	x20
	mov	x27, x0
	ldr	w0, [x22]
	bl	_AVERROR
	cmp	w27, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w27, w0
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w26, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #0
	sub	w26, w26, #1
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w27, w8
	b.eq	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w27, #31, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	w27, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	mov	w1, #2
	bl	_FFMAX
	mov	x26, x0
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_av_gettime_relative
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	add	x8, x8, x9
	cmp	x0, x8
	b.le	LBB0_16
	b	LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	bl	_av_usleep
	mov	w27, #0
	mov	w26, #0
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w27, w19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	sub	w28, w2, w19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	add	x23, x1, w19, sxtw #2
	cmp	w19, w21
	b.lt	LBB0_2
	b	LBB0_20
LBB0_18:
Lloh11:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	b	LBB0_20
LBB0_19:
	mov	w19, #0
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	mov	x19, x27
	b	LBB0_20
LBB0_22:
	cmp	w19, #0
	csel	w19, w19, w27, gt
	b	LBB0_20
LBB0_23:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_retry_transfer_wrapper
.subsections_via_symbols
