	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_rsa_i32_public              ## -- Begin function br_rsa_i32_public
	.p2align	4, 0x90
_br_rsa_i32_public:                     ## @br_rsa_i32_public
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BR_MAX_RSA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %ebx
	sarl	$5, %ebx
	incl	%ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	8(%r15), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%r15), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rsi)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	decq	%rax
	jne	LBB0_2
	jmp	LBB0_7
LBB0_4:
	sarl	$3, %r12d
	movslq	%r12d, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_7
## %bb.5:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_br_i32_decode
	movl	4(%r13), %edi
	callq	_br_i32_ninv32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_br_i32_decode_mod
	movl	%eax, %r14d
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	andl	%r8d, %r14d
	andl	$1, %r14d
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r13, %rcx
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_br_i32_modpow
	addq	$16, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_br_i32_encode
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_MAX_RSA_SIZE,4,2            ## @BR_MAX_RSA_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_rsa_i32_public              ; -- Begin function br_rsa_i32_public
	.p2align	2
_br_rsa_i32_public:                     ; @br_rsa_i32_public
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _BR_MAX_RSA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BR_MAX_RSA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	asr	w8, w12, #5
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x23, x9, x13
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x13
	mov	sp, x22
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x13
	mov	sp, x24
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x13
	mov	sp, x25
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x1, [x21]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1]
	cbnz	w9, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x1, #1
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w26, #0
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w26, #0
	asr	w9, w12, #3
	cmp	x8, w9, sxtw
	b.hi	LBB0_5
; %bb.8:
	cmp	x19, x8
	b.ne	LBB0_5
; %bb.9:
	mov	x0, x23
	mov	x2, x19
	bl	_br_i32_decode
	ldr	w0, [x23, #4]
	bl	_br_i32_ninv32
	mov	x27, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_br_i32_decode_mod
	and	w8, w27, w0
	and	w26, w8, #0x1
	ldp	w2, w1, [x21, #16]
	mov	x0, x22
	mov	x3, x23
	mov	x4, x27
	mov	x5, x24
	mov	x6, x25
	bl	_br_i32_modpow
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_br_i32_encode
	b	LBB0_5
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_MAX_RSA_SIZE,4,2            ; @BR_MAX_RSA_SIZE
.subsections_via_symbols
