	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TH_PlaneTypeForNormal
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TH_PlaneTypeForNormal
	.p2align	4, 0x90
_TH_PlaneTypeForNormal:                 ## @TH_PlaneTypeForNormal
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	_PLANE_X@GOTPCREL(%rip), %rcx
	jne	LBB0_1
	jnp	LBB0_12
LBB0_1:
	ucomisd	LCPI0_1(%rip), %xmm0
	jne	LBB0_2
	jnp	LBB0_12
LBB0_2:
	movq	%rdi, %rbx
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm1
	movq	_PLANE_Y@GOTPCREL(%rip), %rcx
	jne	LBB0_3
	jnp	LBB0_12
LBB0_3:
	ucomisd	LCPI0_1(%rip), %xmm1
	jne	LBB0_4
	jnp	LBB0_12
LBB0_4:
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm1
	movq	_PLANE_Z@GOTPCREL(%rip), %rcx
	jne	LBB0_5
	jnp	LBB0_12
LBB0_5:
	ucomisd	LCPI0_1(%rip), %xmm1
	jne	LBB0_6
	jnp	LBB0_12
LBB0_6:
	callq	_fabs
	movq	%rax, %r14
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	callq	_fabs
	movq	%rax, %r15
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_fabs
	cmpq	%r15, %r14
	jl	LBB0_9
## %bb.7:
	cmpq	%rax, %r14
	jl	LBB0_9
## %bb.8:
	movq	_PLANE_ANYX@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_9:
	movq	_PLANE_ANYZ@GOTPCREL(%rip), %rdx
	movq	%rdx, %rcx
	cmpq	%rax, %r15
	jl	LBB0_11
## %bb.10:
	movq	_PLANE_ANYY@GOTPCREL(%rip), %rcx
LBB0_11:
	cmpq	%r14, %r15
	cmovlq	%rdx, %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_X,4,2                    ## @PLANE_X
	.comm	_PLANE_Y,4,2                    ## @PLANE_Y
	.comm	_PLANE_Z,4,2                    ## @PLANE_Z
	.comm	_PLANE_ANYX,4,2                 ## @PLANE_ANYX
	.comm	_PLANE_ANYY,4,2                 ## @PLANE_ANYY
	.comm	_PLANE_ANYZ,4,2                 ## @PLANE_ANYZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_PlaneTypeForNormal          ; -- Begin function TH_PlaneTypeForNormal
	.p2align	2
_TH_PlaneTypeForNormal:                 ; @TH_PlaneTypeForNormal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	d0, [x0]
	fmov	d1, #1.00000000
	fcmp	d0, d1
	fmov	d2, #-1.00000000
	fccmp	d0, d2, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PLANE_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_X@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x19, x0
	ldr	d3, [x0, #8]
	fcmp	d3, d1
	fccmp	d3, d2, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _PLANE_Y@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLANE_Y@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	d1, [x19, #16]
	fmov	d2, #1.00000000
	fcmp	d1, d2
	fmov	d2, #-1.00000000
	fccmp	d1, d2, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _PLANE_Z@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PLANE_Z@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	bl	_fabs
	mov	x20, x0
	ldr	d0, [x19, #8]
	bl	_fabs
	mov	x21, x0
	ldr	d0, [x19, #16]
	bl	_fabs
	cmp	x20, x21
	b.lt	LBB0_9
; %bb.7:
	cmp	x20, x0
	b.lt	LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _PLANE_ANYX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLANE_ANYX@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	cmp	x21, x0
	ccmp	x21, x20, #8, ge
Lloh8:
	adrp	x8, _PLANE_ANYY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLANE_ANYY@GOTPAGEOFF]
Lloh10:
	adrp	x9, _PLANE_ANYZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PLANE_ANYZ@GOTPAGEOFF]
	csel	x8, x9, x8, lt
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_X,4,2                    ; @PLANE_X
	.comm	_PLANE_Y,4,2                    ; @PLANE_Y
	.comm	_PLANE_Z,4,2                    ; @PLANE_Z
	.comm	_PLANE_ANYX,4,2                 ; @PLANE_ANYX
	.comm	_PLANE_ANYY,4,2                 ; @PLANE_ANYY
	.comm	_PLANE_ANYZ,4,2                 ; @PLANE_ANYZ
.subsections_via_symbols
