	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_raisemod                    ## -- Begin function bc_raisemod
	.p2align	4, 0x90
_bc_raisemod:                           ## @bc_raisemod
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_bc_is_zero
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_bc_is_neg
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_bc_copy_num
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	movq	%r13, %rdi
	callq	_bc_copy_num
	movq	%rax, %r12
	movq	%rax, -64(%rbp)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_bc_copy_num
	movq	%rax, %r14
	movq	%rax, -72(%rbp)
	movq	__one_@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_BCG
	movq	%rax, %rdi
	callq	_bc_copy_num
	movq	%rax, -56(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_bc_init_num
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	leaq	-48(%rbp), %rdi
	callq	__bc_truncate
LBB0_4:
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	leaq	-64(%rbp), %rdi
	callq	__bc_truncate
LBB0_6:
	cmpq	$0, (%r14)
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_8
## %bb.7:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	leaq	-72(%rbp), %rdi
	callq	__bc_truncate
LBB0_8:
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_MAX
	movl	%eax, %r13d
	movq	-72(%rbp), %r14
	movl	(%r15), %edi
	callq	_BCG
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bc_compare
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	-64(%rbp), %rdi
	callq	_bc_is_zero
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	leaq	-88(%rbp), %r15
	leaq	-48(%rbp), %r14
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rdi
	movq	%rdi, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_bc_multiply
	movq	-48(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_bc_modulo
	movq	-64(%rbp), %rdi
	callq	_bc_is_zero
	testq	%rax, %rax
	jne	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r12
	movq	__two_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BCG
	movq	%r12, %rdi
	movq	%rax, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_bc_divmod
	movq	-88(%rbp), %rdi
	callq	_bc_is_zero
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_bc_multiply
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_bc_modulo
	jmp	LBB0_13
LBB0_16:
	leaq	-56(%rbp), %rdi
	callq	_bc_free_num
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_bc_new_num
	movq	%rax, -56(%rbp)
LBB0_14:
	leaq	-48(%rbp), %rdi
	callq	_bc_free_num
	leaq	-64(%rbp), %rdi
	callq	_bc_free_num
	leaq	-72(%rbp), %rdi
	callq	_bc_free_num
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bc_free_num
	leaq	-88(%rbp), %rdi
	callq	_bc_free_num
	movq	-56(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__one_,4,2                      ## @_one_
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-zero scale in base"

L_.str.1:                               ## @.str.1
	.asciz	"non-zero scale in exponent"

L_.str.2:                               ## @.str.2
	.asciz	"non-zero scale in modulus"

	.comm	__two_,4,2                      ## @_two_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_raisemod                    ; -- Begin function bc_raisemod
	.p2align	2
_bc_raisemod:                           ; @bc_raisemod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	bl	_bc_is_zero
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_bc_is_neg
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x0, x23
	bl	_bc_copy_num
	mov	x23, x0
	str	x0, [sp, #40]
	mov	x0, x22
	bl	_bc_copy_num
	mov	x22, x0
	str	x0, [sp, #32]
	mov	x0, x21
	bl	_bc_copy_num
	mov	x21, x0
	str	x0, [sp, #24]
Lloh0:
	adrp	x24, __one_@GOTPAGE
Lloh1:
	ldr	x24, [x24, __one_@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_BCG
	bl	_bc_copy_num
	str	x0, [sp, #8]
	add	x0, sp, #16
	bl	_bc_init_num
	ldr	x8, [x23]
Lloh2:
	adrp	x23, _E_WARNING@GOTPAGE
Lloh3:
	ldr	x23, [x23, _E_WARNING@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x23]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	add	x0, sp, #40
	bl	__bc_truncate
LBB0_6:
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x23]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	add	x0, sp, #32
	bl	__bc_truncate
LBB0_8:
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x23]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	add	x0, sp, #24
	bl	__bc_truncate
LBB0_10:
	ldr	x8, [sp, #40]
	ldr	x1, [x8]
	mov	x0, x20
	bl	_MAX
	mov	x21, x0
	ldr	x22, [sp, #24]
	ldr	w0, [x24]
	bl	_BCG
	mov	x1, x0
	mov	x0, x22
	bl	_bc_compare
	cbz	w0, LBB0_16
; %bb.11:
	ldr	x0, [sp, #32]
	bl	_bc_is_zero
	cbnz	x0, LBB0_17
; %bb.12:
Lloh10:
	adrp	x23, __two_@GOTPAGE
Lloh11:
	ldr	x23, [x23, __two_@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp, #40]
	add	x2, sp, #40
	mov	x1, x0
	mov	x3, x21
	bl	_bc_multiply
	ldr	x0, [sp, #40]
	ldr	x1, [sp, #24]
	add	x2, sp, #40
	mov	x3, x20
	bl	_bc_modulo
	ldr	x0, [sp, #32]
	bl	_bc_is_zero
	cbnz	x0, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [sp, #32]
	ldr	w0, [x23]
	bl	_BCG
	mov	x1, x0
	add	x2, sp, #32
	add	x3, sp, #16
	mov	x0, x22
	mov	w4, #0
	bl	_bc_divmod
	ldr	x0, [sp, #16]
	bl	_bc_is_zero
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp, #8]
	ldr	x1, [sp, #40]
	add	x2, sp, #8
	mov	x3, x21
	bl	_bc_multiply
	ldr	x0, [sp, #8]
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	mov	x3, x20
	bl	_bc_modulo
	b	LBB0_13
LBB0_16:
	add	x0, sp, #8
	bl	_bc_free_num
	mov	w0, #1
	mov	x1, x20
	bl	_bc_new_num
	str	x0, [sp, #8]
LBB0_17:
	add	x0, sp, #40
	bl	_bc_free_num
	add	x0, sp, #32
	bl	_bc_free_num
	add	x0, sp, #24
	bl	_bc_free_num
	mov	x0, x19
	bl	_bc_free_num
	add	x0, sp, #16
	bl	_bc_free_num
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__one_,4,2                      ; @_one_
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-zero scale in base"

l_.str.1:                               ; @.str.1
	.asciz	"non-zero scale in exponent"

l_.str.2:                               ; @.str.2
	.asciz	"non-zero scale in modulus"

	.comm	__two_,4,2                      ; @_two_
.subsections_via_symbols
