	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_warp_coords                 ## -- Begin function bs_warp_coords
	.p2align	4, 0x90
_bs_warp_coords:                        ## @bs_warp_coords
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_clip_left1@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	(%rdi), %r14d
	xorl	%eax, %eax
	subl	%r14d, %r10d
	cmovlel	%eax, %r10d
	movq	_g_clip_top1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r11d
	movl	(%rsi), %r15d
	subl	%r15d, %r11d
	cmovlel	%eax, %r11d
	movl	(%rdx), %r13d
	leal	(%r14,%r13), %r12d
	movq	_g_clip_right1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	jge	LBB0_2
## %bb.1:
	subl	%r14d, %eax
	movl	%eax, (%rdx)
	movl	(%rsi), %r15d
	movl	%eax, %r13d
LBB0_2:
	movl	(%rcx), %eax
	addl	%r15d, %eax
	movq	_g_clip_bottom1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	cmpl	%eax, %r14d
	jge	LBB0_4
## %bb.3:
	subl	%r15d, %r14d
	movl	%r14d, (%rcx)
	movl	(%rdx), %r13d
LBB0_4:
	subl	%r10d, %r13d
	movl	%r13d, (%rdx)
	movl	(%rcx), %ebx
	subl	%r11d, %ebx
	movl	%ebx, (%rcx)
	xorl	%eax, %eax
	cmpl	$0, (%rdx)
	jle	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.6:
	addl	%r10d, (%rdi)
	addl	%r11d, (%rsi)
	testq	%r8, %r8
	je	LBB0_8
## %bb.7:
	addl	%r10d, (%r8)
LBB0_8:
	movl	$1, %eax
	testq	%r9, %r9
	je	LBB0_10
## %bb.9:
	addl	%r11d, (%r9)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_clip_left1,4,2               ## @g_clip_left1
	.comm	_g_clip_top1,4,2                ## @g_clip_top1
	.comm	_g_clip_right1,4,2              ## @g_clip_right1
	.comm	_g_clip_bottom1,4,2             ## @g_clip_bottom1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_warp_coords                 ; -- Begin function bs_warp_coords
	.p2align	2
_bs_warp_coords:                        ; @bs_warp_coords
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _g_clip_left1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_clip_left1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w12, [x0]
	subs	w8, w8, w12
	csel	w10, w8, wzr, gt
Lloh3:
	adrp	x8, _g_clip_top1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_clip_top1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	w8, [x1]
	subs	w9, w9, w8
	csel	w9, w9, wzr, gt
	ldr	w11, [x2]
Lloh6:
	adrp	x13, _g_clip_right1@GOTPAGE
Lloh7:
	ldr	x13, [x13, _g_clip_right1@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
	add	w14, w11, w12
	cmp	w13, w14
	b.ge	LBB0_2
; %bb.1:
	sub	w11, w13, w12
	str	w11, [x2]
	ldr	w8, [x1]
LBB0_2:
	ldr	w13, [x3]
Lloh9:
	adrp	x12, _g_clip_bottom1@GOTPAGE
Lloh10:
	ldr	x12, [x12, _g_clip_bottom1@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	add	w13, w13, w8
	cmp	w12, w13
	b.ge	LBB0_4
; %bb.3:
	sub	w8, w12, w8
	str	w8, [x3]
	ldr	w11, [x2]
LBB0_4:
	mov	w8, #0
	sub	w11, w11, w10
	str	w11, [x2]
	ldr	w11, [x3]
	sub	w11, w11, w9
	str	w11, [x3]
	ldr	w12, [x2]
	cmp	w12, #1
	b.lt	LBB0_11
; %bb.5:
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.6:
	ldr	w8, [x0]
	add	w8, w8, w10
	str	w8, [x0]
	ldr	w8, [x1]
	add	w8, w8, w9
	str	w8, [x1]
	cbz	x4, LBB0_8
; %bb.7:
	ldr	w8, [x4]
	add	w8, w8, w10
	str	w8, [x4]
LBB0_8:
	cbz	x5, LBB0_10
; %bb.9:
	ldr	w8, [x5]
	add	w8, w8, w9
	str	w8, [x5]
LBB0_10:
	mov	w8, #1
LBB0_11:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_clip_left1,4,2               ; @g_clip_left1
	.comm	_g_clip_top1,4,2                ; @g_clip_top1
	.comm	_g_clip_right1,4,2              ; @g_clip_right1
	.comm	_g_clip_bottom1,4,2             ; @g_clip_bottom1
.subsections_via_symbols
