	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_rsa_pkcs1_sig_pad           ## -- Begin function br_rsa_pkcs1_sig_pad
	.p2align	4, 0x90
_br_rsa_pkcs1_sig_pad:                  ## @br_rsa_pkcs1_sig_pad
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %r15
	addl	$7, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r13
	movzbl	(%rdi), %r14d
	leaq	(%r14,%r15), %rcx
	addq	$21, %rcx
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	ja	LBB0_6
## %bb.4:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r15
	movw	$256, (%r12)                    ## imm = 0x100
	subq	%r15, %rbx
	leaq	2(%r12), %rdi
	leaq	-13(%rbx), %rdx
	movl	$255, %esi
	callq	_memset
	movw	$12288, -11(%r12,%rbx)          ## imm = 0x3000
	addb	$8, %r15b
	movb	%r15b, -9(%rbx,%r12)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movb	$48, -8(%rbx,%r12)
	leal	4(%r14), %eax
	movb	%al, -7(%rbx,%r12)
	movb	$6, -6(%rbx,%r12)
	leaq	(%r12,%rbx), %rdi
	addq	$-5, %rdi
	leaq	1(%r14), %rdx
	movq	%r13, %rsi
	callq	_memcpy
	leaq	(%r14,%rbx), %rax
	decq	%rax
	addq	%r14, %rbx
	addq	$-11, %rbx
	movw	$5, 7(%r12,%rbx)
	movb	$4, 9(%r12,%rbx)
	addq	$11, %rbx
	movl	%r15d, %ecx
	jmp	LBB0_5
LBB0_1:
	leaq	11(%r15), %rcx
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	ja	LBB0_6
## %bb.2:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movw	$256, (%r12)                    ## imm = 0x100
	subq	%r15, %rbx
	leaq	2(%r12), %rdi
	leaq	-3(%rbx), %rdx
	movl	$255, %esi
	callq	_memset
	leaq	-1(%rbx), %rax
	xorl	%ecx, %ecx
LBB0_5:
	movb	%cl, (%r12,%rax)
	addq	%r12, %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movl	$1, %eax
LBB0_6:
	addq	$24, %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	_br_rsa_pkcs1_sig_pad           ; -- Begin function br_rsa_pkcs1_sig_pad
	.p2align	2
_br_rsa_pkcs1_sig_pad:                  ; @br_rsa_pkcs1_sig_pad
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x19, x2
	mov	x20, x1
	add	w8, w3, #7
	sbfx	x8, x8, #3, #29
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldrb	w23, [x0]
	add	x24, x23, x19
	add	x9, x24, #21
	cmp	x9, x8
	b.hi	LBB0_4
; %bb.2:
	mov	w9, #256
	mov	x0, x21
	strh	w9, [x0], #2
	sub	x25, x8, x24
	sub	x26, x25, #11
	sub	x2, x25, #13
	mov	w1, #255
	bl	_memset
	add	x0, x21, x26
	mov	w8, #12288
	strh	w8, [x0], #6
	add	w8, w24, #8
	add	x9, x25, x21
	sturb	w8, [x9, #-9]
	mov	w8, #48
	sturb	w8, [x9, #-8]
	add	w8, w23, #4
	sturb	w8, [x9, #-7]
	mov	w8, #6
	add	x2, x23, #1
	sturb	w8, [x9, #-6]
	mov	x1, x22
	bl	_memcpy
	add	x9, x23, x26
	add	x10, x9, x21
	mov	w8, #5
	sturh	w8, [x10, #7]
	add	x8, x9, #10
	mov	w11, #4
	strb	w11, [x10, #9]
	add	x22, x9, #11
	mov	x9, x19
	b	LBB0_6
LBB0_3:
	add	x9, x19, #11
	cmp	x9, x8
	b.ls	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w9, #256
	mov	x0, x21
	strh	w9, [x0], #2
	sub	x22, x8, x19
	sub	x2, x22, #3
	mov	w1, #255
	bl	_memset
	mov	w9, #0
	sub	x8, x22, #1
LBB0_6:
	strb	w9, [x21, x8]
	add	x0, x21, x22
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #1
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
