	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_set_auth
_atmel_set_auth:                        ## @atmel_set_auth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	_IW_AUTH_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	(%rbx), %edx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	addl	$-128, %edx
	cmpl	$8, %edx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	cmpl	$0, 4(%rbx)
	jg	LBB0_9
	jmp	LBB0_8
LBB0_6:
	xorl	%ecx, %ecx
	cmpl	$0, 4(%rbx)
	setne	%cl
	jmp	LBB0_7
LBB0_2:
	movl	4(%rbx), %edx
	movq	_IW_AUTH_ALG_SHARED_KEY@GOTPCREL(%rip), %rsi
	movl	$1, %ecx
	testl	%edx, (%rsi)
	jne	LBB0_7
## %bb.3:
	movq	_IW_AUTH_ALG_OPEN_SYSTEM@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	testl	%edx, (%rsi)
	je	LBB0_4
LBB0_7:
	movl	%ecx, (%rax)
LBB0_8:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_IW_AUTH_INDEX,4,2              ## @IW_AUTH_INDEX
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ## @IW_AUTH_ALG_SHARED_KEY
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ## @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_atmel_set_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_set_auth
_atmel_set_auth:                        ; @atmel_set_auth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_netdev_priv
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IW_AUTH_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_AUTH_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.le	LBB0_10
LBB0_3:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_9
LBB0_5:
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x9, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	mov	w8, #0
LBB0_9:
	str	w8, [x0]
LBB0_10:
Lloh13:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_IW_AUTH_INDEX,4,2              ; @IW_AUTH_INDEX
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ; @IW_AUTH_ALG_SHARED_KEY
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ; @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_atmel_set_auth
.subsections_via_symbols
