	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pad_eme_pkcs1_v15
_pad_eme_pkcs1_v15:                     ## @pad_eme_pkcs1_v15
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	subl	%esi, %r12d
	addl	$-2, %r12d
	cmpl	$7, %r12d
	jg	LBB0_2
## %bb.1:
	movq	_PXE_BUG@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_px_alloc
	movq	%rax, %rbx
	movq	$2, (%rax)
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_pg_strong_random
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,8), %r15
	addq	$8, %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	(%r13,%rcx,8), %r13
	cmpq	%r15, %r13
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_pg_strong_random
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	jmp	LBB0_7
LBB0_8:
	movslq	%r12d, %rax
	movq	$0, 8(%rbx,%rax,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rdi
	addq	$16, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_px_memset
LBB0_10:
	movq	%rbx, %rdi
	callq	_px_free
	movq	_PXE_NO_RANDOM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_BUG,4,2                    ## @PXE_BUG
	.comm	_PXE_NO_RANDOM,4,2              ## @PXE_NO_RANDOM
	.no_dead_strip	_pad_eme_pkcs1_v15
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pad_eme_pkcs1_v15
_pad_eme_pkcs1_v15:                     ; @pad_eme_pkcs1_v15
	.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
	sub	w8, w2, w1
	sub	w24, w8, #2
	cmp	w24, #7
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PXE_BUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_BUG@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_px_alloc
	mov	x20, x0
	mov	w8, #2
	mov	x25, x0
	str	x8, [x25], #8
	mov	x0, x25
	mov	x1, x24
	bl	_pg_strong_random
	cbz	w0, LBB0_10
; %bb.3:
	add	x8, x20, w24, uxtw #3
	add	x26, x8, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x8, #0
	cset	w8, ne
	add	x25, x25, w8, uxtw #3
	cmp	x25, x26
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	w1, #1
	bl	_pg_strong_random
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	b	LBB0_4
LBB0_8:
	add	w8, w24, #1
	str	xzr, [x20, w8, sxtw #3]
	add	x8, x20, x24, lsl #3
	add	x0, x8, #16
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_px_memset
LBB0_10:
	mov	x0, x20
	bl	_px_free
Lloh2:
	adrp	x8, _PXE_NO_RANDOM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXE_NO_RANDOM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_BUG,4,2                    ; @PXE_BUG
	.comm	_PXE_NO_RANDOM,4,2              ; @PXE_NO_RANDOM
	.no_dead_strip	_pad_eme_pkcs1_v15
.subsections_via_symbols
