	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pubkey
_read_pubkey:                           ## @read_pubkey
	.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	%r12
	pushq	%rbx
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	movq	%rax, %r14
	leaq	-4144(%rbp), %rsi
	movl	%r15d, %edi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_read
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	leaq	-4144(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sbuf_bcat
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_read
	testl	%eax, %eax
	jg	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_sbuf_finish
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_sbuf_len
	movl	%eax, %ebx
	movl	%eax, (%r15)
	movl	$1, %edi
	movl	%eax, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	callq	_sbuf_data
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_sbuf_delete
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	xorl	%r15d, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rax
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lseek"

	.no_dead_strip	_read_pubkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pubkey
_read_pubkey:                           ; @read_pubkey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w1, #0
	mov	w2, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	bl	_sbuf_new_auto
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4096
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x2, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_sbuf_bcat
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4096
	bl	_read
	mov	x2, x0
	cmp	w0, #0
	b.gt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_sbuf_finish
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x20, x0
	mov	x0, x19
	bl	_sbuf_len
	mov	x21, x0
	str	w0, [x20]
	mov	w0, #1
	mov	x1, x21
	bl	_calloc
	mov	x22, x0
	str	x0, [x20, #8]
	mov	x0, x19
	bl	_sbuf_data
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	bl	_sbuf_delete
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	x20, #0
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lseek"

	.no_dead_strip	_read_pubkey
.subsections_via_symbols
