	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_siwgenie         ## -- Begin function cfg80211_wext_siwgenie
	.p2align	4, 0x90
_cfg80211_wext_siwgenie:                ## @cfg80211_wext_siwgenie
	.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, %r13
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	32(%rbx), %edi
	callq	_wiphy_to_dev
	movq	(%rbx), %rdx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	callq	_wdev_lock
	cmpl	%r12d, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	movq	%r13, %rsi
	cmoveq	%r15, %rsi
	movq	24(%rbx), %rdi
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_kmemdup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	%r15, 24(%rbx)
	movl	%r12d, 16(%rbx)
	movq	8(%rbx), %rax
	movq	_CFG80211_SME_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	___cfg80211_disconnect
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
LBB0_8:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%rbx, %rdi
	callq	_wdev_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CFG80211_SME_IDLE,8,3          ## @CFG80211_SME_IDLE
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_wext_siwgenie         ; -- Begin function cfg80211_wext_siwgenie
	.p2align	2
_cfg80211_wext_siwgenie:                ; @cfg80211_wext_siwgenie
	.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	x23, x3
	mov	x22, x2
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w0, [x19, #32]
	bl	_wiphy_to_dev
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w22, [x22]
	mov	x0, x19
	bl	_wdev_lock
	ldr	w8, [x19, #16]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
	cmp	w22, #0
	csel	x1, xzr, x23, eq
	ldr	x0, [x19, #24]
	mov	x2, x22
	bl	_memcmp
	cbz	x0, LBB0_10
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_kmemdup
	mov	x23, x0
	cbnz	x0, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
	mov	x23, #0
LBB0_8:
	ldr	x0, [x19, #24]
	bl	_kfree
	str	x23, [x19, #24]
	str	w22, [x19, #16]
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _CFG80211_SME_IDLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CFG80211_SME_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	___cfg80211_disconnect
	mov	x20, x0
	cbnz	w0, LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_wdev_unlock
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CFG80211_SME_IDLE,8,3          ; @CFG80211_SME_IDLE
	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
.subsections_via_symbols
