	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sw_in_master_stree
_sw_in_master_stree:                    ## @sw_in_master_stree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	cmpq	%rdi, (%rax)
	sete	%r8b
	movq	_TORUS_MAX_DIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	addl	%eax, %eax
	cmpl	$2, %eax
	movl	$1, %esi
	cmovgel	%eax, %esi
	leaq	-1(%rsi), %rcx
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
LBB0_11:
	movl	%r8d, %ecx
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	movl	%ecx, %r8d
	decq	%rax
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movb	$1, %cl
	testb	$1, %r8b
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rdi), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	setne	%cl
	jmp	LBB0_14
LBB0_1:
	movl	%r8d, %ecx
LBB0_15:
	movzbl	%cl, %eax
	andl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	andl	$2147483644, %esi               ## imm = 0x7FFFFFFC
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %ecx
	movb	$1, %r8b
	testb	$1, %cl
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rcx
	cmpq	$0, 8(%rcx,%rdx,8)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rcx
	cmpq	$0, 16(%rcx,%rdx,8)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rcx
	cmpq	$0, 24(%rcx,%rdx,8)
	setne	%r8b
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TORUS_MAX_DIM,4,2              ## @TORUS_MAX_DIM
	.no_dead_strip	_sw_in_master_stree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sw_in_master_stree
_sw_in_master_stree:                    ; @sw_in_master_stree
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w8, eq
Lloh0:
	adrp	x9, _TORUS_MAX_DIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TORUS_MAX_DIM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	lsl	w10, w10, #1
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	lsl	x10, x10, #3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8, x9]
	cmp	x8, #0
	cset	w8, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	b	LBB0_3
LBB0_6:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TORUS_MAX_DIM,4,2              ; @TORUS_MAX_DIM
	.no_dead_strip	_sw_in_master_stree
.subsections_via_symbols
