	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckOrientation
_CheckOrientation:                      ## @CheckOrientation
	.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	8(%rdi), %r8
	leaq	16(%r8), %r9
	movq	24(%r8), %r10
	cmpq	%r9, %r10
	je	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r10), %r10
	cmpq	%r9, %r10
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r10), %r11
	cmpq	$0, (%r11)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rax), %rdx
	movl	(%rdx), %ecx
	movq	16(%rax), %rbx
	subl	(%rbx), %ecx
	movq	8(%rax), %rsi
	movl	4(%rbx), %eax
	addl	4(%rdx), %eax
	imull	%ecx, %eax
	cltq
	addq	%rax, %r14
	movq	%rsi, %rax
	cmpq	%r11, %rsi
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	testq	%r14, %r14
	jns	LBB0_11
## %bb.7:
	movq	8(%r8), %rax
	cmpq	%r8, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	negl	(%rax)
	movq	8(%rax), %rax
	cmpq	%r8, %rax
	jne	LBB0_8
LBB0_10:
	movq	(%rdi), %rax
	negl	(%rax)
	negl	4(%rax)
	negl	8(%rax)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_CheckOrientation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckOrientation
_CheckOrientation:                      ; @CheckOrientation
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	add	x9, x8, #16
	ldr	x10, [x8, #24]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.1:
	mov	x11, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x10, #8]
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x12, [x10]
	ldr	x13, [x12]
	cmp	x13, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, x12
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x15, x14, [x13, #16]
	ldp	w16, w14, [x14]
	ldp	w17, w15, [x15]
	sub	w16, w16, w17
	add	w14, w15, w14
	mul	w14, w14, w16
	add	x11, x11, w14, sxtw
	ldr	x13, [x13, #8]
	cmp	x13, x12
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	tbnz	x11, #63, LBB0_8
LBB0_7:
	ret
LBB0_8:
	ldr	x9, [x8, #8]
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	neg	w10, w10
	str	w10, [x9]
	ldr	x9, [x9, #8]
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_10:
	ldr	x8, [x0]
	ldr	d0, [x8]
	neg.2s	v0, v0
	str	d0, [x8]
	ldr	w9, [x8, #8]
	neg	w9, w9
	str	w9, [x8, #8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_CheckOrientation
.subsections_via_symbols
