	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___check_edge                   ## -- Begin function __check_edge
	.p2align	4, 0x90
___check_edge:                          ## @__check_edge
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	movq	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movd	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%rax), %xmm1
	paddd	%xmm0, %xmm1
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	pmaxsd	%xmm1, %xmm0
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%r15d, %r15d
	movq	_PANEL_EDGE_RIGHT@GOTPCREL(%rip), %r12
	movq	_PANEL_EDGE_BOTTOM@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rax
	movzbl	(%r12), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movq	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movd	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, 16(%rax), %xmm1
	paddd	%xmm0, %xmm1
	pcmpeqd	-64(%rbp), %xmm1                ## 16-byte Folded Reload
	pmovsxdq	%xmm1, %xmm0
	movmskpd	%xmm0, %esi
	testb	$1, %sil
	cmovel	%r15d, %edx
	movzbl	(%r13), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	testb	$2, %sil
	cmovel	%r15d, %edi
	orl	%edx, %edi
	movl	%edi, (%rax)
	jmp	LBB0_9
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_EDGE_RIGHT,4,2           ## @PANEL_EDGE_RIGHT
	.comm	_PANEL_EDGE_BOTTOM,4,2          ## @PANEL_EDGE_BOTTOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___check_edge                   ; -- Begin function __check_edge
	.p2align	2
___check_edge:                          ; @__check_edge
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	mov	w21, #0
	mov	w22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	___get_panel
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
	ldp	w9, w10, [x8, #4]
	ldp	w11, w8, [x8, #12]
	add	w9, w10, w9
	cmp	w9, w21
	csel	w21, w9, w21, gt
	add	w8, w8, w11
	cmp	w8, w22
	csel	w22, w8, w22, gt
	b	LBB0_2
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w20, #0
Lloh0:
	adrp	x23, _PANEL_EDGE_RIGHT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PANEL_EDGE_RIGHT@GOTPAGEOFF]
	mov	w24, #1
Lloh2:
	adrp	x25, _PANEL_EDGE_BOTTOM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PANEL_EDGE_BOTTOM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	___get_panel
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0]
	ldp	w9, w10, [x8, #4]
	ldr	w11, [x23]
	lsl	w11, w24, w11
	add	w9, w10, w9
	cmp	w9, w21
	csel	w9, w11, wzr, eq
	ldp	w10, w11, [x8, #12]
	ldr	w12, [x25]
	lsl	w12, w24, w12
	add	w10, w11, w10
	cmp	w10, w22
	csel	w10, w12, wzr, eq
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_EDGE_RIGHT,4,2           ; @PANEL_EDGE_RIGHT
	.comm	_PANEL_EDGE_BOTTOM,4,2          ; @PANEL_EDGE_BOTTOM
.subsections_via_symbols
