	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function failing_write_packet
_failing_write_packet:                  ## @failing_write_packet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rcx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	movq	8(%rsi), %rbx
	movl	16(%rbx), %eax
	testl	%eax, %eax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	decl	%eax
	movl	%eax, 16(%rbx)
	movl	(%rbx), %r15d
	cmpq	$0, 8(%rbx)
	jg	LBB0_6
	jmp	LBB0_9
LBB0_1:
	incl	16(%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_3:
	movl	$0, (%rbx)
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	jle	LBB0_9
LBB0_6:
	xorl	%r12d, %r12d
	movq	_SLEEPTIME_10_MS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ff_check_interrupt
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_av_usleep
	addq	(%r14), %r12
	cmpq	8(%rbx), %r12
	jl	LBB0_7
LBB0_9:
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rbx)
	movl	%eax, (%rcx,%rdx,4)
	callq	_av_packet_unref
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_11:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.comm	_SLEEPTIME_10_MS,8,3            ## @SLEEPTIME_10_MS
	.no_dead_strip	_failing_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function failing_write_packet
_failing_write_packet:                  ; @failing_write_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x22, [x0, #8]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x1, #8]
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_4
; %bb.2:
	sub	w8, w8, #1
	str	w8, [x23, #16]
	ldr	w20, [x23]
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	b	LBB0_12
LBB0_4:
	mov	w20, #0
	str	wzr, [x23]
LBB0_5:
	ldr	x8, [x23, #8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x24, #0
Lloh0:
	adrp	x25, _SLEEPTIME_10_MS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SLEEPTIME_10_MS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ff_check_interrupt
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x25]
	bl	_av_usleep
	ldr	x8, [x25]
	ldr	x9, [x23, #8]
	add	x24, x8, x24
	cmp	x24, x9
	b.lt	LBB0_7
LBB0_9:
	cbnz	w20, LBB0_12
; %bb.10:
	ldr	w8, [x19]
	ldr	x9, [x22, #8]
	ldrsw	x10, [x22]
	add	w11, w10, #1
	str	w11, [x22]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x19
	bl	_av_packet_unref
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.comm	_SLEEPTIME_10_MS,8,3            ; @SLEEPTIME_10_MS
	.no_dead_strip	_failing_write_packet
.subsections_via_symbols
