	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_siwessid     ## -- Begin function cfg80211_mgd_wext_siwessid
	.p2align	4, 0x90
_cfg80211_mgd_wext_siwessid:            ## @cfg80211_mgd_wext_siwessid
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movl	56(%r15), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movq	(%rbx), %r12
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%r14, %rax
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	testq	%r12, %r12
	movq	%r13, %rbx
	movl	$0, %r13d
	je	LBB0_6
## %bb.5:
	leaq	-1(%r12), %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, -1(%rcx,%r12)
	cmovneq	%r12, %r13
	jmp	LBB0_6
LBB0_3:
	movq	%r13, %rbx
	xorl	%r13d, %r13d
LBB0_6:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_cfg80211_lock_rdev
	movq	%r12, %rdi
	callq	_mutex_lock
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_wdev_lock
	movq	8(%r15), %rax
	movq	_CFG80211_SME_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.7:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	testq	%r13, %r13
	je	LBB0_12
## %bb.9:
	cmpq	24(%r15), %r13
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	xorl	%ecx, %ecx
	testq	%r13, %r13
	sete	%cl
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___cfg80211_disconnect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:
	movl	$0, 16(%r15)
	movq	48(%r15), %rdi
	movq	%rdi, 40(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	%r13, 24(%r15)
	movl	$0, 32(%r15)
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 36(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cfg80211_mgd_wext_connect
	movl	%eax, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_wdev_unlock
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_cfg80211_unlock_rdev
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CFG80211_SME_IDLE,8,3          ## @CFG80211_SME_IDLE
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.comm	_ETH_P_PAE,4,2                  ## @ETH_P_PAE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_mgd_wext_siwessid     ; -- Begin function cfg80211_mgd_wext_siwessid
	.p2align	2
_cfg80211_mgd_wext_siwessid:            ; @cfg80211_mgd_wext_siwessid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #56]
	bl	_wiphy_to_dev
	mov	x19, x0
	ldr	x24, [x22]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_2:
	ldr	w8, [x22, #8]
	cmp	w8, #0
	ccmp	x24, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:
	sub	x8, x24, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #0
	csel	x24, x8, x24, eq
LBB0_5:
	mov	x0, x19
	bl	_cfg80211_lock_rdev
	mov	x0, x19
	bl	_mutex_lock
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_wdev_lock
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _CFG80211_SME_IDLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CFG80211_SME_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:
	ldr	x0, [x20, #40]
	cmp	x0, #0
	ccmp	x24, #0, #4, ne
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x20, #24]
	cmp	x24, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x1, x21
	mov	x2, x24
	bl	_memcmp
	cbz	x0, LBB0_13
LBB0_9:
	cmp	x24, #0
	cset	w3, eq
Lloh9:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	___cfg80211_disconnect
	mov	x23, x0
	cbnz	w0, LBB0_11
LBB0_10:
	str	wzr, [x20, #16]
	ldr	x0, [x20, #48]
	str	x0, [x20, #40]
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	str	x24, [x20, #24]
	str	wzr, [x20, #32]
Lloh12:
	adrp	x8, _ETH_P_PAE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_P_PAE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [x20, #36]
	mov	x0, x19
	mov	x1, x20
	bl	_cfg80211_mgd_wext_connect
	mov	x23, x0
LBB0_11:
	mov	x0, x20
	bl	_wdev_unlock
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_cfg80211_unlock_rdev
LBB0_12:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CFG80211_SME_IDLE,8,3          ; @CFG80211_SME_IDLE
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.comm	_ETH_P_PAE,4,2                  ; @ETH_P_PAE
.subsections_via_symbols
