	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_set_scan
_atmel_set_scan:                        ## @atmel_set_scan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_STATION_STATE_DOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	shlq	$2, %rsi
	addq	40(%r14), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_SITE_SURVEY_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_6
LBB0_4:
	movq	8(%r14), %rax
LBB0_6:
	movq	(%rbx), %rcx
	movq	%rcx, 40(%r14)
	movq	_SITE_SURVEY_IN_PROGRESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	leaq	32(%r14), %rdi
	callq	_del_timer_sync
	movq	%r14, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	$0, 24(%r14)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atmel_scan
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATION_STATE_DOWN,8,3         ## @STATION_STATE_DOWN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SITE_SURVEY_IDLE,8,3           ## @SITE_SURVEY_IDLE
	.comm	_SITE_SURVEY_IN_PROGRESS,8,3    ## @SITE_SURVEY_IN_PROGRESS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_atmel_set_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_set_scan
_atmel_set_scan:                        ; @atmel_set_scan
	.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
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STATION_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATION_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x20, _jiffies@GOTPAGE
Lloh6:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	x8, [x19, #40]
Lloh7:
	adrp	x9, _HZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	mov	w10, #20
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _SITE_SURVEY_IDLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SITE_SURVEY_IDLE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
LBB0_5:
	ldr	x9, [x20]
	str	x9, [x19, #40]
Lloh13:
	adrp	x21, _SITE_SURVEY_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SITE_SURVEY_IN_PROGRESS@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	add	x0, x19, #32
	bl	_del_timer_sync
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	str	x8, [x19, #8]
	str	xzr, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_atmel_scan
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_9:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STATION_STATE_DOWN,8,3         ; @STATION_STATE_DOWN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SITE_SURVEY_IDLE,8,3           ; @SITE_SURVEY_IDLE
	.comm	_SITE_SURVEY_IN_PROGRESS,8,3    ; @SITE_SURVEY_IN_PROGRESS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_atmel_set_scan
.subsections_via_symbols
