	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_netmap_close
_pcap_netmap_close:                     ## @pcap_netmap_close
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r14
	movl	$0, -20(%rbp)
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pcap_netmap_ioctl
	movl	-20(%rbp), %eax
	movq	_IFF_PPROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, -20(%rbp)
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pcap_netmap_ioctl
LBB0_3:
	movq	%r14, %rdi
	callq	_nm_close
	movq	%rbx, %rdi
	callq	_pcap_cleanup_live_common
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_IFF_PPROMISC,4,2               ## @IFF_PPROMISC
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
	.no_dead_strip	_pcap_netmap_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_netmap_close
_pcap_netmap_close:                     ; @pcap_netmap_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	str	wzr, [sp, #12]
	ldp	x8, x20, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pcap_netmap_ioctl
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _IFF_PPROMISC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_PPROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	bic	w8, w8, w9
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pcap_netmap_ioctl
LBB0_3:
	mov	x0, x20
	bl	_nm_close
	mov	x0, x19
	bl	_pcap_cleanup_live_common
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_IFF_PPROMISC,4,2               ; @IFF_PPROMISC
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
	.no_dead_strip	_pcap_netmap_close
.subsections_via_symbols
