	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_payload_parsing_info
_put_payload_parsing_info:              ## @put_payload_parsing_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r15
	movq	8(%rdi), %r13
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ASF_PPI_LENGTH_TYPE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PACKET_HEADER_MIN_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	cmpq	$1, (%r13)
	adcl	$-1, %r14d
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_av_assert0
	movq	_ASF_PACKET_ERROR_CORRECTION_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	_ASF_PACKET_ERROR_CORRECTION_DATA_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_2
LBB0_3:
	xorl	%r12d, %r12d
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.4:
	movq	_ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	orl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.7:
	cmpl	$255, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	ja	LBB0_9
## %bb.8:
	movq	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %r12d
LBB0_11:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_w8
	movq	_ASF_PPI_PROPERTY_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	leal	-2(%r14), %esi
	movq	%r15, %rdi
	callq	_avio_wl16
LBB0_13:
	movq	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	decl	%r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_avio_w8
LBB0_15:
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_wl32
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_avio_wl16
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.16:
	movq	_ASF_PAYLOAD_FLAGS@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_avio_w8
LBB0_17:
	movq	%r15, %rdi
	callq	_avio_tell
	subl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_PPI_LENGTH_TYPE_FLAGS,4,2  ## @ASF_PPI_LENGTH_TYPE_FLAGS
	.comm	_PACKET_HEADER_MIN_SIZE,8,3     ## @PACKET_HEADER_MIN_SIZE
	.comm	_ASF_PACKET_ERROR_CORRECTION_FLAGS,4,2 ## @ASF_PACKET_ERROR_CORRECTION_FLAGS
	.comm	_ASF_PACKET_ERROR_CORRECTION_DATA_SIZE,4,2 ## @ASF_PACKET_ERROR_CORRECTION_DATA_SIZE
	.comm	_ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT,4,2 ## @ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT
	.comm	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE,4,2 ## @ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE
	.comm	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD,4,2 ## @ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD
	.comm	_ASF_PPI_PROPERTY_FLAGS,4,2     ## @ASF_PPI_PROPERTY_FLAGS
	.comm	_ASF_PAYLOAD_FLAGS,4,2          ## @ASF_PAYLOAD_FLAGS
	.no_dead_strip	_put_payload_parsing_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_payload_parsing_info
_put_payload_parsing_info:              ; @put_payload_parsing_info
	.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	x24, x4
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	ldp	x19, x26, [x0]
	mov	x0, x19
	bl	_avio_tell
	mov	x21, x0
Lloh0:
	adrp	x8, _ASF_PPI_LENGTH_TYPE_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASF_PPI_LENGTH_TYPE_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _PACKET_HEADER_MIN_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_HEADER_MIN_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x26]
	cmp	x9, #0
	cset	w9, ne
	sub	w8, w24, w8
	sub	w27, w8, w9
	mvn	w8, w27
	lsr	w0, w8, #31
	bl	_av_assert0
Lloh6:
	adrp	x8, _ASF_PACKET_ERROR_CORRECTION_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASF_PACKET_ERROR_CORRECTION_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
Lloh9:
	adrp	x20, _ASF_PACKET_ERROR_CORRECTION_DATA_SIZE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ASF_PACKET_ERROR_CORRECTION_DATA_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	add	w24, w24, #1
	ldr	w8, [x20]
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x26]
Lloh11:
	adrp	x9, _ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w25, w8, w25
Lloh14:
	adrp	x20, _ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD@GOTPAGEOFF]
Lloh16:
	adrp	x28, _ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE@GOTPAGEOFF]
	subs	w24, w27, #1
	b.lt	LBB0_8
; %bb.4:
	cmp	w27, #255
	b.hi	LBB0_6
; %bb.5:
	ldr	w8, [x28]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
LBB0_7:
	orr	w25, w8, w25
LBB0_8:
	mov	x0, x19
	mov	x1, x25
	bl	_avio_w8
Lloh18:
	adrp	x8, _ASF_PPI_PROPERTY_FLAGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ASF_PPI_PROPERTY_FLAGS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_w8
	ldr	w8, [x20]
	tst	w8, w25
	b.eq	LBB0_10
; %bb.9:
	sub	w1, w27, #2
	mov	x0, x19
	bl	_avio_wl16
LBB0_10:
	ldr	w8, [x28]
	tst	w8, w25
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x24
	bl	_avio_w8
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wl16
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.13:
Lloh21:
	adrp	x8, _ASF_PAYLOAD_FLAGS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ASF_PAYLOAD_FLAGS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w1, w8, w9
	mov	x0, x19
	bl	_avio_w8
LBB0_14:
	mov	x0, x19
	bl	_avio_tell
	sub	w0, w0, w21
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_PPI_LENGTH_TYPE_FLAGS,4,2  ; @ASF_PPI_LENGTH_TYPE_FLAGS
	.comm	_PACKET_HEADER_MIN_SIZE,8,3     ; @PACKET_HEADER_MIN_SIZE
	.comm	_ASF_PACKET_ERROR_CORRECTION_FLAGS,4,2 ; @ASF_PACKET_ERROR_CORRECTION_FLAGS
	.comm	_ASF_PACKET_ERROR_CORRECTION_DATA_SIZE,4,2 ; @ASF_PACKET_ERROR_CORRECTION_DATA_SIZE
	.comm	_ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT,4,2 ; @ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT
	.comm	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE,4,2 ; @ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_BYTE
	.comm	_ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD,4,2 ; @ASF_PPI_FLAG_PADDING_LENGTH_FIELD_IS_WORD
	.comm	_ASF_PPI_PROPERTY_FLAGS,4,2     ; @ASF_PPI_PROPERTY_FLAGS
	.comm	_ASF_PAYLOAD_FLAGS,4,2          ; @ASF_PAYLOAD_FLAGS
	.no_dead_strip	_put_payload_parsing_info
.subsections_via_symbols
