	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_wx_get_encodeext        ## -- Begin function libipw_wx_get_encodeext
	.p2align	4, 0x90
_libipw_wx_get_encodeext:               ## @libipw_wx_get_encodeext
	.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
	movl	(%rdx), %eax
	addl	$-32, %eax
	js	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	4(%rdx), %ebx
	je	LBB0_6
## %bb.3:
	jle	LBB0_1
## %bb.4:
	movq	_WEP_KEYS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_1
## %bb.5:
	decl	%ebx
	jmp	LBB0_7
LBB0_6:
	movl	8(%r15), %ebx
LBB0_7:
	movq	_IW_ENCODE_EXT_GROUP_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_11
## %bb.8:
	movq	8(%r14), %rax
	movq	_IW_ENCODE_ALG_WEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_11:
	leal	1(%rbx), %eax
	movl	%eax, 4(%r12)
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	cmpl	$0, 40(%r15)
	je	LBB0_12
## %bb.13:
	movq	16(%r15), %rcx
	movslq	%ebx, %rax
	movq	(%rcx,%rax,8), %rcx
	movq	_SEC_ALG_WEP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.14:
	movq	_IW_ENCODE_ALG_WEP@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_12:
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	$0, 16(%r14)
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	jmp	LBB0_23
LBB0_15:
	movq	_SEC_ALG_TKIP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	movq	_IW_ENCODE_ALG_TKIP@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_9:
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.10:
	movq	(%r15), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
	jmp	LBB0_1
LBB0_17:
	movq	_SEC_ALG_CCMP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.18:
	movq	_IW_ENCODE_ALG_CCMP@GOTPCREL(%rip), %rcx
LBB0_19:
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	movq	32(%r15), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, 16(%r14)
	movl	24(%r14), %edi
	movq	24(%r15), %rcx
	movl	(%rcx,%rax,4), %esi
	callq	_memcpy
	movq	_IW_ENCODE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	xorl	%r13d, %r13d
	cmpq	$0, 16(%r14)
	je	LBB0_23
## %bb.20:
	movq	8(%r14), %rax
	movq	_IW_ENCODE_ALG_TKIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:
	movq	_IW_ENCODE_ALG_CCMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_22:
	movq	_IW_ENCODE_EXT_TX_SEQ_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_23
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_WEP_KEYS,4,2                   ## @WEP_KEYS
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ## @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_ENCODE_ALG_WEP,8,3          ## @IW_ENCODE_ALG_WEP
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_IW_ENCODE_ALG_NONE,8,3         ## @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_SEC_ALG_WEP,8,3                ## @SEC_ALG_WEP
	.comm	_SEC_ALG_TKIP,8,3               ## @SEC_ALG_TKIP
	.comm	_IW_ENCODE_ALG_TKIP,8,3         ## @IW_ENCODE_ALG_TKIP
	.comm	_SEC_ALG_CCMP,8,3               ## @SEC_ALG_CCMP
	.comm	_IW_ENCODE_ALG_CCMP,8,3         ## @IW_ENCODE_ALG_CCMP
	.comm	_IW_ENCODE_ENABLED,4,2          ## @IW_ENCODE_ENABLED
	.comm	_IW_ENCODE_EXT_TX_SEQ_VALID,4,2 ## @IW_ENCODE_EXT_TX_SEQ_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_wx_get_encodeext        ; -- Begin function libipw_wx_get_encodeext
	.p2align	2
_libipw_wx_get_encodeext:               ; @libipw_wx_get_encodeext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x2]
	cmp	w8, #32
	b.mi	LBB0_20
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w8, [x2, #4]
Lloh0:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w8, w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _WEP_KEYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WEP_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	subs	w22, w8, #1
	ccmp	w8, w9, #0, ge
	b.le	LBB0_4
	b	LBB0_20
LBB0_3:
	ldr	w22, [x21, #8]
LBB0_4:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _IW_ENCODE_ALG_WEP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_ENCODE_ALG_WEP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_6:
	add	w8, w22, #1
	str	w8, [x20, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, w22, sxtw #3]
Lloh12:
	adrp	x9, _SEC_ALG_WEP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SEC_ALG_WEP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh15:
	adrp	x8, _IW_ENCODE_ALG_WEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IW_ENCODE_ALG_WEP@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	mov	w0, #0
Lloh17:
	adrp	x8, _IW_ENCODE_ALG_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IW_ENCODE_ALG_NONE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #8]
Lloh20:
	adrp	x8, _IW_ENCODE_DISABLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IW_ENCODE_DISABLED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_21
LBB0_10:
Lloh23:
	adrp	x9, _SEC_ALG_TKIP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SEC_ALG_TKIP@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
Lloh26:
	adrp	x8, _IW_ENCODE_ALG_TKIP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IW_ENCODE_ALG_TKIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	cbnz	w22, LBB0_20
; %bb.13:
	ldr	x8, [x21]
Lloh28:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
	b	LBB0_6
LBB0_14:
Lloh31:
	adrp	x9, _SEC_ALG_CCMP@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SEC_ALG_CCMP@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.15:
Lloh34:
	adrp	x8, _IW_ENCODE_ALG_CCMP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IW_ENCODE_ALG_CCMP@GOTPAGEOFF]
LBB0_16:
	sxtw	x9, w22
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldp	x10, x8, [x21, #24]
	ldr	x2, [x8, x9, lsl #3]
	str	x2, [x19, #16]
	ldr	w0, [x19, #24]
	ldr	w1, [x10, x9, lsl #2]
	bl	_memcpy
Lloh36:
	adrp	x8, _IW_ENCODE_ENABLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IW_ENCODE_ENABLED@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_19
; %bb.17:
Lloh39:
	adrp	x9, _IW_ENCODE_ALG_TKIP@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IW_ENCODE_ALG_TKIP@GOTPAGEOFF]
	ldr	x8, [x19, #8]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.18:
Lloh42:
	adrp	x9, _IW_ENCODE_ALG_CCMP@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IW_ENCODE_ALG_CCMP@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w0, #0
Lloh48:
	adrp	x8, _IW_ENCODE_EXT_TX_SEQ_VALID@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IW_ENCODE_EXT_TX_SEQ_VALID@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_21
	.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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_WEP_KEYS,4,2                   ; @WEP_KEYS
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ; @IW_ENCODE_EXT_GROUP_KEY
	.comm	_IW_ENCODE_ALG_WEP,8,3          ; @IW_ENCODE_ALG_WEP
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_IW_ENCODE_ALG_NONE,8,3         ; @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_SEC_ALG_WEP,8,3                ; @SEC_ALG_WEP
	.comm	_SEC_ALG_TKIP,8,3               ; @SEC_ALG_TKIP
	.comm	_IW_ENCODE_ALG_TKIP,8,3         ; @IW_ENCODE_ALG_TKIP
	.comm	_SEC_ALG_CCMP,8,3               ; @SEC_ALG_CCMP
	.comm	_IW_ENCODE_ALG_CCMP,8,3         ; @IW_ENCODE_ALG_CCMP
	.comm	_IW_ENCODE_ENABLED,4,2          ; @IW_ENCODE_ENABLED
	.comm	_IW_ENCODE_EXT_TX_SEQ_VALID,4,2 ; @IW_ENCODE_EXT_TX_SEQ_VALID
.subsections_via_symbols
