	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_siwencodeext
_cfg80211_wext_siwencodeext:            ## @cfg80211_wext_siwencodeext
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movl	16(%r15), %edi
	callq	_wiphy_to_dev
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_2:
	movq	(%r14), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_10
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_10
## %bb.4:
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rsi
	movl	(%rbx), %ecx
	xorl	%ebx, %ebx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_16
## %bb.6:
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	%rsi, %rax
	movl	4(%rsi), %eax
	cmpl	$13, %eax
	je	LBB0_18
## %bb.8:
	cmpl	$5, %eax
	jne	LBB0_26
## %bb.9:
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_WLAN_CIPHER_SUITE_TKIP@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_17:
	movq	_WLAN_CIPHER_SUITE_CCMP@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rbx
	xorl	%eax, %eax
LBB0_20:
	movl	(%r13), %edx
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	movl	$1, %ecx
	cmovel	%eax, %ecx
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_23
## %bb.21:
	leal	-6(%rdx), %eax
	cmpl	$-3, %eax
	ja	LBB0_27
## %bb.22:
	movl	8(%r15), %edx
	jmp	LBB0_25
LBB0_23:
	leal	-5(%rdx), %eax
	cmpl	$-5, %eax
	ja	LBB0_27
## %bb.24:
	movl	12(%r15), %edx
LBB0_25:
	testl	%edx, %edx
	jns	LBB0_28
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_27:
	decl	%edx
LBB0_28:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	24(%rsi), %r13
	movq	%r13, %rdi
	callq	_is_broadcast_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovneq	%rcx, %r13
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	16(%r15), %eax
	movl	%eax, -72(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -96(%rbp)
	movq	%rbx, -80(%rbp)
	movl	8(%r15), %r9d
	movq	_IW_ENCODE_EXT_RX_SEQ_VALID@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_30
## %bb.29:
	movl	12(%r15), %eax
	movl	%eax, -88(%rbp)
	movl	$6, -92(%rbp)
LBB0_30:
	movq	_IW_ENCODE_EXT_GROUP_KEY@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r9d, %eax
	sete	%dl
	movq	_IW_ENCODE_EXT_SET_TX_KEY@GOTPCREL(%rip), %rax
	andl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	%r13
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_cfg80211_set_encryption
	addq	$16, %rsp
	movl	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ## @WLAN_CIPHER_SUITE_TKIP
	.comm	_WLAN_CIPHER_SUITE_CCMP,8,3     ## @WLAN_CIPHER_SUITE_CCMP
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ## @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_IW_ENCODE_EXT_RX_SEQ_VALID,4,2 ## @IW_ENCODE_EXT_RX_SEQ_VALID
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ## @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_ENCODE_EXT_SET_TX_KEY,4,2   ## @IW_ENCODE_EXT_SET_TX_KEY
	.no_dead_strip	_cfg80211_wext_siwencodeext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_siwencodeext
_cfg80211_wext_siwencodeext:            ; @cfg80211_wext_siwencodeext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x23, [x0]
	ldr	w0, [x23, #16]
	bl	_wiphy_to_dev
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_9
; %bb.2:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_9
; %bb.3:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.5:
	mov	x25, #0
	mov	w9, #1
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
Lloh8:
	adrp	x8, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGEOFF]
	br	x11
LBB0_6:
	ldr	w9, [x21, #4]
	cmp	w9, #13
	b.eq	LBB0_15
; %bb.7:
	cmp	w9, #5
	b.ne	LBB0_22
; %bb.8:
	mov	w9, #0
Lloh10:
	adrp	x10, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh11:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	w9, #0
Lloh14:
	adrp	x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_TKIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	mov	w9, #0
	ldr	x25, [x8]
	b	LBB0_17
LBB0_14:
	mov	w9, #0
Lloh16:
	adrp	x10, _WLAN_CIPHER_SUITE_CCMP@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_CCMP@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	w9, #0
Lloh18:
	adrp	x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
LBB0_16:
	ldr	x25, [x10]
LBB0_17:
	ldr	w10, [x22]
Lloh20:
	adrp	x11, _IW_ENCODE_DISABLED@GOTPAGE
Lloh21:
	ldr	x11, [x11, _IW_ENCODE_DISABLED@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w11, w10
	csinc	w22, w9, wzr, eq
Lloh23:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	and	w9, w9, w10
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_20
; %bb.18:
	sub	w8, w9, #6
	cmn	w8, #3
	b.hi	LBB0_23
; %bb.19:
	ldr	w23, [x23, #8]
	tbz	w23, #31, LBB0_24
	b	LBB0_22
LBB0_20:
	sub	w8, w9, #5
	cmn	w8, #5
	b.hi	LBB0_23
; %bb.21:
	ldr	w23, [x23, #12]
	tbz	w23, #31, LBB0_24
LBB0_22:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_23:
	sub	w23, w9, #1
LBB0_24:
	ldr	x24, [x21, #24]
	mov	x0, x24
	bl	_is_broadcast_ether_addr
	cmp	x0, #0
	csel	x24, x24, xzr, eq
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x21, #16]
	str	w8, [sp, #24]
	ldp	w9, w8, [x21, #4]
	str	w9, [sp]
	str	x25, [sp, #16]
Lloh28:
	adrp	x9, _IW_ENCODE_EXT_RX_SEQ_VALID@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IW_ENCODE_EXT_RX_SEQ_VALID@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	ldr	w9, [x21, #12]
	mov	w10, #6
	stp	w10, w9, [sp, #4]
LBB0_26:
Lloh31:
	adrp	x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, eq
Lloh34:
	adrp	x9, _IW_ENCODE_EXT_SET_TX_KEY@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IW_ENCODE_EXT_SET_TX_KEY@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w5, w9, w8
	mov	x7, sp
	mov	x0, x20
	mov	x1, x19
	mov	x3, x24
	mov	x4, x22
	mov	x6, x23
	bl	_cfg80211_set_encryption
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_CIPHER_SUITE_TKIP,8,3     ; @WLAN_CIPHER_SUITE_TKIP
	.comm	_WLAN_CIPHER_SUITE_CCMP,8,3     ; @WLAN_CIPHER_SUITE_CCMP
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ; @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_IW_ENCODE_EXT_RX_SEQ_VALID,4,2 ; @IW_ENCODE_EXT_RX_SEQ_VALID
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ; @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_ENCODE_EXT_SET_TX_KEY,4,2   ; @IW_ENCODE_EXT_SET_TX_KEY
	.no_dead_strip	_cfg80211_wext_siwencodeext
.subsections_via_symbols
