	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cfg80211_set_encryption
___cfg80211_set_encryption:             ## @__cfg80211_set_encryption
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r10
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	24(%rbp), %r15
	movl	16(%rbp), %r8d
	movq	(%rsi), %rbx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	testq	%r10, %r10
	jne	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_3:
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
## %bb.4:
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.5:
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx), %edx
	movl	%edx, 8(%rax)
	movl	4(%rcx), %edx
	movl	%edx, 32(%rax)
	movl	8(%rcx), %edx
	movl	%edx, 56(%rax)
	movl	12(%rcx), %edx
	movl	%edx, 80(%rax)
	movl	16(%rcx), %edx
	movl	%edx, 104(%rax)
	movl	20(%rcx), %ecx
	movl	%ecx, 128(%rax)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
LBB0_6:
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.7:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_9
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_9:
	movq	(%r15), %rdx
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 32(%rbx)
	je	LBB0_26
## %bb.11:
	movq	8(%rdi), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_8
## %bb.12:
	leal	-6(%r8), %edx
	cmpl	$-3, %edx
	jbe	LBB0_2
	jmp	LBB0_14
LBB0_13:
	cmpl	$4, %r8d
	jae	LBB0_2
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.15:
	cmpq	$0, 32(%rbx)
	je	LBB0_32
## %bb.16:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	%r8d, 8(%rbx)
	jne	LBB0_19
## %bb.17:
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.18:
	movl	40(%rbx), %esi
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, %r12
	movl	$1, %edx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r10, %r15
	callq	___cfg80211_leave_ibss
	movq	%r15, %r10
	movq	%r12, %rdi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
LBB0_19:
	movq	%rbx, %r15
	testl	%r14d, %r14d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_22
## %bb.20:
	testq	%r10, %r10
	je	LBB0_22
## %bb.21:
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_54
LBB0_22:
	movq	%r13, %rsi
	movq	%r8, %r13
	movl	%r8d, %edx
	movl	%r14d, %ecx
	movq	%r10, %rbx
	movq	%r10, %r8
	callq	_rdev_del_key
	movl	%eax, %r12d
LBB0_23:
	movl	$0, 24(%r15)
	testl	%r12d, %r12d
	je	LBB0_44
## %bb.24:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %r12d
	movq	%r13, %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r10
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_29
	jmp	LBB0_45
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_26:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
LBB0_27:
	xorl	%r12d, %r12d
LBB0_28:
	subl	(%rax), %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testq	%r10, %r10
	cmovnel	%r12d, %r9d
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%r15, %rsi
	movl	%r8d, %edx
	movl	%r14d, %ecx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r10, %r8
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	callq	_cfg80211_validate_key_settings
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_32:
	movq	%rbx, %r15
	movl	$0, 24(%rbx)
	xorl	%edx, %edx
	jmp	LBB0_45
LBB0_33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_35
## %bb.34:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r9d, %edx
	movl	%r14d, %ecx
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%r15, %r9
	callq	_rdev_add_key
	movq	%r12, %r8
	movq	%r14, %r9
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_35:
	testq	%r8, %r8
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_37
## %bb.36:
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	movl	%r9d, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,8), %rcx
	leaq	(%rcx,%rcx,2), %r14
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rax,%r14)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax,%r14)
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rdx,4), %edi
	movl	8(%r15), %esi
	movq	16(%r15), %rdx
	movq	%r8, %rbx
	callq	_memcpy
	movq	%rbx, %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 8(%rax,%r14)
LBB0_37:
	movq	(%r15), %rax
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_55
## %bb.38:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_55
LBB0_39:
	xorl	%r12d, %r12d
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.40:
	testl	%edx, %edx
	je	LBB0_65
LBB0_41:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	je	LBB0_43
## %bb.42:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r9d, %edx
	movq	%r9, %rbx
	callq	_rdev_set_default_mgmt_key
	movq	%rbx, %r9
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_43:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r9d, 12(%rax)
	jmp	LBB0_64
LBB0_44:
	movq	%r13, %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r10
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_45:
	testq	%r10, %r10
	jne	LBB0_47
## %bb.46:
	movq	16(%r15), %rax
	movq	8(%rax), %rax
	movl	%r8d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	$0, 16(%rax,%rcx,8)
	movq	$0, (%rax,%rcx,8)
LBB0_47:
	cmpl	%r8d, 8(%r15)
	jne	LBB0_49
## %bb.48:
	movl	$-1, 8(%r15)
	jmp	LBB0_51
LBB0_49:
	cmpl	%r8d, 12(%r15)
	jne	LBB0_51
## %bb.50:
	movl	$-1, 12(%r15)
LBB0_51:
	testl	%edx, %edx
	je	LBB0_64
## %bb.52:
	movq	%r15, %rsi
LBB0_53:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfg80211_ibss_wext_join        ## TAILCALL
LBB0_54:
	movq	%r10, %rbx
	movq	%r8, %r13
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_55:
	testl	%edx, %edx
	je	LBB0_61
LBB0_56:
	cmpq	$0, 32(%r12)
	je	LBB0_63
## %bb.57:
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_59
## %bb.58:
	cmpl	$-1, 8(%r12)
	je	LBB0_67
LBB0_59:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r9d, %edx
	movl	$1, %ecx
	movq	%r9, %rbx
	movl	$1, %r8d
	callq	_rdev_set_default_key
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.60:
	movq	%rbx, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, 8(%rax)
	jmp	LBB0_64
LBB0_61:
	testq	%r8, %r8
	jne	LBB0_39
## %bb.62:
	cmpl	$-1, 8(%r12)
	jne	LBB0_39
	jmp	LBB0_56
LBB0_63:
	movl	%r9d, 8(%r12)
LBB0_64:
	xorl	%r12d, %r12d
	jmp	LBB0_29
LBB0_65:
	testq	%r8, %r8
	jne	LBB0_29
## %bb.66:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$-1, 12(%rax)
	jne	LBB0_29
	jmp	LBB0_41
LBB0_67:
	movl	40(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r9, %r14
	callq	___cfg80211_leave_ibss
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_rdev_set_default_key
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.68:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, 8(%rsi)
	movq	%rbx, %rdi
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ## @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.no_dead_strip	___cfg80211_set_encryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cfg80211_set_encryption
___cfg80211_set_encryption:             ; @__cfg80211_set_encryption
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x20, x6
	mov	x26, x5
	mov	x27, x4
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x1]
	cbz	w2, LBB0_3
; %bb.1:
	cbnz	x23, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_3:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.5:
	ldp	x8, x9, [x0]
	ldr	w10, [x8]
	str	w10, [x9, #8]
	ldr	w10, [x8, #4]
	str	w10, [x9, #32]
	ldr	w10, [x8, #8]
	str	w10, [x9, #56]
	ldr	w10, [x8, #12]
	str	w10, [x9, #80]
	ldr	w10, [x8, #16]
	str	w10, [x9, #104]
	ldr	w8, [x8, #20]
	str	w8, [x9, #128]
LBB0_6:
	ldr	x8, [x19]
Lloh5:
	adrp	x28, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh6:
	ldr	x28, [x28, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	ldr	x9, [x28]
Lloh7:
	adrp	x10, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.7:
	ldr	x10, [x24]
Lloh10:
	adrp	x11, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGE
Lloh11:
	ldr	x11, [x11, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_12
; %bb.8:
	ldr	x10, [x19, #32]
	cbz	x10, LBB0_18
; %bb.9:
	ldr	x10, [x21, #8]
	ldr	w10, [x10]
	cbz	w10, LBB0_11
; %bb.10:
	sub	w10, w20, #6
	cmn	w10, #3
	b.ls	LBB0_2
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
	cmp	w20, #4
	b.hs	LBB0_2
LBB0_13:
	cbz	w27, LBB0_21
; %bb.14:
	ldr	x10, [x19, #32]
	cbz	x10, LBB0_33
; %bb.15:
	ldr	w10, [x19, #8]
	cmp	w10, w20
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_34
; %bb.16:
	mov	w24, #0
	b	LBB0_35
LBB0_17:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh17:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	cmp	x23, #0
	csel	w26, wzr, w26, ne
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x25
	mov	x4, x23
	bl	_cfg80211_validate_key_settings
	cbnz	x0, LBB0_2
; %bb.22:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x25
	mov	x4, x23
	mov	x5, x24
	bl	_rdev_add_key
	cbnz	w0, LBB0_20
LBB0_24:
	cbnz	x23, LBB0_26
; %bb.25:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	w9, w20
	add	x10, x9, w20, uxtw #1
	lsl	x25, x10, #3
	add	x8, x8, x25
	ldr	q0, [x24]
	ldr	x10, [x24, #16]
	str	x10, [x8, #16]
	str	q0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	lsl	x27, x9, #2
	ldr	w0, [x8, x27]
	ldr	w1, [x24, #8]
	ldr	x2, [x24, #16]
	bl	_memcpy
	ldr	x8, [x19, #16]
	ldp	x9, x8, [x8]
	ldr	w9, [x9, x27]
	add	x8, x8, x25
	str	w9, [x8, #8]
LBB0_26:
	ldr	x8, [x24]
Lloh19:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_49
; %bb.27:
Lloh22:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_49
LBB0_28:
Lloh25:
	adrp	x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_60
; %bb.29:
	cbz	w26, LBB0_58
LBB0_30:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_32
; %bb.31:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_rdev_set_default_mgmt_key
	cbnz	w0, LBB0_20
LBB0_32:
	mov	w0, #0
	str	w20, [x19, #12]
	b	LBB0_20
LBB0_33:
	mov	w24, #0
	str	wzr, [x19, #24]
	b	LBB0_40
LBB0_34:
	ldr	w1, [x19, #40]
	mov	w24, #1
	mov	x0, x21
	mov	w2, #1
	bl	___cfg80211_leave_ibss
LBB0_35:
Lloh28:
	adrp	x26, _ENOENT@GOTPAGE
Lloh29:
	ldr	x26, [x26, _ENOENT@GOTPAGEOFF]
	cbnz	w25, LBB0_38
; %bb.36:
	cbz	x23, LBB0_38
; %bb.37:
	ldr	w8, [x21]
Lloh30:
	adrp	x9, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_48
LBB0_38:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x25
	mov	x4, x23
	bl	_rdev_del_key
	str	wzr, [x19, #24]
	cbz	w0, LBB0_40
LBB0_39:
	ldr	w8, [x26]
	neg	w8, w8
	cmp	w0, w8
	b.ne	LBB0_20
LBB0_40:
	cbnz	x23, LBB0_42
; %bb.41:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	mov	w9, #24
	umaddl	x8, w20, w9, x8
	str	xzr, [x8, #16]
	str	xzr, [x8]
LBB0_42:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_44
; %bb.43:
	mov	w8, #-1
	str	w8, [x19, #8]
	b	LBB0_46
LBB0_44:
	ldr	w8, [x19, #12]
	cmp	w8, w20
	b.ne	LBB0_46
; %bb.45:
	mov	w8, #-1
	str	w8, [x19, #12]
LBB0_46:
	cbz	w24, LBB0_60
LBB0_47:
	mov	x0, x21
	mov	x1, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_cfg80211_ibss_wext_join
LBB0_48:
	ldr	w8, [x26]
	neg	w0, w8
	str	wzr, [x19, #24]
	cbnz	w0, LBB0_39
	b	LBB0_40
LBB0_49:
	cbz	w26, LBB0_55
LBB0_50:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_57
; %bb.51:
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_53
; %bb.52:
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_61
LBB0_53:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #1
	mov	w4, #1
	bl	_rdev_set_default_key
	cbnz	w0, LBB0_20
; %bb.54:
	str	w20, [x19, #8]
	b	LBB0_20
LBB0_55:
	cbnz	x23, LBB0_28
; %bb.56:
	ldr	w9, [x19, #8]
	cmn	w9, #1
	b.ne	LBB0_28
	b	LBB0_50
LBB0_57:
	mov	w0, #0
	str	w20, [x19, #8]
	b	LBB0_20
LBB0_58:
	cbnz	x23, LBB0_60
; %bb.59:
	ldr	w8, [x19, #12]
	cmn	w8, #1
	b.eq	LBB0_30
LBB0_60:
	mov	w0, #0
	b	LBB0_20
LBB0_61:
	ldr	w1, [x19, #40]
	mov	x0, x21
	mov	w2, #1
	bl	___cfg80211_leave_ibss
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #1
	mov	w4, #1
	bl	_rdev_set_default_key
	cbnz	w0, LBB0_20
; %bb.62:
	str	w20, [x19, #8]
	b	LBB0_47
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ; @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.no_dead_strip	___cfg80211_set_encryption
.subsections_via_symbols
