	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_control_clipping           ## -- Begin function set_control_clipping
	.p2align	4, 0x90
_set_control_clipping:                  ## @set_control_clipping
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movups	(%rsi), %xmm0
	movaps	%xmm0, -32(%rbp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateRectRgn
	movq	%rax, %r14
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_GetClipRgn
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_DeleteObject
	xorl	%r14d, %r14d
LBB0_2:
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	movl	$2, %edx
	callq	_DPtoLP
	movl	%ebx, %edi
	callq	_GetLayout
	movq	_LAYOUT_RTL@GOTPCREL(%rip), %rcx
	movl	-20(%rbp), %esi
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	incl	%esi
	movl	%esi, -20(%rbp)
	movl	-28(%rbp), %ecx
	incl	%ecx
	movl	%ecx, -28(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	-28(%rbp), %ecx
LBB0_5:
	movl	-32(%rbp), %r8d
	movl	-24(%rbp), %edx
	movl	%ebx, %edi
	callq	_IntersectClipRect
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAYOUT_RTL,4,2                 ## @LAYOUT_RTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_control_clipping           ; -- Begin function set_control_clipping
	.p2align	2
_set_control_clipping:                  ; @set_control_clipping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	q0, [x1]
	str	q0, [sp]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_CreateRectRgn
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_GetClipRgn
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_DeleteObject
	mov	x20, #0
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #2
	bl	_DPtoLP
	mov	x0, x19
	bl	_GetLayout
Lloh0:
	adrp	x8, _LAYOUT_RTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAYOUT_RTL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [sp, #12]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	add	w1, w1, #1
	ldr	w8, [sp, #4]
	add	w3, w8, #1
	str	w1, [sp, #12]
	str	w3, [sp, #4]
	b	LBB0_5
LBB0_4:
	ldr	w3, [sp, #4]
LBB0_5:
	ldr	w2, [sp, #8]
	ldr	w4, [sp]
	mov	x0, x19
	bl	_IntersectClipRect
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LAYOUT_RTL,4,2                 ; @LAYOUT_RTL
.subsections_via_symbols
