	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_node_bytes
_read_node_bytes:                       ## @read_node_bytes
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	js	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	decb	%r12b
	movl	$1, %r13d
	movl	%r12d, %ecx
	shlq	%cl, %r13
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	cmpl	$0, (%r14)
	jle	LBB0_11
## %bb.4:
	movl	$1, %ebx
	movq	_buf_err@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	movl	24(%r14), %edx
	andl	%r13d, %edx
	setne	%cl
	movl	%ecx, -4(%rax,%rbx,4)
	testl	%r13d, 24(%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	$0, -4(%rax,%rbx,4)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_read_byte
	movq	8(%r14), %rcx
	movl	%eax, -4(%rcx,%rbx,4)
	movq	_buf_eof@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	(%r12), %rax
	jne	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	sarl	%r13d
	movq	16(%r14), %rax
	incq	%rbx
	jmp	LBB0_5
LBB0_11:
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_buf_eof,8,3                    ## @buf_eof
	.comm	_buf_err,8,3                    ## @buf_err
	.no_dead_strip	_read_node_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_node_bytes
_read_node_bytes:                       ; @read_node_bytes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	ldr	w21, [x0]
	tbnz	w21, #31, LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x21
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w0, [x20]
	bl	_malloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x22, #0
	sub	w8, w21, #1
	mov	w9, #1
	lsl	x21, x9, x8
Lloh0:
	adrp	x23, _buf_eof@GOTPAGE
Lloh1:
	ldr	x23, [x23, _buf_eof@GOTPAGEOFF]
Lloh2:
	adrp	x24, _buf_err@GOTPAGE
Lloh3:
	ldr	x24, [x24, _buf_err@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #24]
	tst	w8, w21
	cset	w8, ne
	str	w8, [x0, x22, lsl #2]
	ldr	w8, [x20, #24]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	str	wzr, [x8, x22, lsl #2]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_read_byte
	ldr	x8, [x20, #8]
	str	w0, [x8, x22, lsl #2]
	ldr	x8, [x23]
	ldr	x9, [x24]
	orr	x8, x8, x9
	cbnz	x8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	asr	w21, w21, #1
	ldr	x0, [x20, #16]
	b	LBB0_5
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_buf_eof,8,3                    ; @buf_eof
	.comm	_buf_err,8,3                    ; @buf_err
	.no_dead_strip	_read_node_bytes
.subsections_via_symbols
