	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_pktfile_write
_io_pktfile_write:                      ## @io_pktfile_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmpq	%rax, %rdx
	cmovbq	%rdx, %rax
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdi
	movl	$8, %edx
	movl	$1, %esi
	callq	_fwrite
	cmpq	$8, %rax
	jne	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fwrite
	movq	%rax, %r14
	cmpq	-24(%rbp), %rax
	je	LBB0_4
## %bb.3:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_6:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FAILED,8,3  ## @VC_CONTAINER_ERROR_FAILED
	.no_dead_strip	_io_pktfile_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_pktfile_write
_io_pktfile_write:                      ; @io_pktfile_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #-1
	cmp	x2, x8
	csel	x8, x2, x8, lo
	str	x8, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #8
	bl	_fwrite
Lloh0:
	adrp	x21, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
	cmp	x0, #8
	b.ne	LBB0_4
; %bb.1:
	ldr	x2, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_fwrite
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_fflush
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FAILED,8,3  ; @VC_CONTAINER_ERROR_FAILED
	.no_dead_strip	_io_pktfile_write
.subsections_via_symbols
