	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawViewBorder               ## -- Begin function R_DrawViewBorder
	.p2align	4, 0x90
_R_DrawViewBorder:                      ## @R_DrawViewBorder
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_scaledviewwidth@GOTPCREL(%rip), %rcx
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%esi, %eax
	subl	(%rcx), %eax
	jne	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_SBARHEIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_viewheight@GOTPCREL(%rip), %r12
	addl	(%r12), %edx
	subl	%edx, %ecx
	movl	%ecx, %r15d
	shrl	$31, %r15d
	addl	%ecx, %r15d
	sarl	%r15d
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	movl	%r14d, %r13d
	sarl	%r13d
	imull	%r15d, %esi
	addl	%r13d, %esi
	xorl	%edi, %edi
	callq	_R_VideoErase
	movl	(%r12), %edi
	addl	%r15d, %edi
	movl	(%rbx), %esi
	imull	%esi, %edi
	subl	%r13d, %edi
	imull	%r15d, %esi
	addl	%r13d, %esi
	callq	_R_VideoErase
	movl	(%rbx), %edx
	cmpl	$2, (%r12)
	jl	LBB0_4
## %bb.2:
	movq	%rbx, %rcx
	andl	$-2, %r14d
	movl	%edx, %eax
	subl	%r13d, %eax
	imull	%edx, %r15d
	addl	%eax, %r15d
	movl	$1, %ebx
	movq	%rcx, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_R_VideoErase
	movl	(%r13), %edx
	addl	%edx, %r15d
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_3
LBB0_4:
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SBARHEIGHT@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_V_MarkRect                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scaledviewwidth,4,2            ## @scaledviewwidth
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_SBARHEIGHT,4,2                 ## @SBARHEIGHT
	.comm	_viewheight,4,2                 ## @viewheight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawViewBorder               ; -- Begin function R_DrawViewBorder
	.p2align	2
_R_DrawViewBorder:                      ; @R_DrawViewBorder
	.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
Lloh0:
	adrp	x8, _scaledviewwidth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scaledviewwidth@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x21, _SCREENWIDTH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SCREENWIDTH@GOTPAGEOFF]
	ldr	w8, [x21]
	subs	w9, w8, w9
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh5:
	adrp	x22, _SCREENHEIGHT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SCREENHEIGHT@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh7:
	adrp	x23, _SBARHEIGHT@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SBARHEIGHT@GOTPAGEOFF]
	ldr	w11, [x23]
Lloh9:
	adrp	x24, _viewheight@GOTPAGE
Lloh10:
	ldr	x24, [x24, _viewheight@GOTPAGEOFF]
	ldr	w12, [x24]
	add	w11, w11, w12
	sub	w10, w10, w11
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w20, w10, #1
	cmp	w9, #0
	cinc	w19, w9, lt
	asr	w25, w19, #1
	madd	w1, w20, w8, w25
	mov	w0, #0
	bl	_R_VideoErase
	ldr	w8, [x24]
	add	w8, w8, w20
	ldr	w9, [x21]
	neg	w10, w25
	madd	w0, w8, w9, w10
	madd	w1, w9, w20, w25
	bl	_R_VideoErase
	ldr	w2, [x21]
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	and	w19, w19, #0xfffffffe
	sub	w8, w2, w25
	madd	w20, w2, w20, w8
	mov	w25, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_R_VideoErase
	ldr	w2, [x21]
	add	w20, w2, w20
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_4
LBB0_5:
	ldr	w8, [x22]
	ldr	w9, [x23]
	sub	w3, w8, w9
	mov	w0, #0
	mov	w1, #0
	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
	b	_V_MarkRect
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_scaledviewwidth,4,2            ; @scaledviewwidth
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_SBARHEIGHT,4,2                 ; @SBARHEIGHT
	.comm	_viewheight,4,2                 ; @viewheight
.subsections_via_symbols
