	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS1_MGF1                     ## -- Begin function PKCS1_MGF1
	.p2align	4, 0x90
_PKCS1_MGF1:                            ## @PKCS1_MGF1
	.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	$88, %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	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %rbx
	movq	%rsp, %r14
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_EVP_MD_size
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	testq	%r13, %r13
	jle	LBB0_14
## %bb.3:
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	bswapl	%eax
	movl	%eax, -84(%rbp)
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	-84(%rbp), %rsi
	movl	$4, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%r12,%rax), %r14
	cmpq	%r13, %r14
	jg	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	-96(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	%r14, %r12
	cmpq	%r13, %r14
	jl	LBB0_4
## %bb.10:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_12:
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_13:
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_15
LBB0_14:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	movl	%r15d, %esi
	callq	_OPENSSL_cleanse
	movq	%rbx, %rdi
	callq	_EVP_MD_CTX_free
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.17:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	movq	%r14, %rdi
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.19:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	addq	%r12, %rdi
	subq	%r12, %r13
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS1_MGF1                     ; -- Begin function PKCS1_MGF1
	.p2align	2
_PKCS1_MGF1:                            ; @PKCS1_MGF1
	.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, #48
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x22, x1
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_EVP_MD_CTX_new
	mov	x19, x0
	mov	x23, sp
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	x0, LBB0_10
; %bb.1:
	mov	x0, x24
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_10
; %bb.2:
	cmp	x22, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x28, #0
	mov	x27, #0
	mov	w8, w0
	stp	x23, x8, [x29, #-120]           ; 16-byte Folded Spill
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	rev	w8, w28
	stur	w8, [x29, #-92]
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x29, #92
	mov	x0, x19
	mov	w2, #4
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x23, x27, x8
	cmp	x23, x22
	b.gt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x1, x8, x27
	mov	x0, x19
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	mov	x27, x23
	cmp	x23, x22
	b.lt	LBB0_4
	b	LBB0_14
LBB0_10:
	mov	w22, #-1
	b	LBB0_17
LBB0_11:
	mov	w22, #0
	b	LBB0_17
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_15
; %bb.13:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x0, x8, x27
	sub	x2, x22, x27
	mov	x1, x21
	bl	_memcpy
LBB0_14:
	mov	w22, #0
	b	LBB0_16
LBB0_15:
	mov	w22, #-1
LBB0_16:
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	bl	_OPENSSL_cleanse
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x22
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
.subsections_via_symbols
