	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sf_write_header
_sf_write_header:                       ## @sf_write_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movl	%ecx, %eax
	movq	%rsi, %rcx
	movq	(%rdi), %rsi
	movq	_PCAP_TSTAMP_PRECISION_NANO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_1
## %bb.2:
	movq	_NSEC_TCPDUMP_MAGIC@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_TCPDUMP_MAGIC@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %esi
	movl	%esi, -8(%rbp)
	movq	_PCAP_VERSION_MAJOR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -12(%rbp)
	movq	_PCAP_VERSION_MINOR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -16(%rbp)
	movl	%eax, -40(%rbp)
	movl	%r8d, -36(%rbp)
	movq	$0, -24(%rbp)
	movl	%edx, -32(%rbp)
	leaq	-40(%rbp), %rdi
	movl	$40, %esi
	movl	$1, %edx
	callq	_fwrite
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	setne	%cl
	negl	%ecx
	movl	%ecx, %eax
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_TSTAMP_PRECISION_NANO,8,3 ## @PCAP_TSTAMP_PRECISION_NANO
	.comm	_NSEC_TCPDUMP_MAGIC,4,2         ## @NSEC_TCPDUMP_MAGIC
	.comm	_TCPDUMP_MAGIC,4,2              ## @TCPDUMP_MAGIC
	.comm	_PCAP_VERSION_MAJOR,4,2         ## @PCAP_VERSION_MAJOR
	.comm	_PCAP_VERSION_MINOR,4,2         ## @PCAP_VERSION_MINOR
	.no_dead_strip	_sf_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sf_write_header
_sf_write_header:                       ; @sf_write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _NSEC_TCPDUMP_MAGIC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NSEC_TCPDUMP_MAGIC@GOTPAGEOFF]
Lloh5:
	adrp	x12, _TCPDUMP_MAGIC@GOTPAGE
Lloh6:
	ldr	x12, [x12, _TCPDUMP_MAGIC@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	str	w9, [sp, #40]
Lloh7:
	adrp	x9, _PCAP_VERSION_MAJOR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PCAP_VERSION_MAJOR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _PCAP_VERSION_MINOR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PCAP_VERSION_MINOR@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #32]
	stp	w3, w4, [sp, #8]
	str	xzr, [sp, #24]
	str	w2, [sp, #16]
	add	x0, sp, #8
	mov	w1, #40
	mov	w2, #1
	mov	x3, x8
	bl	_fwrite
	cmp	w0, #1
	csetm	w0, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_TSTAMP_PRECISION_NANO,8,3 ; @PCAP_TSTAMP_PRECISION_NANO
	.comm	_NSEC_TCPDUMP_MAGIC,4,2         ; @NSEC_TCPDUMP_MAGIC
	.comm	_TCPDUMP_MAGIC,4,2              ; @TCPDUMP_MAGIC
	.comm	_PCAP_VERSION_MAJOR,4,2         ; @PCAP_VERSION_MAJOR
	.comm	_PCAP_VERSION_MINOR,4,2         ; @PCAP_VERSION_MINOR
	.no_dead_strip	_sf_write_header
.subsections_via_symbols
