	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twiddle                        ## -- Begin function twiddle
	.p2align	4, 0x90
_twiddle:                               ## @twiddle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	_twiddle.callercnt(%rip), %eax
	incl	%eax
	movl	%eax, _twiddle.callercnt(%rip)
	cmpl	$2, %edi
	jl	LBB0_2
## %bb.1:
	cltd
	idivl	%edi
	testl	%edx, %edx
	jne	LBB0_4
LBB0_2:
	movl	_twiddle.globalcnt(%rip), %eax
	incl	%eax
	movl	%eax, _twiddle.globalcnt(%rip)
	movq	_globaldiv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.3:
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_5
LBB0_4:
	popq	%rbp
	retq
LBB0_5:
	movl	_twiddle.pos(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _twiddle.pos(%rip)
	andl	$3, %eax
	leaq	L_.str(%rip), %rcx
	movsbl	(%rax,%rcx), %edi
	callq	_putchar
	movl	$8, %edi
	popq	%rbp
	jmp	_putchar                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_twiddle.callercnt,4,2 ## @twiddle.callercnt
.zerofill __DATA,__bss,_twiddle.globalcnt,4,2 ## @twiddle.globalcnt
.zerofill __DATA,__bss,_twiddle.pos,4,2 ## @twiddle.pos
	.comm	_globaldiv,4,2                  ## @globaldiv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|/-\\"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twiddle                        ; -- Begin function twiddle
	.p2align	2
_twiddle:                               ; @twiddle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	adrp	x9, _twiddle.callercnt@PAGE
	ldr	w8, [x9, _twiddle.callercnt@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x9, _twiddle.callercnt@PAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	sdiv	w9, w8, w0
	msub	w8, w9, w0, w8
	cbnz	w8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x9, _twiddle.globalcnt@PAGE
	ldr	w8, [x9, _twiddle.globalcnt@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x9, _twiddle.globalcnt@PAGEOFF]
Lloh1:
	adrp	x9, _globaldiv@GOTPAGE
Lloh2:
	ldr	x9, [x9, _globaldiv@GOTPAGEOFF]
Lloh3:
	ldr	w9, [x9]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.3:
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	adrp	x8, _twiddle.pos@PAGE
	ldr	w9, [x8, _twiddle.pos@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _twiddle.pos@PAGEOFF]
	and	x8, x9, #0x3
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
	ldrsb	w0, [x9, x8]
	bl	_putchar
	mov	w0, #8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_putchar
	.loh AdrpLdrGotLdr	Lloh1, Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_twiddle.callercnt,4,2 ; @twiddle.callercnt
.zerofill __DATA,__bss,_twiddle.globalcnt,4,2 ; @twiddle.globalcnt
.zerofill __DATA,__bss,_twiddle.pos,4,2 ; @twiddle.pos
	.comm	_globaldiv,4,2                  ; @globaldiv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|/-\\"

.subsections_via_symbols
