	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msnwc_tcp_read_packet
_msnwc_tcp_read_packet:                 ## @msnwc_tcp_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), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl16
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_avio_rl32
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_rl32
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movl	%r13d, (%r14)
	movl	%r13d, 4(%r14)
	movq	$0, 16(%r14)
	testb	$1, %r12b
	je	LBB0_6
## %bb.5:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_6:
	movq	_HEADER_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_HEADER_SIZE,4,2                ## @HEADER_SIZE
	.no_dead_strip	_msnwc_tcp_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msnwc_tcp_read_packet
_msnwc_tcp_read_packet:                 ; @msnwc_tcp_read_packet
	.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
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #1
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #2
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #2
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl16
	mov	x22, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x21, x0
	mov	x0, x20
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl32
	cbz	w21, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_avio_skip
	stp	w23, w23, [x19]
	str	xzr, [x19, #16]
	tbz	w22, #0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_4:
Lloh3:
	adrp	x8, _HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w0, w8, w21
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_HEADER_SIZE,4,2                ; @HEADER_SIZE
	.no_dead_strip	_msnwc_tcp_read_packet
.subsections_via_symbols
