	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_set_wap
_atmel_set_wap:                         ## @atmel_set_wap
	.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	%rdx, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.1:
	movl	8(%r15), %esi
	leaq	_atmel_set_wap.any(%rip), %rdi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	8(%r15), %esi
	leaq	_atmel_set_wap.off(%rip), %rdi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx), %rdi
	movl	8(%r15), %esi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_8:
	leaq	8(%r14), %rdi
	callq	_del_timer_sync
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atmel_scan
	movq	%rbx, %rdi
LBB0_9:
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 24(%r14)
	movq	16(%r14), %rax
	movq	8(%rax,%rbx), %rax
	je	LBB0_7
## %bb.10:
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_13
LBB0_11:
	leaq	8(%r14), %rdi
	callq	_del_timer_sync
	movq	%r14, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_atmel_join_bss
	movq	%r15, %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @atmel_set_wap.any
_atmel_set_wap.any:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.p2align	4                               ## @atmel_set_wap.off
_atmel_set_wap.off:
	.space	24

	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_atmel_set_wap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_set_wap
_atmel_set_wap:                         ; @atmel_set_wap
	.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, x2
	bl	_netdev_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x0, _atmel_set_wap.any@PAGE
Lloh4:
	add	x0, x0, _atmel_set_wap.any@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x20, #8]
Lloh5:
	adrp	x0, _atmel_set_wap.off@PAGE
Lloh6:
	add	x0, x0, _atmel_set_wap.off@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x22]
	ldr	w1, [x20, #8]
	mov	w2, #6
	bl	_memcmp
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	add	x0, x19, #8
	bl	_del_timer_sync
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #1
	bl	_atmel_scan
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_10:
	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_11:
	ldp	x8, x9, [x19, #16]
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	cbz	x9, LBB0_13
; %bb.12:
	cbnz	x8, LBB0_14
	b	LBB0_7
LBB0_13:
	cbnz	x8, LBB0_7
LBB0_14:
	add	x0, x19, #8
	bl	_del_timer_sync
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x21
	bl	_atmel_join_bss
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @atmel_set_wap.any
_atmel_set_wap.any:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.p2align	2                               ; @atmel_set_wap.off
_atmel_set_wap.off:
	.space	24

	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_atmel_set_wap
.subsections_via_symbols
