	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_clip                    ## -- Begin function window_clip
	.p2align	4, 0x90
_window_clip:                           ## @window_clip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %eax
	shrl	$7, %eax
	andl	$1, %eax
	movl	%eax, %edx
	xorl	$1, %edx
	leal	16(,%rsi,4), %ecx
	movq	_clip@GOTPCREL(%rip), %rsi
	andl	$31, %edi
	je	LBB0_4
## %bb.1:
	movq	(%rsi), %rsi
	movl	%edx, %edx
	leaq	(%rdx,%rdx,2), %rdx
	movl	$0, (%rsi,%rdx,4)
	cmpl	%ecx, %edi
	jbe	LBB0_3
## %bb.2:
	movl	%ecx, 4(%rsi,%rdx,4)
	movl	$1, 8(%rsi,%rdx,4)
	movl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	(%rsi), %rsi
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	$0, (%rsi,%rax,4)
	movl	%ecx, 4(%rsi,%rax,4)
	movl	$1, 8(%rsi,%rax,4)
	movl	%edx, %eax
LBB0_5:
	leaq	(%rax,%rax,2), %rax
	movl	$0, 8(%rsi,%rax,4)
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	%ecx, 4(%rsi,%rax,4)
	movl	%edi, 4(%rsi,%rdx,4)
	movl	%edi, (%rsi,%rax,4)
	movl	$1, 20(%rsi)
	movl	$1, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clip,8,3                       ## @clip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_clip                    ; -- Begin function window_clip
	.p2align	2
_window_clip:                           ; @window_clip
	.cfi_startproc
; %bb.0:
	ubfx	w10, w0, #7, #1
	eor	w8, w10, #0x1
	lsl	w9, w1, #2
	add	w9, w9, #16
Lloh0:
	adrp	x11, _clip@GOTPAGE
Lloh1:
	ldr	x11, [x11, _clip@GOTPAGEOFF]
	ands	w12, w0, #0x1f
	b.eq	LBB0_3
; %bb.1:
	ldr	x11, [x11]
	mov	w13, #12
	umull	x14, w8, w13
	str	wzr, [x11, x14]
	cmp	w12, w9
	b.ls	LBB0_4
; %bb.2:
	madd	x8, x8, x13, x11
	mov	w12, #1
	stp	w9, w12, [x8, #4]
	umaddl	x8, w10, w13, x11
	str	wzr, [x8, #8]
	ret
LBB0_3:
	ldr	x11, [x11]
	mov	w12, #12
	umaddl	x10, w10, w12, x11
	stp	wzr, w9, [x10]
	mov	w9, #1
	str	w9, [x10, #8]
	umaddl	x8, w8, w12, x11
	str	wzr, [x8, #8]
	ret
LBB0_4:
	umaddl	x10, w10, w13, x11
	madd	x8, x8, x13, x11
	stp	w12, w9, [x10]
	str	w12, [x8, #4]
	mov	w8, #1
	str	w8, [x11, #20]
	str	w8, [x11, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_clip,8,3                       ; @clip
.subsections_via_symbols
