	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_read_unsigned           ## -- Begin function mp_int_read_unsigned
	.p2align	4, 0x90
_mp_int_read_unsigned:                  ## @mp_int_read_unsigned
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	testl	%edx, %edx
	setg	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_CHAR_BIT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	imull	%ebx, %eax
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_s_pad
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_mp_int_zero
	movq	_MP_OK@GOTPCREL(%rip), %rax
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	incl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_s_qmul
	movzbl	(%r14), %r13d
	movq	%r15, %rdi
	callq	_MP_DIGITS
	orb	%r13b, (%rax)
	incq	%r14
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_4
## %bb.5:
	movq	_MP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_MP_MEMORY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.comm	_MP_DIGIT_BIT,4,2               ## @MP_DIGIT_BIT
	.comm	_MP_MEMORY,4,2                  ## @MP_MEMORY
	.comm	_MP_OK,4,2                      ## @MP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_read_unsigned           ; -- Begin function mp_int_read_unsigned
	.p2align	2
_mp_int_read_unsigned:                  ; @mp_int_read_unsigned
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	ccmp	w2, #0, #4, ne
	cset	w0, gt
	bl	_assert
Lloh0:
	adrp	x22, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHAR_BIT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _MP_DIGIT_BIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	madd	w8, w8, w21, w9
	sub	w8, w8, #1
	sdiv	w1, w8, w9
	mov	x0, x20
	bl	_s_pad
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_mp_int_zero
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.2:
	add	w23, w21, #1
Lloh5:
	adrp	x21, _MP_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MP_OK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_s_qmul
	ldrb	w24, [x19], #1
	mov	x0, x20
	bl	_MP_DIGITS
	ldrb	w8, [x0]
	orr	w8, w8, w24
	strb	w8, [x0]
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x21, _MP_MEMORY@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MP_MEMORY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x21, _MP_OK@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MP_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.comm	_MP_MEMORY,4,2                  ; @MP_MEMORY
	.comm	_MP_OK,4,2                      ; @MP_OK
.subsections_via_symbols
