	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_divmod                      ## -- Begin function bc_divmod
	.p2align	4, 0x90
_bc_divmod:                             ## @bc_divmod
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_bc_is_zero
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	movslq	%r14d, %rsi
	addq	(%rbx), %rsi
	callq	_MAX
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_bc_init_num
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_bc_divide
	testq	%r12, %r12
	movq	%r12, %r15
	je	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_bc_copy_num
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movq	-48(%rbp), %rdi
	leaq	-48(%rbp), %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_bc_multiply
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_bc_sub
	movq	%r14, %rdi
	callq	_bc_free_num
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_bc_free_num
	movq	%r12, (%r15)
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bc_divmod                      ; -- Begin function bc_divmod
	.p2align	2
_bc_divmod:                             ; @bc_divmod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_bc_is_zero
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_8
LBB0_2:
	ldr	x0, [x21]
	ldr	x8, [x22]
	add	x1, x8, w23, sxtw
	bl	_MAX
	mov	x23, x0
	add	x0, sp, #8
	bl	_bc_init_num
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	bl	_bc_divide
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_bc_copy_num
	mov	x24, x0
	b	LBB0_5
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldr	x0, [sp, #8]
	add	x2, sp, #8
	mov	x1, x22
	mov	x3, x23
	bl	_bc_multiply
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x23
	bl	_bc_sub
	add	x0, sp, #8
	bl	_bc_free_num
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_bc_free_num
	mov	w0, #0
	str	x24, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
