	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function film_write_packet_to_header
_film_write_packet_to_header:           ## @film_write_packet_to_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	cmpq	$0, 24(%rsi)
	je	LBB0_2
## %bb.1:
	movl	$1, %r14d
	movl	$-1, %r12d
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %eax
	movl	4(%rbx), %r14d
	movl	%eax, %r12d
	orl	$-2147483648, %r12d             ## imm = 0x80000000
	cmpl	$0, 16(%rbx)
	cmovnel	%eax, %r12d
LBB0_3:
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_avio_wb32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_film_write_packet_to_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function film_write_packet_to_header
_film_write_packet_to_header:           ; @film_write_packet_to_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w20, #1
	mov	w22, #-1
	b	LBB0_3
LBB0_2:
	ldp	w8, w20, [x21]
	ldr	w9, [x21, #16]
	orr	w10, w8, #0x80000000
	cmp	w9, #0
	csel	w22, w10, w8, eq
LBB0_3:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_avio_wb32
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x20
	bl	_avio_wb32
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_film_write_packet_to_header
.subsections_via_symbols
