	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_enter_state
_atmel_enter_state:                     ## @atmel_enter_state
	.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
	movl	(%rdi), %r14d
	cmpl	%esi, %r14d
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	_STATION_STATE_READY@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%esi, %eax
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_netif_start_queue
	movl	16(%rbx), %edi
	callq	_netif_carrier_on
	movl	(%r15), %eax
LBB0_3:
	cmpl	%eax, %r14d
	jne	LBB0_7
## %bb.4:
	movl	16(%rbx), %edi
	callq	_netif_carrier_off
	movl	16(%rbx), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	16(%rbx), %edi
	callq	_netif_stop_queue
LBB0_6:
	movq	$0, 8(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATION_STATE_READY,4,2        ## @STATION_STATE_READY
	.no_dead_strip	_atmel_enter_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_enter_state
_atmel_enter_state:                     ; @atmel_enter_state
	.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
	ldr	w20, [x0]
	cmp	w20, w1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	str	w1, [x0]
Lloh0:
	adrp	x21, _STATION_STATE_READY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STATION_STATE_READY@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_netif_start_queue
	ldr	w0, [x19, #16]
	bl	_netif_carrier_on
	ldr	w8, [x21]
LBB0_3:
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_netif_carrier_off
	ldr	w0, [x19, #16]
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #16]
	bl	_netif_stop_queue
LBB0_6:
	str	xzr, [x19, #8]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STATION_STATE_READY,4,2        ; @STATION_STATE_READY
	.no_dead_strip	_atmel_enter_state
.subsections_via_symbols
