	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_state4_machine
_rose_state4_machine:                   ## @rose_state4_machine
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_rose_sk
	movq	%rax, %r14
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	movl	$129, %esi
	callq	_rose_write_internal
LBB0_4:
	movq	%r12, %rdi
	callq	_rose_stop_timer
	movq	%r12, %rdi
	callq	_rose_start_idletimer
	movl	$0, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 20(%r14)
	movq	_ROSE_STATE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r12, %rdi
	callq	_rose_requeue_frames
	jmp	LBB0_6
LBB0_5:
	movq	_ROSE_CLEAR_CONFIRMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rose_write_internal
	movq	(%r15), %rax
	movl	12(%rax), %edx
	movl	16(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_rose_disconnect
	movq	8(%r14), %rax
	decl	(%rax)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROSE_STATE_3,4,2               ## @ROSE_STATE_3
	.comm	_ROSE_CLEAR_CONFIRMATION,4,2    ## @ROSE_CLEAR_CONFIRMATION
	.no_dead_strip	_rose_state4_machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_state4_machine
_rose_state4_machine:                   ; @rose_state4_machine
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_rose_sk
	mov	x20, x0
	cmp	w22, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #129
	bl	_rose_write_internal
LBB0_4:
	mov	x0, x19
	bl	_rose_stop_timer
	mov	x0, x19
	bl	_rose_start_idletimer
	str	wzr, [x20]
	stur	xzr, [x20, #28]
	stur	xzr, [x20, #20]
Lloh0:
	adrp	x8, _ROSE_STATE_3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROSE_STATE_3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_rose_requeue_frames
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ROSE_CLEAR_CONFIRMATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROSE_CLEAR_CONFIRMATION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rose_write_internal
	ldr	x8, [x21]
	ldp	w2, w3, [x8, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_rose_disconnect
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ROSE_STATE_3,4,2               ; @ROSE_STATE_3
	.comm	_ROSE_CLEAR_CONFIRMATION,4,2    ; @ROSE_CLEAR_CONFIRMATION
	.no_dead_strip	_rose_state4_machine
.subsections_via_symbols
