	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iec61883_callback
_iec61883_callback:                     ## @iec61883_callback
	.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	(%rcx), %rax
	cmpq	8(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	$24, %edi
	callq	_av_mallocz
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	movslq	%r13d, %r13
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_av_malloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r13d, (%r14)
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addq	16(%r14), %r13
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.6:
	movq	24(%rbx), %rax
	movq	%r14, 8(%rax)
	jmp	LBB0_8
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_av_log
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_av_free
	jmp	LBB0_9
LBB0_7:
	movq	%r14, 32(%rbx)
LBB0_8:
	movq	%r14, 24(%rbx)
	incq	(%rbx)
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DV packet queue overrun, dropping.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_iec61883_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iec61883_callback
_iec61883_callback:                     ; @iec61883_callback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x8, x9, [x3]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	mov	w0, #24
	bl	_av_mallocz
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	sxtw	x23, w21
Lloh0:
	adrp	x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x23
	bl	_av_malloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_7
; %bb.3:
	str	w21, [x20]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20, #16]
	add	x0, x8, x23
	ldr	x2, [x24]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x8, [x19, #24]
	str	x20, [x8, #8]
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_av_free
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	str	x20, [x19, #32]
LBB0_9:
	mov	w0, #0
	str	x20, [x19, #24]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DV packet queue overrun, dropping.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_iec61883_callback
.subsections_via_symbols
