	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spsp
_spsp:                                  ## @spsp
	.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	%edi, %r14d
	leal	-1(%r14), %r12d
	testb	$1, %r12b
	jne	LBB0_8
## %bb.1:
	movl	$1, %ebx
	movl	%r12d, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	sarl	%eax
	incl	%ebx
	testb	$2, %cl
	je	LBB0_2
## %bb.3:
	movl	%esi, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_powmod
	movl	$1, %r15d
	cmpl	$1, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	movl	$2, %esi
	movl	%r14d, %edx
	callq	_powmod
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_4
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_8:
	movl	%esi, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_powmod
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	sete	%r15b
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spsp
_spsp:                                  ; @spsp
	.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	x19, x0
	sub	w20, w0, #1
	tbnz	w20, #0, LBB0_7
; %bb.1:
	mov	w21, #1
	mov	x8, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	asr	w8, w8, #1
	add	w21, w21, #1
	tbz	w9, #1, LBB0_2
; %bb.3:
	mov	x0, x1
	mov	x1, x8
	mov	x2, x19
	bl	_powmod
	cmp	w0, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, w20
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #2
	mov	x2, x19
	bl	_powmod
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_4
; %bb.6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x1
	mov	x1, x20
	mov	x2, x19
	bl	_powmod
	cmp	w0, #1
	cset	w0, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #1
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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spsp
.subsections_via_symbols
