	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_ndis_deinit
_wpa_driver_ndis_deinit:                ## @wpa_driver_ndis_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_wpa_driver_ndis_scan_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rdx
	movq	%rbx, %rsi
	callq	_eloop_cancel_timeout
	movq	_wpa_driver_ndis_poll_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	%rbx, %rdi
	callq	_wpa_driver_ndis_flush_pmkid
	movq	%rbx, %rdi
	callq	_wpa_driver_ndis_disconnect
	movq	%rbx, %rdi
	callq	_wpa_driver_ndis_radio_off
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_2:
	movq	%rbx, %rdi
	callq	_wpa_driver_ndis_adapter_close
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpa_driver_ndis_set_wzc
LBB0_4:
	movq	(%rbx), %rdi
	callq	_os_free
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wpa_driver_ndis_scan_timeout,4,2 ## @wpa_driver_ndis_scan_timeout
	.comm	_wpa_driver_ndis_poll_timeout,4,2 ## @wpa_driver_ndis_poll_timeout
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NDIS: failed to disassociate and turn radio off"

	.no_dead_strip	_wpa_driver_ndis_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_driver_ndis_deinit
_wpa_driver_ndis_deinit:                ; @wpa_driver_ndis_deinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _wpa_driver_ndis_scan_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wpa_driver_ndis_scan_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x2, [x19, #24]
	mov	x1, x19
	bl	_eloop_cancel_timeout
Lloh3:
	adrp	x8, _wpa_driver_ndis_poll_timeout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wpa_driver_ndis_poll_timeout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	mov	x0, x19
	bl	_wpa_driver_ndis_flush_pmkid
	mov	x0, x19
	bl	_wpa_driver_ndis_disconnect
	mov	x0, x19
	bl	_wpa_driver_ndis_radio_off
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_2:
	mov	x0, x19
	bl	_wpa_driver_ndis_adapter_close
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_wpa_driver_ndis_set_wzc
LBB0_4:
	ldr	x0, [x19]
	bl	_os_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_os_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_wpa_driver_ndis_scan_timeout,4,2 ; @wpa_driver_ndis_scan_timeout
	.comm	_wpa_driver_ndis_poll_timeout,4,2 ; @wpa_driver_ndis_poll_timeout
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NDIS: failed to disassociate and turn radio off"

	.no_dead_strip	_wpa_driver_ndis_deinit
.subsections_via_symbols
