	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PacketCloseAdapter             ## -- Begin function PacketCloseAdapter
	.p2align	4, 0x90
_PacketCloseAdapter:                    ## @PacketCloseAdapter
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bzero
	movl	-32(%rbp), %edi
	movl	4(%rbx), %esi
	movl	$4, %edx
	callq	_strncpy
	movq	_IEEE80211_IOC_ROAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	(%rbx), %edi
	movq	_SIOCS80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	-20(%rbp), %edi
	movl	4(%rbx), %esi
	movl	$4, %edx
	callq	_strncpy
	movl	(%rbx), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -24(%rbp)
	movl	(%rbx), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	movl	(%rbx), %edi
	callq	_close
	movq	%rbx, %rdi
	callq	_free
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IOC_ROAMING,4,2      ## @IEEE80211_IOC_ROAMING
	.comm	_SIOCS80211,4,2                 ## @SIOCS80211
	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PacketCloseAdapter             ; -- Begin function PacketCloseAdapter
	.p2align	2
_PacketCloseAdapter:                    ; @PacketCloseAdapter
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #12
	bl	_bzero
	ldr	w0, [sp, #16]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_strncpy
Lloh0:
	adrp	x8, _IEEE80211_IOC_ROAMING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IOC_ROAMING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	stp	w9, w8, [sp, #8]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _SIOCS80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCS80211@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	add	x0, sp, #24
	mov	w1, #8
	bl	_bzero
	ldr	w0, [sp, #28]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
Lloh9:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	bic	w8, w9, w8
	str	w8, [sp, #24]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	ldr	w0, [x19]
	bl	_close
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IOC_ROAMING,4,2      ; @IEEE80211_IOC_ROAMING
	.comm	_SIOCS80211,4,2                 ; @SIOCS80211
	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
.subsections_via_symbols
