	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_disconnect
_wil_cfg80211_disconnect:               ## @wil_cfg80211_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ndev_to_vif
	movq	%rax, %rbx
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_wil_dbg_misc
	movq	_wil_vif_fwconnecting@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_wil_vif_fwconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	$1, (%rbx)
	movq	_WMI_DISCONNECT_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	_WMI_DISCONNECT_EVENTID@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_WIL6210_DISCONNECT_TO_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_wmi_call
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wil_err
	movl	%ebx, %r15d
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_err
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnect: reason=%d, mid=%d\n"

	.comm	_wil_vif_fwconnecting,4,2       ## @wil_vif_fwconnecting
	.comm	_wil_vif_fwconnected,4,2        ## @wil_vif_fwconnected
L_.str.1:                               ## @.str.1
	.asciz	"Disconnect was called while disconnected\n"

	.comm	_WMI_DISCONNECT_CMDID,4,2       ## @WMI_DISCONNECT_CMDID
	.comm	_WMI_DISCONNECT_EVENTID,4,2     ## @WMI_DISCONNECT_EVENTID
	.comm	_WIL6210_DISCONNECT_TO_MS,4,2   ## @WIL6210_DISCONNECT_TO_MS
L_.str.2:                               ## @.str.2
	.asciz	"disconnect error %d\n"

	.no_dead_strip	_wil_cfg80211_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_disconnect
_wil_cfg80211_disconnect:               ; @wil_cfg80211_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x0, x20
	bl	_ndev_to_vif
	mov	x20, x0
	ldr	w3, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_wil_dbg_misc
Lloh2:
	adrp	x8, _wil_vif_fwconnecting@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wil_vif_fwconnecting@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _wil_vif_fwconnected@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wil_vif_fwconnected@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_2:
	mov	w8, #1
	str	w8, [x20]
Lloh8:
	adrp	x8, _WMI_DISCONNECT_CMDID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_DISCONNECT_CMDID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
Lloh11:
	adrp	x8, _WMI_DISCONNECT_EVENTID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_DISCONNECT_EVENTID@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x8, _WIL6210_DISCONNECT_TO_MS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WIL6210_DISCONNECT_TO_MS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	w7, #0
	bl	_wmi_call
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wil_err
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_err
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnect: reason=%d, mid=%d\n"

	.comm	_wil_vif_fwconnecting,4,2       ; @wil_vif_fwconnecting
	.comm	_wil_vif_fwconnected,4,2        ; @wil_vif_fwconnected
l_.str.1:                               ; @.str.1
	.asciz	"Disconnect was called while disconnected\n"

	.comm	_WMI_DISCONNECT_CMDID,4,2       ; @WMI_DISCONNECT_CMDID
	.comm	_WMI_DISCONNECT_EVENTID,4,2     ; @WMI_DISCONNECT_EVENTID
	.comm	_WIL6210_DISCONNECT_TO_MS,4,2   ; @WIL6210_DISCONNECT_TO_MS
l_.str.2:                               ; @.str.2
	.asciz	"disconnect error %d\n"

	.no_dead_strip	_wil_cfg80211_disconnect
.subsections_via_symbols
