	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_rect                      ## -- Begin function draw_rect
	.p2align	4, 0x90
_draw_rect:                             ## @draw_rect
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r13d
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	callq	_draw_line_hori
	leal	(%rbx,%r12), %esi
	decl	%esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_draw_line_hori
	cmpl	$3, %r12d
	jge	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addl	$-2, %r12d
	incl	%ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_draw_line_vert
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edi
	decl	%edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_draw_line_vert                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_rect                      ; -- Begin function draw_rect
	.p2align	2
_draw_rect:                             ; @draw_rect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	mov	x3, x4
	mov	x4, x5
	bl	_draw_line_hori
	add	w8, w24, w23
	sub	w1, w8, #1
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_draw_line_hori
	cmp	w23, #3
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	sub	w23, w23, #2
	add	w24, w24, #1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_draw_line_vert
	add	w8, w22, w21
	sub	w0, w8, #1
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_draw_line_vert
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
