	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2_packet_deinit               ## -- Begin function l2_packet_deinit
	.p2align	4, 0x90
_l2_packet_deinit:                      ## @l2_packet_deinit
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_l2_ndisuio_global@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rcx
	movq	32(%rax), %rdx
	leaq	-1(%rcx), %rsi
	movq	%rsi, (%rax)
	movq	$0, -8(%rdx,%rcx,8)
	movq	(%r14), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	28(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rax
	movl	28(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_l2_ndisuio_set_ether_type      ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	callq	_os_free
	movq	$0, (%r14)
LBB0_4:
	xorl	%eax, %eax
	callq	_driver_ndis_get_ndisuio_handle
	movl	%eax, %edi
	callq	_CancelIo
	movl	8(%rbx), %edi
	movl	$4, %esi
	callq	_eloop_unregister_event
	movl	8(%rbx), %edi
	callq	_CloseHandle
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l2_ndisuio_global,8,3          ## @l2_ndisuio_global
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L2(NDISUIO): restore filtering ethertype to %04x"

	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_IOCTL_CANCEL_READ,4,2          ## @IOCTL_CANCEL_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2_packet_deinit               ; -- Begin function l2_packet_deinit
	.p2align	2
_l2_packet_deinit:                      ; @l2_packet_deinit
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _l2_ndisuio_global@GOTPAGE
Lloh1:
	ldr	x20, [x20, _l2_ndisuio_global@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
	ldr	x8, [x8, #32]
	str	xzr, [x8, x9, lsl #3]
	ldr	x0, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0, #28]
	str	x9, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	w0, [x8, #28]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_l2_ndisuio_set_ether_type
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	bl	_os_free
	str	xzr, [x20]
LBB0_6:
	bl	_driver_ndis_get_ndisuio_handle
	bl	_CancelIo
	ldr	w0, [x19, #8]
	mov	w1, #4
	bl	_eloop_unregister_event
	ldr	w0, [x19, #8]
	bl	_CloseHandle
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_os_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_l2_ndisuio_global,8,3          ; @l2_ndisuio_global
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L2(NDISUIO): restore filtering ethertype to %04x"

	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_IOCTL_CANCEL_READ,4,2          ; @IOCTL_CANCEL_READ
.subsections_via_symbols
