	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_validate_key_settings ## -- Begin function cfg80211_validate_key_settings
	.p2align	4, 0x90
_cfg80211_validate_key_settings:        ## @cfg80211_validate_key_settings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$6, %edx
	jge	LBB0_22
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	testq	%r8, %r8
	je	LBB0_4
## %bb.3:
	movq	_WIPHY_FLAG_IBSS_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_22
LBB0_4:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	testq	%r8, %r8
	je	LBB0_22
LBB0_6:
	movl	(%rsi), %eax
	leal	-130(%rax), %r8d
	testl	%edx, %edx
	je	LBB0_9
## %bb.7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	cmpl	$2, %r8d
	jbe	LBB0_22
LBB0_9:
	leal	-128(%rax), %r9d
	cmpl	$4, %r9d
	ja	LBB0_17
## %bb.10:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r9,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	16(%rsi), %ecx
	movq	_WLAN_KEY_LEN_WEP40@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_14:
	movl	16(%rsi), %ecx
	movq	_WLAN_KEY_LEN_WEP104@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_12:
	movl	16(%rsi), %ecx
	movq	_WLAN_KEY_LEN_TKIP@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_13:
	movl	16(%rsi), %ecx
	movq	_WLAN_KEY_LEN_CCMP@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_15:
	movl	16(%rsi), %ecx
	movq	_WLAN_KEY_LEN_AES_CMAC@GOTPCREL(%rip), %rdx
LBB0_16:
	cmpl	(%rdx), %ecx
	jne	LBB0_22
LBB0_17:
	cmpq	$0, 8(%rsi)
	je	LBB0_21
## %bb.18:
	cmpl	$3, %r8d
	jae	LBB0_19
## %bb.20:
	cmpl	$6, 4(%rsi)
	je	LBB0_21
	jmp	LBB0_22
LBB0_19:
	cmpl	$1, %r9d
	jbe	LBB0_22
LBB0_21:
	movl	%eax, %esi
	callq	_cfg80211_supported_cipher_suite
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_23
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_23:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ## @WIPHY_FLAG_IBSS_RSN
	.comm	_WLAN_KEY_LEN_WEP40,4,2         ## @WLAN_KEY_LEN_WEP40
	.comm	_WLAN_KEY_LEN_TKIP,4,2          ## @WLAN_KEY_LEN_TKIP
	.comm	_WLAN_KEY_LEN_CCMP,4,2          ## @WLAN_KEY_LEN_CCMP
	.comm	_WLAN_KEY_LEN_WEP104,4,2        ## @WLAN_KEY_LEN_WEP104
	.comm	_WLAN_KEY_LEN_AES_CMAC,4,2      ## @WLAN_KEY_LEN_AES_CMAC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_validate_key_settings ; -- Begin function cfg80211_validate_key_settings
	.p2align	2
_cfg80211_validate_key_settings:        ; @cfg80211_validate_key_settings
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w2, #6
	b.ge	LBB0_23
; %bb.1:
	cbnz	w3, LBB0_4
; %bb.2:
	cbz	x4, LBB0_4
; %bb.3:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WIPHY_FLAG_IBSS_RSN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIPHY_FLAG_IBSS_RSN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_4:
	cbz	w3, LBB0_6
; %bb.5:
	cbz	x4, LBB0_23
LBB0_6:
	ldr	w8, [x1]
	sub	w9, w8, #130
	cbz	w2, LBB0_9
; %bb.7:
	cbz	w3, LBB0_9
; %bb.8:
	cmp	w9, #2
	b.ls	LBB0_23
LBB0_9:
	sub	w10, w8, #128
	cmp	w10, #4
	b.hi	LBB0_17
; %bb.10:
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_11
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_11:
	ldr	w11, [x1, #16]
Lloh5:
	adrp	x12, _WLAN_KEY_LEN_WEP40@GOTPAGE
Lloh6:
	ldr	x12, [x12, _WLAN_KEY_LEN_WEP40@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	ldr	w11, [x1, #16]
Lloh7:
	adrp	x12, _WLAN_KEY_LEN_WEP104@GOTPAGE
Lloh8:
	ldr	x12, [x12, _WLAN_KEY_LEN_WEP104@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	ldr	w11, [x1, #16]
Lloh9:
	adrp	x12, _WLAN_KEY_LEN_TKIP@GOTPAGE
Lloh10:
	ldr	x12, [x12, _WLAN_KEY_LEN_TKIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	ldr	w11, [x1, #16]
Lloh11:
	adrp	x12, _WLAN_KEY_LEN_CCMP@GOTPAGE
Lloh12:
	ldr	x12, [x12, _WLAN_KEY_LEN_CCMP@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	ldr	w11, [x1, #16]
Lloh13:
	adrp	x12, _WLAN_KEY_LEN_AES_CMAC@GOTPAGE
Lloh14:
	ldr	x12, [x12, _WLAN_KEY_LEN_AES_CMAC@GOTPAGEOFF]
LBB0_16:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_23
LBB0_17:
	ldr	x11, [x1, #8]
	cbz	x11, LBB0_21
; %bb.18:
	cmp	w9, #3
	b.hs	LBB0_20
; %bb.19:
	ldr	w9, [x1, #4]
	cmp	w9, #6
	b.eq	LBB0_21
	b	LBB0_23
LBB0_20:
	cmp	w10, #1
	b.ls	LBB0_23
LBB0_21:
	mov	x1, x8
	bl	_cfg80211_supported_cipher_suite
	cbz	w0, LBB0_23
; %bb.22:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_23:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WIPHY_FLAG_IBSS_RSN,4,2        ; @WIPHY_FLAG_IBSS_RSN
	.comm	_WLAN_KEY_LEN_WEP40,4,2         ; @WLAN_KEY_LEN_WEP40
	.comm	_WLAN_KEY_LEN_TKIP,4,2          ; @WLAN_KEY_LEN_TKIP
	.comm	_WLAN_KEY_LEN_CCMP,4,2          ; @WLAN_KEY_LEN_CCMP
	.comm	_WLAN_KEY_LEN_WEP104,4,2        ; @WLAN_KEY_LEN_WEP104
	.comm	_WLAN_KEY_LEN_AES_CMAC,4,2      ; @WLAN_KEY_LEN_AES_CMAC
.subsections_via_symbols
