	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_disconnect          ## -- Begin function __cfg80211_disconnect
	.p2align	4, 0x90
___cfg80211_disconnect:                 ## @__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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	movq	%r13, %rdi
	callq	_ASSERT_WDEV_LOCK
	movq	(%r13), %rax
	movq	_CFG80211_SME_IDLE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	24(%r13), %rdi
	callq	_kfree
	movq	$0, 24(%r13)
	movq	(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.13:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_rdev_disconnect
LBB0_14:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_15
LBB0_4:
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r13), %rcx
	movq	_CFG80211_SME_CONNECTING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.9:
	movq	(%rax), %rcx
	movq	_CFG80211_CONN_SCANNING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.10:
	movq	_CFG80211_CONN_SCAN_AGAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
LBB0_12:
	movl	8(%rax), %edx
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r12d, %r9d
	pushq	$0
	callq	___cfg80211_mlme_deauth
	addq	$16, %rsp
	jmp	LBB0_14
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cfg80211_mlme_down
LBB0_15:
	movq	(%r13), %rax
	movq	_CFG80211_SME_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	___cfg80211_disconnected
	jmp	LBB0_19
LBB0_17:
	movq	_CFG80211_SME_CONNECTING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	___cfg80211_connect_result
	addq	$32, %rsp
	jmp	LBB0_19
LBB0_11:
	leaq	8(%r13), %rbx
	movq	(%r14), %rcx
	movq	%rcx, (%r13)
	movq	16(%rax), %rdi
	callq	_kfree
	movq	8(%r13), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG80211_SME_IDLE,8,3          ## @CFG80211_SME_IDLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CFG80211_SME_CONNECTING,8,3    ## @CFG80211_SME_CONNECTING
	.comm	_CFG80211_CONN_SCANNING,8,3     ## @CFG80211_CONN_SCANNING
	.comm	_CFG80211_CONN_SCAN_AGAIN,8,3   ## @CFG80211_CONN_SCAN_AGAIN
	.comm	_CFG80211_SME_CONNECTED,8,3     ## @CFG80211_SME_CONNECTED
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cfg80211_disconnect          ; -- Begin function __cfg80211_disconnect
	.p2align	2
___cfg80211_disconnect:                 ; @__cfg80211_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x21, [x1]
	mov	x0, x21
	bl	_ASSERT_WDEV_LOCK
	ldr	x8, [x21]
Lloh0:
	adrp	x24, _CFG80211_SME_IDLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CFG80211_SME_IDLE@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_3:
	ldr	x0, [x21, #24]
	bl	_kfree
	str	xzr, [x21, #24]
	ldr	x8, [x23]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_rdev_disconnect
	cbnz	w0, LBB0_18
	b	LBB0_13
LBB0_5:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x25, x21
	ldr	x8, [x25, #8]!
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x9, [x21]
Lloh4:
	adrp	x10, _CFG80211_SME_CONNECTING@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CFG80211_SME_CONNECTING@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.8:
	ldr	x9, [x8]
Lloh7:
	adrp	x10, _CFG80211_CONN_SCANNING@GOTPAGE
Lloh8:
	ldr	x10, [x10, _CFG80211_CONN_SCANNING@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _CFG80211_CONN_SCAN_AGAIN@GOTPAGE
Lloh11:
	ldr	x11, [x11, _CFG80211_CONN_SCAN_AGAIN@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_11
; %bb.9:
	ldr	x9, [x24]
	str	x9, [x21]
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x0, [x21, #8]
	bl	_kfree
	mov	w0, #0
	stp	xzr, xzr, [x25]
	b	LBB0_18
LBB0_10:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	ldr	w2, [x8, #8]
	mov	x0, x23
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	mov	x5, x22
	mov	w6, #0
	bl	___cfg80211_mlme_deauth
	cbnz	w0, LBB0_18
	b	LBB0_13
LBB0_12:
	mov	x0, x23
	mov	x1, x20
	bl	_cfg80211_mlme_down
LBB0_13:
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _CFG80211_SME_CONNECTED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CFG80211_SME_CONNECTED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	___cfg80211_disconnected
	b	LBB0_17
LBB0_15:
Lloh18:
	adrp	x9, _CFG80211_SME_CONNECTING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CFG80211_SME_CONNECTING@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh21:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	str	xzr, [sp]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x7, x19
	bl	___cfg80211_connect_result
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG80211_SME_IDLE,8,3          ; @CFG80211_SME_IDLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CFG80211_SME_CONNECTING,8,3    ; @CFG80211_SME_CONNECTING
	.comm	_CFG80211_CONN_SCANNING,8,3     ; @CFG80211_CONN_SCANNING
	.comm	_CFG80211_CONN_SCAN_AGAIN,8,3   ; @CFG80211_CONN_SCAN_AGAIN
	.comm	_CFG80211_SME_CONNECTED,8,3     ; @CFG80211_SME_CONNECTED
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
.subsections_via_symbols
