	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pgp_read_public_key           ## -- Begin function _pgp_read_public_key
	.p2align	4, 0x90
__pgp_read_public_key:                  ## @_pgp_read_public_key
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-32(%rbp), %rdi
	callq	_pgp_key_alloc
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_GETBYTE
	movq	-32(%rbp), %rax
	cmpl	$4, (%rax)
	jne	LBB0_9
## %bb.2:
	movl	48(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_pullf_read_fixed
	testl	%eax, %eax
	js	LBB0_34
## %bb.3:
	movq	-32(%rbp), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_GETBYTE
	movq	-32(%rbp), %rsi
	movl	4(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_14
## %bb.4:
	addq	$28, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.5:
	movq	-32(%rbp), %rsi
	addq	$24, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.6:
	movq	-32(%rbp), %rdi
	callq	_calc_key_id
	movl	%eax, %ebx
	movq	-32(%rbp), %rax
	cmpl	$128, 4(%rax)
	je	LBB0_11
## %bb.7:
	movl	$1, 8(%rax)
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_36
LBB0_9:
	movq	_PXE_PGP_NOT_V4_KEYPKT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	testl	%ebx, %ebx
	js	LBB0_35
## %bb.12:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_36
LBB0_14:
	cmpl	$131, %eax
	je	LBB0_22
## %bb.15:
	cmpl	$132, %eax
	jne	LBB0_26
## %bb.16:
	addq	$44, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.17:
	movq	-32(%rbp), %rsi
	addq	$40, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.18:
	movq	-32(%rbp), %rsi
	addq	$36, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.19:
	movq	-32(%rbp), %rsi
	addq	$32, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.20:
	movq	-32(%rbp), %rdi
	callq	_calc_key_id
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_22:
	addq	$20, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.23:
	movq	-32(%rbp), %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.24:
	movq	-32(%rbp), %rsi
	addq	$12, %rsi
	movq	%r15, %rdi
	callq	_pgp_mpi_read
	testl	%eax, %eax
	js	LBB0_34
## %bb.25:
	movq	-32(%rbp), %rdi
	callq	_calc_key_id
	movl	%eax, %ebx
	movq	-32(%rbp), %rax
	movl	$1, 8(%rax)
	jmp	LBB0_11
LBB0_34:
	movl	%eax, %ebx
LBB0_35:
	movq	-32(%rbp), %rdi
	callq	_pgp_key_free
LBB0_36:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_px_debug
	movq	_PXE_PGP_UNKNOWN_PUBALGO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_PGP_NOT_V4_KEYPKT,4,2      ## @PXE_PGP_NOT_V4_KEYPKT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown public algo: %d"

	.comm	_PXE_PGP_UNKNOWN_PUBALGO,4,2    ## @PXE_PGP_UNKNOWN_PUBALGO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pgp_read_public_key           ; -- Begin function _pgp_read_public_key
	.p2align	2
__pgp_read_public_key:                  ; @_pgp_read_public_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_pgp_key_alloc
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GETBYTE
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #4
	b.ne	LBB0_8
; %bb.2:
	ldr	w2, [x8, #48]
	mov	x0, x20
	mov	w1, #4
	bl	_pullf_read_fixed
	tbnz	w0, #31, LBB0_24
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_GETBYTE
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #4]
	sub	w9, w1, #128
	cmp	w9, #3
	b.hs	LBB0_12
; %bb.4:
	add	x1, x8, #28
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.5:
	ldr	x8, [sp, #8]
	add	x1, x8, #24
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_calc_key_id
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	cmp	w9, #128
	b.eq	LBB0_10
	b	LBB0_23
LBB0_7:
	mov	x21, x0
	b	LBB0_26
LBB0_8:
Lloh0:
	adrp	x8, _PXE_PGP_NOT_V4_KEYPKT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_PGP_NOT_V4_KEYPKT@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
LBB0_10:
	tbnz	w21, #31, LBB0_25
; %bb.11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_26
LBB0_12:
	cmp	w1, #131
	b.eq	LBB0_19
; %bb.13:
	cmp	w1, #132
	b.ne	LBB0_27
; %bb.14:
	add	x1, x8, #44
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.15:
	ldr	x8, [sp, #8]
	add	x1, x8, #40
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.16:
	ldr	x8, [sp, #8]
	add	x1, x8, #36
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.17:
	ldr	x8, [sp, #8]
	add	x1, x8, #32
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.18:
	ldr	x0, [sp, #8]
	bl	_calc_key_id
	mov	x21, x0
	b	LBB0_10
LBB0_19:
	add	x1, x8, #20
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.20:
	ldr	x8, [sp, #8]
	add	x1, x8, #16
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.21:
	ldr	x8, [sp, #8]
	add	x1, x8, #12
	mov	x0, x20
	bl	_pgp_mpi_read
	tbnz	w0, #31, LBB0_24
; %bb.22:
	ldr	x0, [sp, #8]
	bl	_calc_key_id
	mov	x21, x0
	ldr	x8, [sp, #8]
LBB0_23:
	mov	w9, #1
	str	w9, [x8, #8]
	b	LBB0_10
LBB0_24:
	mov	x21, x0
LBB0_25:
	ldr	x0, [sp, #8]
	bl	_pgp_key_free
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_27:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_px_debug
Lloh4:
	adrp	x8, _PXE_PGP_UNKNOWN_PUBALGO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PXE_PGP_UNKNOWN_PUBALGO@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_PGP_NOT_V4_KEYPKT,4,2      ; @PXE_PGP_NOT_V4_KEYPKT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown public algo: %d"

	.comm	_PXE_PGP_UNKNOWN_PUBALGO,4,2    ; @PXE_PGP_UNKNOWN_PUBALGO
.subsections_via_symbols
