	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_node_variant_mask
_read_node_variant_mask:                ## @read_node_variant_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$15, %eax
	jg	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_read_max_2_bytes
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
LBB0_3:
	cmpl	$32, %eax
	ja	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_read_multiple_bytes
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	cmpl	$64, %eax
	ja	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_read_multiple_bytes
	movq	%r14, %rdi
	callq	_read_multiple_bytes
LBB0_7:
	movq	_buf_eof@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_buf_err@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	orq	(%rdx), %rcx
	jne	LBB0_9
LBB0_8:
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf_eof,8,3                    ## @buf_eof
	.comm	_buf_err,8,3                    ## @buf_err
	.no_dead_strip	_read_node_variant_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_node_variant_mask
_read_node_variant_mask:                ; @read_node_variant_mask
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #15
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_read_max_2_bytes
	b	LBB0_4
LBB0_2:
	cmp	w8, #32
	b.hi	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_read_multiple_bytes
LBB0_4:
Lloh0:
	adrp	x8, _buf_eof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buf_eof@GOTPAGEOFF]
	str	x0, [x20, #8]
LBB0_5:
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _buf_err@GOTPAGE
Lloh3:
	ldr	x9, [x9, _buf_err@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_9
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	cmp	w8, #64
	b.hi	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_read_multiple_bytes
	mov	x0, x19
	bl	_read_multiple_bytes
Lloh5:
	adrp	x8, _buf_eof@GOTPAGE
Lloh6:
	ldr	x8, [x8, _buf_eof@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_buf_eof,8,3                    ; @buf_eof
	.comm	_buf_err,8,3                    ; @buf_err
	.no_dead_strip	_read_node_variant_mask
.subsections_via_symbols
