	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_do_addexit                ## -- Begin function pcap_do_addexit
	.p2align	4, 0x90
_pcap_do_addexit:                       ## @pcap_do_addexit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_did_atexit@GOTPCREL(%rip), %r15
	movl	$1, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	_pcap_close_all@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strlcpy
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_3:
	movl	$1, (%r15)
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_did_atexit,4,2                 ## @did_atexit
	.comm	_pcap_close_all,4,2             ## @pcap_close_all
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atexit failed"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_do_addexit                ; -- Begin function pcap_do_addexit
	.p2align	2
_pcap_do_addexit:                       ; @pcap_do_addexit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _did_atexit@GOTPAGE
Lloh1:
	ldr	x20, [x20, _did_atexit@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x8, _pcap_close_all@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pcap_close_all@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_atexit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
	str	w0, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_did_atexit,4,2                 ; @did_atexit
	.comm	_pcap_close_all,4,2             ; @pcap_close_all
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atexit failed"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
.subsections_via_symbols
