	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindHashedPlane            ## -- Begin function AAS_FindHashedPlane
	.p2align	4, 0x90
_AAS_FindHashedPlane:                   ## @AAS_FindHashedPlane
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_fabs
	leal	7(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$3, %r12d
	movq	_PLANE_HASH_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	andl	%eax, %r12d
	movslq	%r12d, %rdx
	decq	%rdx
	andq	%rax, %rdx
	movq	_aas_hashplanes@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rcx,%rdx,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.1:
	movq	_aas_planechain@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %esi
	callq	_AAS_PlaneEqual
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	movq	(%r13), %rcx
	movl	(%rcx,%rax,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_2
## %bb.5:
	movq	_PLANE_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	decl	%eax
LBB0_6:
	movl	%eax, %edx
	andl	%r12d, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.7:
	movq	_aas_planechain@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %esi
	callq	_AAS_PlaneEqual
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	movq	(%r13), %rcx
	movl	(%rcx,%rax,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.10:
	movq	_PLANE_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	decl	%eax
LBB0_11:
	incl	%r12d
	andl	%eax, %r12d
	movslq	%r12d, %rax
	movl	(%rcx,%rax,4), %ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.12:
	movq	_aas_planechain@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%ebx, %esi
	callq	_AAS_PlaneEqual
	testq	%rax, %rax
	jne	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %eax
	movq	(%r14), %rcx
	movl	(%rcx,%rax,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_13
	jmp	LBB0_15
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_HASH_SIZE,4,2            ## @PLANE_HASH_SIZE
	.comm	_aas_hashplanes,8,3             ## @aas_hashplanes
	.comm	_aasworld,8,3                   ## @aasworld
	.comm	_aas_planechain,8,3             ## @aas_planechain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FindHashedPlane            ; -- Begin function AAS_FindHashedPlane
	.p2align	2
_AAS_FindHashedPlane:                   ; @AAS_FindHashedPlane
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x1
	fmov	s8, s0
	mov	x20, x0
	bl	_fabs
	add	w8, w0, #7
	cmp	w0, #0
	csel	w9, w8, w0, lt
Lloh0:
	adrp	x24, _PLANE_HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PLANE_HASH_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w8, w8, #1
	and	w23, w8, w9, asr #3
	sub	w9, w23, #1
Lloh2:
	adrp	x25, _aas_hashplanes@GOTPAGE
Lloh3:
	ldr	x25, [x25, _aas_hashplanes@GOTPAGEOFF]
	and	w10, w8, w9
	ldr	x9, [x25]
	ldr	w21, [x9, w10, sxtw #2]
Lloh4:
	adrp	x22, _aas_planechain@GOTPAGE
Lloh5:
	ldr	x22, [x22, _aas_planechain@GOTPAGEOFF]
	tbnz	w21, #31, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	fmov	s0, s8
	mov	x1, x21
	bl	_AAS_PlaneEqual
	cbnz	x0, LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	ldr	w21, [x8, w21, uxtw #2]
	tbz	w21, #31, LBB0_1
; %bb.3:
	ldr	w8, [x24]
	ldr	x9, [x25]
	sub	w8, w8, #1
LBB0_4:
	and	w10, w8, w23
	ldr	w21, [x9, w10, sxtw #2]
	tbnz	w21, #31, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	fmov	s0, s8
	mov	x1, x21
	bl	_AAS_PlaneEqual
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	w21, [x8, w21, uxtw #2]
	tbz	w21, #31, LBB0_5
; %bb.7:
	ldr	w8, [x24]
	ldr	x9, [x25]
	sub	w8, w8, #1
LBB0_8:
	add	w10, w23, #1
	and	w8, w8, w10
	ldr	w21, [x9, w8, sxtw #2]
	tbnz	w21, #31, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	fmov	s0, s8
	mov	x1, x21
	bl	_AAS_PlaneEqual
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	ldr	w21, [x8, w21, uxtw #2]
	tbz	w21, #31, LBB0_9
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	str	w21, [x19]
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_HASH_SIZE,4,2            ; @PLANE_HASH_SIZE
	.comm	_aas_hashplanes,8,3             ; @aas_hashplanes
	.comm	_aasworld,8,3                   ; @aasworld
	.comm	_aas_planechain,8,3             ; @aas_planechain
.subsections_via_symbols
