	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_input
_convert_input:                         ## @convert_input
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	24(%rdi), %rbx
	xorl	%edi, %edi
	cmpl	$1025, %esi                     ## imm = 0x401
	setb	%dil
	callq	_av_assert0
	cmpl	%r14d, (%r15)
	jge	LBB0_2
## %bb.1:
	movl	20(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_2:
	movl	4(%r15), %eax
	cmpl	$16, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_8
## %bb.3:
	cmpl	$20, %eax
	je	LBB0_11
## %bb.4:
	cmpl	$24, %eax
	jne	LBB0_15
## %bb.5:
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.6:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB24
	xorl	%r12d, %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_AV_WB24
	addq	$12, %rbx
	addq	$12, %r13
	decl	%r14d
	jne	LBB0_7
	jmp	LBB0_16
LBB0_8:
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.9:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB16
	xorl	%r12d, %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_AV_WB16
	addq	$8, %rbx
	addq	$8, %r13
	decl	%r14d
	jne	LBB0_10
	jmp	LBB0_16
LBB0_11:
	movq	8(%r15), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_init_put_bits
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.12:
	leaq	-48(%rbp), %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_AV_RB24
	sarl	$4, %eax
	xorl	%r12d, %eax
	movq	%r13, %rdi
	movl	$20, %esi
	movl	%eax, %edx
	callq	_put_bits
	addq	$12, %rbx
	decl	%r14d
	jne	LBB0_13
LBB0_14:
	leaq	-48(%rbp), %rdi
	callq	_flush_put_bits
	jmp	LBB0_16
LBB0_15:
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_16:
	leaq	16(%r15), %rdi
	movq	8(%r15), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	4(%r15), %edx
	callq	_init_get_bits
LBB0_17:
	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	"Packet too short\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_convert_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_input
_convert_input:                         ; @convert_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #24]
	ldr	x23, [x0, #8]
	cmp	w1, #1025
	cset	w0, lo
	bl	_av_assert0
	ldr	w8, [x20]
	cmp	w8, w19
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x20, #20]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_2:
	ldr	w8, [x20, #4]
	cmp	w8, #16
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #20
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #24
	b.ne	LBB0_15
; %bb.5:
	cmp	w19, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x24, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AV_RB24
	eor	w1, w0, w21
	mov	x0, x23
	bl	_AV_WB24
	add	x22, x22, #12
	add	x23, x23, #12
	subs	w24, w24, #1
	b.ne	LBB0_7
	b	LBB0_16
LBB0_8:
	cmp	w19, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x24, x19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AV_RB16
	eor	w1, w0, w21
	mov	x0, x23
	bl	_AV_WB16
	add	x22, x22, #8
	add	x23, x23, #8
	subs	w24, w24, #1
	b.ne	LBB0_10
	b	LBB0_16
LBB0_11:
	ldr	x1, [x20, #8]
	add	x0, sp, #12
	mov	w2, #8
	bl	_init_put_bits
	cmp	w19, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x23, x19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_AV_RB24
	eor	w2, w21, w0, asr #4
	add	x0, sp, #12
	mov	w1, #20
	bl	_put_bits
	add	x22, x22, #12
	subs	w23, w23, #1
	b.ne	LBB0_13
LBB0_14:
	add	x0, sp, #12
	bl	_flush_put_bits
	b	LBB0_16
LBB0_15:
	mov	w0, #0
	bl	_av_assert0
LBB0_16:
	add	x0, x20, #16
	ldr	x1, [x20, #8]
	ldr	w8, [x20, #4]
	mul	w2, w8, w19
	bl	_init_get_bits
LBB0_17:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet too short\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_convert_input
.subsections_via_symbols
