	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_close
_atmel_close:                           ## @atmel_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_STATION_STATE_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	xorl	%edi, %edi
	callq	_eth_zero_addr
	movl	16(%rbx), %edi
	movq	_SIOCGIWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_wireless_send_event
LBB0_2:
	movq	_STATION_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atmel_enter_state
	movq	8(%rbx), %rax
	movq	_BUS_TYPE_PCCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_GCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$96, %edx
	callq	_atmel_write16
LBB0_4:
	movq	_GCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_atmel_write16
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATION_STATE_READY,8,3        ## @STATION_STATE_READY
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
	.comm	_SIOCGIWAP,4,2                  ## @SIOCGIWAP
	.comm	_STATION_STATE_DOWN,4,2         ## @STATION_STATE_DOWN
	.comm	_BUS_TYPE_PCCARD,8,3            ## @BUS_TYPE_PCCARD
	.comm	_GCR,4,2                        ## @GCR
	.no_dead_strip	_atmel_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_close
_atmel_close:                           ; @atmel_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STATION_STATE_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATION_STATE_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	stp	xzr, xzr, [sp]
Lloh3:
	adrp	x8, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	mov	w0, #0
	bl	_eth_zero_addr
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x8, _SIOCGIWAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGIWAP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x3, #0
	bl	_wireless_send_event
LBB0_2:
Lloh9:
	adrp	x8, _STATION_STATE_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATION_STATE_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_atmel_enter_state
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _BUS_TYPE_PCCARD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BUS_TYPE_PCCARD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x20, _GCR@GOTPAGE
Lloh16:
	ldr	x20, [x20, _GCR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #96
	bl	_atmel_write16
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #64
	bl	_atmel_write16
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STATION_STATE_READY,8,3        ; @STATION_STATE_READY
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
	.comm	_SIOCGIWAP,4,2                  ; @SIOCGIWAP
	.comm	_STATION_STATE_DOWN,4,2         ; @STATION_STATE_DOWN
	.comm	_BUS_TYPE_PCCARD,8,3            ; @BUS_TYPE_PCCARD
	.comm	_GCR,4,2                        ; @GCR
	.no_dead_strip	_atmel_close
.subsections_via_symbols
