	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_rsa_pkcs1_sig_unpad         ## -- Begin function br_rsa_pkcs1_sig_unpad
	.p2align	4, 0x90
_br_rsa_pkcs1_sig_unpad:                ## @br_rsa_pkcs1_sig_unpad
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
	cmpq	$11, %rsi
	jb	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	_br_rsa_pkcs1_sig_unpad.pad1(%rip), %rsi
	movl	$10, %ebx
	movl	$10, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	negq	%rsi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$-1, (%r13,%rbx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
## %bb.5:
	movq	%r15, %rbx
LBB0_6:
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movzbl	(%rax), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	9(%rax), %r14
	leaq	-96(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	movq	%r15, %rcx
	subq	%rbx, %rcx
	subq	%r8, %rcx
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	cmpq	%r14, %rcx
	jne	LBB0_11
## %bb.10:
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	leaq	2(%r9), %rax
	jmp	LBB0_13
LBB0_7:
	movq	%r15, %rax
	subq	%rbx, %rax
	leaq	1(%r14), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.8:
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	cmpb	$0, (%r13,%rbx)
	jne	LBB0_15
	jmp	LBB0_14
LBB0_11:
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	leaq	11(%r9), %rax
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.12:
	leaq	4(%r9), %rax
	leaq	-96(%rbp), %rdx
	movb	$5, -4(%rcx,%rdx)
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
LBB0_13:
	movb	$48, -95(%rbp)
	leal	(%rax,%r8), %ecx
	addb	$4, %cl
	movb	%cl, -94(%rbp)
	movb	$48, -93(%rbp)
	movb	%al, -92(%rbp)
	movb	$6, -91(%rbp)
	leaq	-90(%rbp), %rdi
	incq	%r9
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	%r9, %rdx
	movq	%r8, %r14
	callq	_memcpy
	leaq	-96(%rbp), %rdi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movb	$4, -2(%rdx,%rdi)
	movb	%r14b, -1(%rdx,%rdi)
	addq	%r13, %rbx
	movq	%rbx, %rsi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_15
LBB0_14:
	addq	%r15, %r13
	addq	-104(%rbp), %r13                ## 8-byte Folded Reload
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movl	$1, %r12d
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_br_rsa_pkcs1_sig_unpad.pad1:           ## @br_rsa_pkcs1_sig_unpad.pad1
	.ascii	"\000\001\377\377\377\377\377\377\377\377"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_rsa_pkcs1_sig_unpad         ; -- Begin function br_rsa_pkcs1_sig_unpad
	.p2align	2
_br_rsa_pkcs1_sig_unpad:                ; @br_rsa_pkcs1_sig_unpad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	cmp	x1, #11
	b.lo	LBB0_2
; %bb.1:
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh3:
	adrp	x1, _br_rsa_pkcs1_sig_unpad.pad1@PAGE
Lloh4:
	add	x1, x1, _br_rsa_pkcs1_sig_unpad.pad1@PAGEOFF
	mov	w2, #10
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldr	x8, [sp, #56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	neg	x25, x19
	mov	w26, #10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x26]
	cmp	w8, #255
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	cmp	x21, x26
	b.ne	LBB0_6
; %bb.8:
	mov	x26, x21
LBB0_9:
	cbz	x23, LBB0_12
; %bb.10:
	ldrb	w27, [x23]
	add	x24, x27, #9
	add	x0, sp, #13
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	add	x8, x26, x19
	sub	x9, x21, x8
	cmp	x9, x24
	b.ne	LBB0_14
; %bb.11:
	add	x8, x27, #2
	b	LBB0_16
LBB0_12:
	add	x8, x19, #1
	sub	x9, x21, x26
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.13:
	ldrb	w8, [x22, x26]
	cbnz	w8, LBB0_2
	b	LBB0_17
LBB0_14:
	add	x8, x27, #11
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.15:
	add	x8, x27, #4
	add	x10, sp, #13
	add	x10, x9, x10
	mov	w11, #5
	sturb	w11, [x10, #-4]
	mov	x24, x9
LBB0_16:
	mov	w9, #48
	strb	w9, [sp, #14]
	add	w10, w8, w19
	add	w10, w10, #4
	strb	w10, [sp, #15]
	strb	w9, [sp, #16]
	strb	w8, [sp, #17]
	mov	w8, #6
	strb	w8, [sp, #18]
	add	x28, sp, #13
	add	x0, x28, #6
	add	x2, x27, #1
	mov	x1, x23
	bl	_memcpy
	add	x8, x24, x28
	mov	w9, #4
	sturb	w9, [x8, #-2]
	sturb	w19, [x8, #-1]
	add	x1, x22, x26
	add	x0, sp, #13
	mov	x2, x24
	bl	_memcmp
	cbnz	x0, LBB0_2
LBB0_17:
	add	x8, x22, x21
	add	x1, x8, x25
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #1
	b	LBB0_3
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_br_rsa_pkcs1_sig_unpad.pad1:           ; @br_rsa_pkcs1_sig_unpad.pad1
	.ascii	"\000\001\377\377\377\377\377\377\377\377"

.subsections_via_symbols
