	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	imull	(%rdi), %ebx
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	movl	8(%rcx), %r13d
	sarl	$3, %eax
	addl	$8, %eax
	cmpl	%eax, %r13d
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r15
	movslq	%r13d, %rbx
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	%rdi, %r14
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.3:
	movq	%rax, %r12
	leaq	(%rax,%rbx,8), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$1, (%rbx)
	cmpl	$9, %r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_12
## %bb.6:
	movq	_ff_reverse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-9(%r13), %rsi
	movl	%r13d, %ecx
	andl	$3, %ecx
	movl	$8, %edx
	cmpq	$3, %rsi
	jb	LBB0_9
## %bb.7:
	leaq	-8(%r13), %rsi
	andq	$-4, %rsi
	negq	%rsi
	movl	$8, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rdx,8), %rdi
	movq	(%rax,%rdi,8), %rdi
	movq	%rdi, (%r12,%rdx,8)
	movq	8(%r15,%rdx,8), %rdi
	movq	(%rax,%rdi,8), %rdi
	movq	%rdi, 8(%r12,%rdx,8)
	movq	16(%r15,%rdx,8), %rdi
	movq	(%rax,%rdi,8), %rdi
	movq	%rdi, 16(%r12,%rdx,8)
	movq	24(%r15,%rdx,8), %rdi
	movq	(%rax,%rdi,8), %rdi
	movq	%rdi, 24(%r12,%rdx,8)
	leaq	(%rsi,%rdx), %rdi
	addq	$4, %rdi
	addq	$4, %rdx
	cmpq	$8, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	leaq	(%r12,%rdx,8), %rsi
	leaq	(%r15,%rdx,8), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movq	(%rax,%rbx,8), %rbx
	movq	%rbx, (%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_11
LBB0_12:
	leaq	4(%r14), %rdi
	movq	%r12, %rsi
	addq	$64, %rsi
	leal	-8(%r13), %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	16(%r15), %rdx
	shrq	$4, %rdx
	cmpq	$6, %rdx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_16
## %bb.15:
	movl	$2, (%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_29:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_av_free
	movl	%r14d, %eax
	jmp	LBB0_28
LBB0_13:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_28
LBB0_16:
	movl	$8, %eax
	subl	%edx, %eax
	movl	%eax, (%r14)
	cmpl	$5, %eax
	jl	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_avpriv_request_sample
	movl	$4, (%r14)
	jmp	LBB0_20
LBB0_18:
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_avpriv_request_sample
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, (%r14)
LBB0_20:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jle	LBB0_27
## %bb.21:
	movq	8(%r10), %rax
	movq	16(%rax), %rdi
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	movl	4(%rbx), %eax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	16(%r10), %rdx
	movslq	(%rdx), %rbx
	addq	%rbx, %r8
	movslq	4(%rdx), %rbx
	addq	%rbx, %rcx
	movslq	8(%rdx), %rdx
	addq	%rdx, %rdi
	incl	%r11d
	cmpl	%r9d, %r11d
	jge	LBB0_27
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	cmpl	$2, %eax
	jl	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%r11d, -60(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_wnv1_get_code
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movb	%al, (%r12,%rbx,2)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_wnv1_get_code
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%rbx)
	movzbl	%al, %r14d
	movzbl	(%r12,%rbx,2), %esi
	movq	%r13, %rdi
	callq	_wnv1_get_code
	movb	%al, 1(%r12,%rbx,2)
	movzbl	%al, %r12d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_wnv1_get_code
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	%al, (%rdi,%rbx)
	movzbl	%al, %r15d
	incq	%rbx
	movl	4(%rdx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%rdx), %r9d
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	jmp	LBB0_26
LBB0_27:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	movq	-104(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet size %d is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate temporary buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ff_reverse,8,3                 ## @ff_reverse
L_.str.2:                               ## @.str.2
	.asciz	"Unknown WNV1 frame header value %i"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x0
	ldr	w24, [x3, #8]
	ldp	w8, w9, [x0]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	add	w8, w8, #8
	cmp	w24, w8
	b.ge	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x8, x24
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x26, x2
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x23, [x20, #8]
	ldr	x21, [x3]
	mov	x8, x24
	sxtw	x19, w8
Lloh8:
	adrp	x22, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x19
	bl	_av_malloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x27, x0
	add	x0, x0, x19, lsl #3
	ldr	x2, [x22]
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
	cmp	w24, #9
	b.lt	LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _ff_reverse@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ff_reverse@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x9, x27, #64
	add	x10, x21, #64
	sub	x11, x24, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	ldr	x12, [x8, x12, lsl #3]
	str	x12, [x9], #8
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	add	x0, x23, #4
	add	x1, x27, #64
	sub	w2, w24, #8
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	x8, [x21, #16]
	lsr	x2, x8, #4
	cmp	x2, #6
	stp	x26, x24, [sp, #16]             ; 16-byte Folded Spill
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_14
; %bb.10:
	mov	w8, #2
	b	LBB0_18
LBB0_11:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
LBB0_12:
	mov	x25, x0
	mov	x0, x27
	bl	_av_free
	mov	x0, x25
	b	LBB0_2
LBB0_13:
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_2
LBB0_14:
	mov	w8, #8
	sub	w8, w8, w2
	str	w8, [x23]
	cmp	w8, #5
	b.lt	LBB0_16
; %bb.15:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
	mov	w8, #4
	b	LBB0_18
LBB0_16:
	cmp	w8, #0
	b.gt	LBB0_19
; %bb.17:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
	mov	w8, #1
LBB0_18:
	str	w8, [x23]
LBB0_19:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.20:
	mov	w25, #0
	mov	w26, #0
	mov	w27, #0
	mov	w28, #0
	ldr	x8, [x19, #8]
	ldp	x24, x21, [x8, #8]
	ldr	x22, [x8]
	ldr	w8, [x20, #4]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x10, [x19, #16]
	ldpsw	x11, x12, [x10]
	add	x22, x22, x11
	add	x24, x24, x12
	ldrsw	x10, [x10, #8]
	add	x21, x21, x10
	add	w28, w28, #1
	cmp	w28, w9
	b.ge	LBB0_26
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x19, #0
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x27
	bl	_wnv1_get_code
	strb	w0, [x22]
	mov	x0, x23
	mov	x1, x26
	bl	_wnv1_get_code
	mov	x26, x0
	strb	w0, [x24, x19]
	ldrb	w1, [x22]
	mov	x0, x23
	bl	_wnv1_get_code
	mov	x27, x0
	strb	w0, [x22, #1]
	mov	x0, x23
	mov	x1, x25
	bl	_wnv1_get_code
	mov	x25, x0
	strb	w0, [x21, x19]
	add	x19, x19, #1
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x22, x22, #2
	cmp	x19, w9, sxtw
	b.lt	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w9, [x20]
	ldp	x19, x22, [sp, #32]             ; 16-byte Folded Reload
	b	LBB0_21
LBB0_26:
	mov	w8, #1
	ldp	x0, x9, [sp, #8]                ; 16-byte Folded Reload
	str	w8, [x9]
	bl	_av_free
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet size %d is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate temporary buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ff_reverse,8,3                 ; @ff_reverse
l_.str.2:                               ; @.str.2
	.asciz	"Unknown WNV1 frame header value %i"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
