	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BpfClose                       ## -- Begin function BpfClose
	.p2align	4, 0x90
_BpfClose:                              ## @BpfClose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_BpfPkt@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
	movq	$0, (%rbx)
LBB0_2:
	movq	_BpfFd@GOTPCREL(%rip), %rbx
	cmpl	$-1, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_RmpMcastAddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_RMP_ADDRLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memmove
	movl	(%rbx), %edi
	movq	_SIOCDELMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	movq	_BIOCPROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ioctl
LBB0_5:
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BpfPkt,8,3                     ## @BpfPkt
	.comm	_BpfFd,4,2                      ## @BpfFd
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_RmpMcastAddr,8,3               ## @RmpMcastAddr
	.comm	_RMP_ADDRLEN,8,3                ## @RMP_ADDRLEN
	.comm	_SIOCDELMULTI,4,2               ## @SIOCDELMULTI
	.comm	_BIOCPROMISC,4,2                ## @BIOCPROMISC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BpfClose                       ; -- Begin function BpfClose
	.p2align	2
_BpfClose:                              ; @BpfClose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _BpfPkt@GOTPAGE
Lloh1:
	ldr	x19, [x19, _BpfPkt@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
	str	xzr, [x19]
LBB0_2:
Lloh2:
	adrp	x19, _BpfFd@GOTPAGE
Lloh3:
	ldr	x19, [x19, _BpfFd@GOTPAGEOFF]
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh7:
	adrp	x8, _RmpMcastAddr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RmpMcastAddr@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
Lloh10:
	adrp	x8, _RMP_ADDRLEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RMP_ADDRLEN@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	bl	_memmove
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _SIOCDELMULTI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIOCDELMULTI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _BIOCPROMISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIOCPROMISC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ioctl
LBB0_5:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BpfPkt,8,3                     ; @BpfPkt
	.comm	_BpfFd,4,2                      ; @BpfFd
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_RmpMcastAddr,8,3               ; @RmpMcastAddr
	.comm	_RMP_ADDRLEN,8,3                ; @RMP_ADDRLEN
	.comm	_SIOCDELMULTI,4,2               ; @SIOCDELMULTI
	.comm	_BIOCPROMISC,4,2                ; @BIOCPROMISC
.subsections_via_symbols
