	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gxf_write_flt_packet
_gxf_write_flt_packet:                  ## @gxf_write_flt_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%rdi), %r13
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	sarq	$38, %rdx
	shrq	$63, %rcx
	leal	(%rdx,%rcx), %r12d
	incl	%r12d
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r12d
	movl	%eax, %ebx
	movq	_PKT_FLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_gxf_write_packet_header
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wl32
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_wl32
	movq	8(%r13), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.2:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r14d
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	%ebx, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_avio_wl32
	addl	%r12d, %ebx
	decl	%r14d
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_8
LBB0_6:
	addl	$-1000, %r14d                   ## imm = 0xFC18
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	incl	%r14d
	jne	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_updatePacketSize               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_FLT,4,2                    ## @PKT_FLT
	.no_dead_strip	_gxf_write_flt_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxf_write_flt_packet
_gxf_write_flt_packet:                  ; @gxf_write_flt_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x19, x23, [x0]
	mov	x0, x19
	bl	_avio_tell
	mov	x20, x0
	ldr	w8, [x23]
	add	w9, w8, #1
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	w22, w9, #1
	sdiv	w21, w8, w22
Lloh0:
	adrp	x8, _PKT_FLT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKT_FLT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gxf_write_packet_header
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wl32
	mov	w8, #0
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_6
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	w1, [x9]
	mov	x0, x19
	bl	_avio_wl32
	subs	w24, w21, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x25, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	asr	w9, w25, #1
	ldr	w1, [x8, w9, sxtw #2]
	mov	x0, x19
	bl	_avio_wl32
	add	w25, w25, w22
	subs	w24, w24, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x8, x21
	cmp	w21, #999
	b.hi	LBB0_8
LBB0_6:
	sub	w21, w8, #1000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wl32
	adds	w21, w21, #1
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_updatePacketSize
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_FLT,4,2                    ; @PKT_FLT
	.no_dead_strip	_gxf_write_flt_packet
.subsections_via_symbols
