	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_mpi_alloc                  ## -- Begin function pgp_mpi_alloc
	.p2align	4, 0x90
_pgp_mpi_alloc:                         ## @pgp_mpi_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	cmpl	$65536, %edi                    ## imm = 0x10000
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_px_debug
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r14
	leal	7(%rbx), %r15d
	shrl	$3, %r15d
	leal	16(%r15), %edi
	callq	_px_alloc
	movl	%ebx, (%rax)
	movl	%r15d, 4(%rax)
	leaq	64(%rax), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pgp_mpi_alloc: unreasonable request: bits=%d"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_mpi_alloc                  ; -- Begin function pgp_mpi_alloc
	.p2align	2
_pgp_mpi_alloc:                         ; @pgp_mpi_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_px_debug
Lloh2:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	add	w8, w20, #7
	lsr	w21, w8, #3
	add	w0, w21, #16
	bl	_px_alloc
	mov	x8, x0
	mov	w0, #0
	stp	w20, w21, [x8]
	add	x9, x8, #64
	str	x9, [x8, #8]
	str	x8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pgp_mpi_alloc: unreasonable request: bits=%d"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
.subsections_via_symbols
