	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_get_encodeext
_atmel_get_encodeext:                   ## @atmel_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r12), %eax
	addl	$-16, %eax
	js	LBB0_1
## %bb.2:
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	4(%r12), %ebx
	je	LBB0_5
## %bb.3:
	leal	-5(%rbx), %eax
	cmpl	$-5, %eax
	jbe	LBB0_1
## %bb.4:
	decl	%ebx
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %ebx
LBB0_6:
	leal	1(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpl	$0, 32(%r15)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%r15)
	jle	LBB0_1
## %bb.9:
	movq	_IW_ENCODE_ALG_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	24(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, (%r14)
	movl	8(%r14), %edi
	movq	16(%r15), %rax
	movl	(%rax,%rcx,4), %esi
	callq	_memcpy
	movq	_IW_ENCODE_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	$0, (%r14)
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	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	_IW_ENCODE_ALG_NONE,4,2         ## @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_ALG_WEP,4,2          ## @IW_ENCODE_ALG_WEP
	.comm	_IW_ENCODE_ENABLED,4,2          ## @IW_ENCODE_ENABLED
	.no_dead_strip	_atmel_get_encodeext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_get_encodeext
_atmel_get_encodeext:                   ; @atmel_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
	mov	x20, x3
	mov	x19, x2
	bl	_netdev_priv
	ldr	w8, [x19]
	cmp	w8, #16
	b.mi	LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19, #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_4
; %bb.2:
	sub	w9, w8, #5
	cmn	w9, #5
	b.ls	LBB0_8
; %bb.3:
	sub	w22, w8, #1
	b	LBB0_5
LBB0_4:
	ldr	w22, [x21]
LBB0_5:
	add	w8, w22, #1
	str	w8, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_9
; %bb.6:
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _IW_ENCODE_ALG_WEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IW_ENCODE_ALG_WEP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	ldp	x9, x8, [x21, #16]
	ldr	x2, [x8, w22, sxtw #3]
	str	x2, [x20]
	ldr	w0, [x20, #8]
	ldr	w1, [x9, w22, sxtw #2]
	bl	_memcpy
Lloh6:
	adrp	x8, _IW_ENCODE_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IW_ENCODE_ENABLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _IW_ENCODE_ALG_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IW_ENCODE_ALG_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	str	xzr, [x20]
Lloh14:
	adrp	x8, _IW_ENCODE_DISABLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IW_ENCODE_DISABLED@GOTPAGEOFF]
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_IW_ENCODE_ALG_NONE,4,2         ; @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_ALG_WEP,4,2          ; @IW_ENCODE_ALG_WEP
	.comm	_IW_ENCODE_ENABLED,4,2          ; @IW_ENCODE_ENABLED
	.no_dead_strip	_atmel_get_encodeext
.subsections_via_symbols
