	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_cleanup_linux
_pcap_cleanup_linux:                    ## @pcap_cleanup_linux
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_MUST_CLEAR_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	8(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	8(%r13), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	-56(%rbp), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.5:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, -56(%rbp)
	movl	8(%r13), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %r14
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_8:
	movq	%r13, %rdi
	callq	_pcap_remove_from_pcaps_to_close
LBB0_9:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_free
	movq	$0, 16(%rbx)
LBB0_11:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
	movq	$0, 8(%rbx)
LBB0_13:
	movq	%r13, %rdi
	callq	_pcap_cleanup_live_common
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUST_CLEAR_PROMISC,4,2         ## @MUST_CLEAR_PROMISC
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't restore interface %s flags (SIOCGIFFLAGS failed: %s).\nPlease adjust manually.\nHint: This can't happen with Linux >= 2.2.0.\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
L_.str.1:                               ## @.str.1
	.asciz	"Can't restore interface %s flags (SIOCSIFFLAGS failed: %s).\nPlease adjust manually.\nHint: This can't happen with Linux >= 2.2.0.\n"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_MUST_CLEAR_RFMON,4,2           ## @MUST_CLEAR_RFMON
	.comm	_MUST_DELETE_MONIF,4,2          ## @MUST_DELETE_MONIF
	.comm	_SIOCSIWMODE,4,2                ## @SIOCSIWMODE
	.no_dead_strip	_pcap_cleanup_linux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_cleanup_linux
_pcap_cleanup_linux:                    ; @pcap_cleanup_linux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, _MUST_CLEAR_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MUST_CLEAR_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	x1, [x23, #8]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [sp]
Lloh6:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	bic	w8, w8, w9
	str	w8, [sp]
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x20, l_.str@PAGE
Lloh15:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	ldr	x22, [x23, #8]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_fprintf
LBB0_8:
	mov	x0, x19
	bl	_pcap_remove_from_pcaps_to_close
LBB0_9:
	ldr	x0, [x23, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_free
	str	xzr, [x23, #16]
LBB0_11:
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_free
	str	xzr, [x23, #8]
LBB0_13:
	mov	x0, x19
	bl	_pcap_cleanup_live_common
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MUST_CLEAR_PROMISC,4,2         ; @MUST_CLEAR_PROMISC
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't restore interface %s flags (SIOCGIFFLAGS failed: %s).\nPlease adjust manually.\nHint: This can't happen with Linux >= 2.2.0.\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
l_.str.1:                               ; @.str.1
	.asciz	"Can't restore interface %s flags (SIOCSIFFLAGS failed: %s).\nPlease adjust manually.\nHint: This can't happen with Linux >= 2.2.0.\n"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_MUST_CLEAR_RFMON,4,2           ; @MUST_CLEAR_RFMON
	.comm	_MUST_DELETE_MONIF,4,2          ; @MUST_DELETE_MONIF
	.comm	_SIOCSIWMODE,4,2                ; @SIOCSIWMODE
	.no_dead_strip	_pcap_cleanup_linux
.subsections_via_symbols
