	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmlm4_read_packet
_lmlm4_read_packet:                     ## @lmlm4_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_avio_rb16
	movq	%rbx, %rdi
	callq	_avio_rb16
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_avio_rb32
	cmpl	$129, %r15d
	ja	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	_LMLM4_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_2
## %bb.3:
	cmpl	$9, %r12d
	jb	LBB0_5
## %bb.4:
	movq	_LMLM4_MAX_PACKET_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	ja	LBB0_5
## %bb.7:
	leal	-8(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_av_get_packet
	testl	%eax, %eax
	jle	LBB0_6
## %bb.8:
	movl	%eax, %r13d
	negl	%r12d
	andl	$511, %r12d                     ## imm = 0x1FF
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_skip
	cmpl	$129, %r15d
	je	LBB0_11
## %bb.9:
	cmpl	$128, %r15d
	jne	LBB0_12
## %bb.10:
	movl	$0, (%r14)
	jmp	LBB0_12
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	movl	$1, (%r14)
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LMLM4_INVALID,4,2              ## @LMLM4_INVALID
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid or unsupported frame_type\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_LMLM4_MAX_PACKET_SIZE,4,2      ## @LMLM4_MAX_PACKET_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"packet size %d is invalid\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_lmlm4_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmlm4_read_packet
_lmlm4_read_packet:                     ; @lmlm4_read_packet
	.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	x19, x1
	mov	x22, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_avio_rb16
	mov	x0, x20
	bl	_avio_rb16
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb32
Lloh0:
	adrp	x8, _LMLM4_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LMLM4_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, #129
	ccmp	w21, w8, #4, ls
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x23, x0
Lloh8:
	adrp	x8, _LMLM4_MAX_PACKET_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LMLM4_MAX_PACKET_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #9
	ccmp	w0, w8, #2, hs
	b.ls	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x22
	bl	_av_log
LBB0_5:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_6:
	sub	w2, w23, #8
	mov	x0, x20
	mov	x1, x19
	bl	_av_get_packet
	cmp	w0, #0
	b.le	LBB0_5
; %bb.7:
	mov	x22, x0
	neg	w8, w23
	and	w1, w8, #0x1ff
	mov	x0, x20
	bl	_avio_skip
	cmp	w21, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w21, #128
	b.ne	LBB0_11
; %bb.9:
	str	wzr, [x19]
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LMLM4_INVALID,4,2              ; @LMLM4_INVALID
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid or unsupported frame_type\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_LMLM4_MAX_PACKET_SIZE,4,2      ; @LMLM4_MAX_PACKET_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"packet size %d is invalid\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_lmlm4_read_packet
.subsections_via_symbols
