	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_reset_dump                 ## -- Begin function try_reset_dump
	.p2align	4, 0x90
_try_reset_dump:                        ## @try_reset_dump
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hpcap@GOTPCREL(%rip), %r13
	movl	$-1, %r14d
	cmpq	$0, (%r13)
	je	LBB0_22
## %bb.1:
	movl	%edi, %r12d
	movq	_dpcap@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_flush_buffer
	movq	(%rbx), %rdi
	callq	_fclose
	movq	$0, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	callq	_priv_open_log
	testl	%eax, %eax
	js	LBB0_22
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_fileno
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	__IONBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_15
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_logmsg
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_22
LBB0_7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_logmsg
LBB0_15:
	movq	%r15, %rdi
	callq	_fclose
LBB0_22:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.16:
	movq	%r15, %rdi
	callq	_scan_dump
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%r15, %rdi
	callq	_fclose
	testl	%r12d, %r12d
	jne	LBB0_20
## %bb.18:
	xorl	%eax, %eax
	callq	_priv_move_log
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_22
LBB0_11:
	movq	_snaplen@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_cur_snaplen@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_14
## %bb.12:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movq	(%rbx), %rdi
	callq	_set_snaplen
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
LBB0_14:
	movl	$-1582119980, -56(%rbp)         ## imm = 0xA1B2C3D4
	movq	_PCAP_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_PCAP_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	(%r13), %rax
	movl	8(%rax), %ecx
	movl	%ecx, -68(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-88(%rbp), %rdi
	movl	$40, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	jne	LBB0_15
LBB0_21:
	movq	_dpcap@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_set_suspended
	movq	%r15, %rdi
	callq	_flush_buffer
	jmp	LBB0_22
LBB0_19:
	movl	$1, %r14d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_hpcap,8,3                      ## @hpcap
	.comm	_dpcap,8,3                      ## @dpcap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a+"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Error: %s: %s"

	.comm	_filename,4,2                   ## @filename
	.comm	_errno,4,2                      ## @errno
	.comm	__IONBF,4,2                     ## @_IONBF
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set output buffers"

	.comm	_snaplen,8,3                    ## @snaplen
	.comm	_cur_snaplen,8,3                ## @cur_snaplen
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	"Using snaplen %d"

	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Failed, using old settings"

	.comm	_PCAP_VERSION_MAJOR,4,2         ## @PCAP_VERSION_MAJOR
	.comm	_PCAP_VERSION_MINOR,4,2         ## @PCAP_VERSION_MINOR
L_.str.5:                               ## @.str.5
	.asciz	"Invalid/incompatible log file, move it away"

	.comm	_TCPDUMP_MAGIC,4,2              ## @TCPDUMP_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_reset_dump                 ; -- Begin function try_reset_dump
	.p2align	2
_try_reset_dump:                        ; @try_reset_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x23, _hpcap@GOTPAGE
Lloh1:
	ldr	x23, [x23, _hpcap@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x22, _dpcap@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dpcap@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_flush_buffer
	ldr	x0, [x22]
	bl	_fclose
	str	xzr, [x22]
LBB0_3:
	bl	_priv_open_log
	tbnz	w0, #31, LBB0_12
; %bb.4:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_8
; %bb.5:
	mov	x19, x0
	bl	_fileno
	add	x1, sp, #16
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.6:
Lloh6:
	adrp	x8, __IONBF@GOTPAGE
Lloh7:
	ldr	x8, [x8, __IONBF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
	cbz	x0, LBB0_14
; %bb.7:
Lloh9:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x8, _filename@GOTPAGE
Lloh18:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh19:
	adrp	x9, _errno@GOTPAGE
Lloh20:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
Lloh22:
	ldr	w20, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_logmsg
	mov	x0, x21
	bl	_close
	b	LBB0_12
LBB0_9:
Lloh25:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x8, _filename@GOTPAGE
Lloh29:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh30:
	adrp	x9, _errno@GOTPAGE
Lloh31:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x9]
Lloh33:
	ldr	w21, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_10:
	bl	_logmsg
LBB0_11:
	mov	x0, x19
	bl	_fclose
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_19
; %bb.15:
	mov	x0, x19
	bl	_scan_dump
	cbz	x0, LBB0_23
; %bb.16:
	mov	x0, x19
	bl	_fclose
	cbnz	w20, LBB0_18
; %bb.17:
	bl	_priv_move_log
	cbz	x0, LBB0_24
LBB0_18:
Lloh36:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_logmsg
	b	LBB0_12
LBB0_19:
Lloh41:
	adrp	x20, _snaplen@GOTPAGE
Lloh42:
	ldr	x20, [x20, _snaplen@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh43:
	adrp	x9, _cur_snaplen@GOTPAGE
Lloh44:
	ldr	x9, [x9, _cur_snaplen@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.20:
Lloh46:
	adrp	x9, _LOG_NOTICE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _LOG_NOTICE@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_logmsg
	ldr	x0, [x20]
	bl	_set_snaplen
	cbz	x0, LBB0_22
; %bb.21:
Lloh51:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh52:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_logmsg
LBB0_22:
	mov	w8, #50132
	movk	w8, #41394, lsl #16
	str	w8, [sp, #56]
Lloh56:
	adrp	x8, _PCAP_VERSION_MAJOR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _PCAP_VERSION_MAJOR@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _PCAP_VERSION_MINOR@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PCAP_VERSION_MINOR@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	ldr	x8, [x23]
	ldur	d0, [x8, #4]
	str	d0, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x0, sp, #24
	mov	w1, #40
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	cmp	w0, #1
	b.ne	LBB0_11
LBB0_23:
	str	x19, [x22]
	mov	w0, #0
	bl	_set_suspended
	mov	x0, x19
	bl	_flush_buffer
	mov	w0, #0
	b	LBB0_13
LBB0_24:
	mov	w0, #1
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh22
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh33
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_hpcap,8,3                      ; @hpcap
	.comm	_dpcap,8,3                      ; @dpcap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a+"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Error: %s: %s"

	.comm	_filename,4,2                   ; @filename
	.comm	_errno,4,2                      ; @errno
	.comm	__IONBF,4,2                     ; @_IONBF
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set output buffers"

	.comm	_snaplen,8,3                    ; @snaplen
	.comm	_cur_snaplen,8,3                ; @cur_snaplen
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	"Using snaplen %d"

	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Failed, using old settings"

	.comm	_PCAP_VERSION_MAJOR,4,2         ; @PCAP_VERSION_MAJOR
	.comm	_PCAP_VERSION_MINOR,4,2         ; @PCAP_VERSION_MINOR
l_.str.5:                               ; @.str.5
	.asciz	"Invalid/incompatible log file, move it away"

	.comm	_TCPDUMP_MAGIC,4,2              ; @TCPDUMP_MAGIC
.subsections_via_symbols
