	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CheckPlane                   ## -- Begin function R_CheckPlane
	.p2align	4, 0x90
_R_CheckPlane:                          ## @R_CheckPlane
	.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	%rdi, %r14
	movl	(%rdi), %r8d
	cmpl	%esi, %r8d
	movl	%esi, %eax
	cmovgl	%r8d, %eax
	cmovgel	%esi, %r8d
	movl	4(%rdi), %ecx
	cmpl	%edx, %ecx
	movl	%edx, %edi
	cmovll	%ecx, %edi
	cmovlel	%edx, %ecx
	cmpl	%edi, %eax
	jg	LBB0_6
## %bb.1:
	movq	8(%r14), %rbx
	cltq
	incl	%edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rbx,%rax,4)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpl	%eax, %edi
	jne	LBB0_3
LBB0_6:
	movl	%r8d, (%r14)
	movl	%ecx, 4(%r14)
	jmp	LBB0_5
LBB0_4:
	movl	24(%r14), %eax
	movq	_lastvisplane@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movl	%eax, 8(%r14)
	leaq	12(%r14), %rax
	movq	%rax, (%rcx)
	movl	%esi, (%r14)
	movl	%edx, 4(%r14)
	movq	8(%r14), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lastvisplane,8,3               ## @lastvisplane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CheckPlane                   ; -- Begin function R_CheckPlane
	.p2align	2
_R_CheckPlane:                          ; @R_CheckPlane
	.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, x0
	ldp	w8, w9, [x0]
	cmp	w8, w1
	csel	w11, w8, w1, gt
	csel	w8, w8, w1, lt
	cmp	w9, w2
	csel	w12, w9, w2, lt
	csel	w9, w9, w2, gt
	cmp	w11, w12
	b.gt	LBB0_4
; %bb.1:
	ldr	x10, [x19, #8]
	add	x10, x10, w11, sxtw #2
	sub	w11, w12, w11
	add	w11, w11, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cmp	w12, #255
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #4
	subs	w11, w11, #1
	b.ne	LBB0_2
LBB0_4:
	stp	w8, w9, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w10, [x19, #24]
Lloh0:
	adrp	x9, _lastvisplane@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lastvisplane@GOTPAGEOFF]
	ldr	x19, [x9]
	add	x8, x19, #12
	str	x8, [x9]
	str	w1, [x19]
	stp	w2, w10, [x19, #4]
	ldr	x0, [x19, #8]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lastvisplane,8,3               ; @lastvisplane
.subsections_via_symbols
