	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mms_read
_mms_read:                              ## @mms_read
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_ff_mms_read_header
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_ff_mms_read_data
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SC_PKT_ASF_MEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mms_safe_send_recv
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rcx
	movq	24(%rbx), %r8
	cmpq	%r8, %rcx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_ff_mms_read_data
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rdx
LBB0_12:
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_PKT_ASF_MEDIA,4,2           ## @SC_PKT_ASF_MEDIA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incoming pktlen %d is larger than ASF pktsize %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
L_.str.1:                               ## @.str.1
	.asciz	"Read ASF media packet size is zero!\n"

L_.str.2:                               ## @.str.2
	.asciz	"read packet error!\n"

	.no_dead_strip	_mms_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mms_read
_mms_read:                              ; @mms_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x25, _SC_PKT_ASF_MEDIA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SC_PKT_ASF_MEDIA@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.2@PAGE
Lloh3:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh4:
	adrp	x26, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x27, _EIO@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EIO@GOTPAGEOFF]
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_ff_mms_read_header
	cbnz	w0, LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_ff_mms_read_data
	cbz	w0, LBB0_2
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, #0
	bl	_mms_safe_send_recv
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x23, #16]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x2, x24
	bl	_av_log
	ldr	w0, [x27]
	bl	_AVERROR
	cbz	w0, LBB0_2
	b	LBB0_11
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_ff_mms_read_data
	cbnz	w0, LBB0_11
; %bb.9:
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_10:
Lloh12:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_av_log
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_PKT_ASF_MEDIA,4,2           ; @SC_PKT_ASF_MEDIA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incoming pktlen %d is larger than ASF pktsize %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
l_.str.1:                               ; @.str.1
	.asciz	"Read ASF media packet size is zero!\n"

l_.str.2:                               ; @.str.2
	.asciz	"read packet error!\n"

	.no_dead_strip	_mms_read
.subsections_via_symbols
