	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_damage_clip
_check_damage_clip:                     ## @check_damage_clip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	%r8d, %edx
	jge	LBB0_2
## %bb.1:
	cmpl	%r9d, %ecx
	jge	LBB0_2
## %bb.4:
	movswl	2(%rdi), %eax
	cmpl	%edx, %eax
	jg	LBB0_8
## %bb.5:
	movswl	6(%rdi), %eax
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.6:
	movq	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	pblendw	$5, %xmm0, %xmm2                ## xmm2 = xmm0[0],xmm2[1],xmm0[2],xmm2[3,4,5,6,7]
	psrad	$16, %xmm0
	pcmpgtd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	movd	%r8d, %xmm1
	pinsrd	$1, %r9d, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pmovsxdq	%xmm1, %xmm0
	movmskpd	%xmm0, %eax
	testb	$1, %al
	jne	LBB0_8
## %bb.7:
	shrb	%al
	jne	LBB0_8
## %bb.9:
	movl	(%rsi), %r10d
	movl	4(%rsi), %eax
	cmpl	%edx, %r10d
	jne	LBB0_14
## %bb.10:
	cmpl	%ecx, %eax
	jne	LBB0_14
## %bb.11:
	cmpl	%r8d, 8(%rsi)
	jne	LBB0_12
## %bb.13:
	movl	$1, %ebx
	movl	%ecx, %eax
	cmpl	%r9d, 12(%rsi)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_15
LBB0_12:
	movl	%ecx, %eax
LBB0_14:
	movl	8(%rsi), %ecx
	movl	12(%rsi), %r8d
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r10d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot have damage clip with no dimension.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Damage cannot be outside rounded plane src.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Damage = %d %d %d %d\n"

	.no_dead_strip	_check_damage_clip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_damage_clip
_check_damage_clip:                     ; @check_damage_clip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	cmp	w2, w4
	b.ge	LBB0_10
; %bb.1:
	cmp	w3, w5
	b.ge	LBB0_10
; %bb.2:
	ldrsh	w8, [x0, #6]
	ldrsh	w9, [x0, #2]
	cmp	w9, w2
	ccmp	w8, w3, #0, le
	b.gt	LBB0_11
; %bb.3:
	ldr	d0, [x0, #8]
	sshr.2s	v1, v0, #16
	movi	d2, #0x00ffff0000ffff
	cmtst.2s	v0, v0, v2
	sub.2s	v0, v1, v0
	fmov	s1, w4
	mov.s	v1[1], w5
	cmgt.2s	v0, v1, v0
	fmov	w8, s0
	tbnz	w8, #0, LBB0_11
; %bb.4:
	mov.s	w8, v0[1]
	tbnz	w8, #0, LBB0_11
; %bb.5:
	ldp	w8, w9, [x1]
	cmp	w8, w2
	b.ne	LBB0_13
; %bb.6:
	cmp	w9, w3
	b.ne	LBB0_13
; %bb.7:
	ldr	w9, [x1, #8]
	cmp	w9, w4
	b.ne	LBB0_12
; %bb.8:
	ldr	w10, [x1, #12]
	mov	x9, x3
	cmp	w10, w5
	b.ne	LBB0_13
; %bb.9:
	mov	w0, #1
	b	LBB0_15
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x9, x3
LBB0_13:
	ldp	w10, w11, [x1, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_14:
	bl	_pr_err
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot have damage clip with no dimension.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Damage cannot be outside rounded plane src.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Damage = %d %d %d %d\n"

	.no_dead_strip	_check_damage_clip
.subsections_via_symbols
