	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_get_encode
_atmel_get_encode:                      ## @atmel_get_encode
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	cmpl	$0, 32(%r12)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 24(%r12)
	jne	LBB0_3
## %bb.4:
	movq	_IW_ENCODE_OPEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IW_ENCODE_RESTRICTED@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	leal	-5(%rax), %edx
	cmpl	$-5, %edx
	ja	LBB0_6
## %bb.7:
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_6:
	decl	%eax
LBB0_8:
	leal	1(%rax), %edx
	orl	%edx, %ecx
	movl	%ecx, (%r15)
	movq	8(%r12), %rcx
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %eax
	movl	%eax, 4(%r15)
	cmpl	$17, %eax
	jl	LBB0_10
## %bb.9:
	movl	$0, 4(%r15)
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_RESTRICTED,4,2       ## @IW_ENCODE_RESTRICTED
	.comm	_IW_ENCODE_OPEN,4,2             ## @IW_ENCODE_OPEN
	.no_dead_strip	_atmel_get_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_get_encode
_atmel_get_encode:                      ; @atmel_get_encode
	.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	x19, x3
	mov	x20, x2
	bl	_netdev_priv
	mov	x21, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	sub	w8, w9, #1
	ldr	w10, [x0, #32]
	cbz	w10, LBB0_2
; %bb.1:
	ldr	x10, [x21, #24]
Lloh3:
	adrp	x11, _IW_ENCODE_RESTRICTED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IW_ENCODE_RESTRICTED@GOTPAGEOFF]
Lloh5:
	adrp	x12, _IW_ENCODE_OPEN@GOTPAGE
Lloh6:
	ldr	x12, [x12, _IW_ENCODE_OPEN@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x12, x11, eq
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x10, _IW_ENCODE_DISABLED@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IW_ENCODE_DISABLED@GOTPAGEOFF]
LBB0_3:
	ldr	w10, [x10]
	sub	w9, w9, #5
	cmn	w9, #5
	b.hi	LBB0_5
; %bb.4:
	ldr	w8, [x21]
LBB0_5:
	add	w9, w8, #1
	orr	w9, w10, w9
	str	w9, [x20]
	ldr	x9, [x21, #8]
	ldr	w9, [x9, w8, sxtw #2]
	str	w9, [x20, #4]
	cmp	w9, #17
	b.lt	LBB0_7
; %bb.6:
	str	wzr, [x20, #4]
	b	LBB0_8
LBB0_7:
	sxtw	x22, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x21, #16]
	ldr	w1, [x8, x22, lsl #2]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_memcpy
LBB0_8:
	mov	w0, #0
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_IW_ENCODE_RESTRICTED,4,2       ; @IW_ENCODE_RESTRICTED
	.comm	_IW_ENCODE_OPEN,4,2             ; @IW_ENCODE_OPEN
	.no_dead_strip	_atmel_get_encode
.subsections_via_symbols
