	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_box                       ## -- Begin function draw_box
	.p2align	4, 0x90
_draw_box:                              ## @draw_box
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_wattrset
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_24
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	orb	$32, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %esi
	movq	%r12, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_wmove
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ACS_VLINE@GOTPCREL(%rip), %rax
	cmpl	%r15d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ACS_LLCORNER@GOTPCREL(%rip), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ACS_ULCORNER@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rax), %al
	orb	16(%rbp), %al
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_waddch
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_ACS_URCORNER@GOTPCREL(%rip), %rax
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	movzbl	(%rax), %eax
	orb	%bl, %al
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=2
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_waddch
	decl	%r14d
	je	LBB0_23
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$1, %r14d
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpl	%r15d, %r13d
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$1, %r14d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_ACS_LRCORNER@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	%r15d, %r13d
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_ACS_HLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_ACS_HLINE@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	orb	16(%rbp), %al
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=2
	movzbl	-41(%rbp), %eax                 ## 1-byte Folded Reload
	cmpl	$1, %r14d
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_ACS_VLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACS_ULCORNER,1,0               ## @ACS_ULCORNER
	.comm	_ACS_LLCORNER,1,0               ## @ACS_LLCORNER
	.comm	_ACS_URCORNER,1,0               ## @ACS_URCORNER
	.comm	_ACS_LRCORNER,1,0               ## @ACS_LRCORNER
	.comm	_ACS_HLINE,1,0                  ## @ACS_HLINE
	.comm	_ACS_VLINE,1,0                  ## @ACS_VLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_box                       ; -- Begin function draw_box
	.p2align	2
_draw_box:                              ; @draw_box
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	stp	w1, w2, [sp, #8]                ; 8-byte Folded Spill
	mov	x25, x0
	mov	w1, #0
	bl	_wattrset
	subs	w26, w22, #1
	b.lt	LBB0_21
; %bb.1:
	mov	w27, #0
	sub	w9, w21, #1
	orr	w8, w20, #0x20
	stp	w9, w8, [sp]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x28, _ACS_URCORNER@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ACS_URCORNER@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ACS_LRCORNER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ACS_LRCORNER@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	cmp	w27, w22
	b.eq	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldp	w8, w2, [sp, #8]                ; 8-byte Folded Reload
	add	w1, w27, w8
	mov	x0, x25
	bl	_wmove
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, w26
Lloh4:
	adrp	x8, _ACS_LLCORNER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ACS_LLCORNER@GOTPAGEOFF]
Lloh6:
	adrp	x9, _ACS_VLINE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACS_VLINE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	cmp	w27, #0
Lloh8:
	adrp	x9, _ACS_ULCORNER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACS_ULCORNER@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldrb	w8, [x8]
	orr	w8, w8, w19
	sxtb	w1, w8
	mov	x0, x25
	bl	_waddch
	cmp	w21, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [sp]                       ; 4-byte Folded Reload
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w8, [x28]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	orr	w8, w8, w20
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	sxtb	w1, w8
	mov	x0, x25
	bl	_waddch
	subs	w24, w24, #1
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w27, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w24, #1
	b.eq	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w27, w26
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w24, #1
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w8, [x23]
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	cbz	w27, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w27, w26
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh10:
	adrp	x8, _ACS_HLINE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACS_HLINE@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh12:
	adrp	x8, _ACS_HLINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACS_HLINE@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w19
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w24, #1
	b.ne	LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh14:
	adrp	x8, _ACS_VLINE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACS_VLINE@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w8, [x8]
	b	LBB0_7
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ACS_ULCORNER,1,0               ; @ACS_ULCORNER
	.comm	_ACS_LLCORNER,1,0               ; @ACS_LLCORNER
	.comm	_ACS_URCORNER,1,0               ; @ACS_URCORNER
	.comm	_ACS_LRCORNER,1,0               ; @ACS_LRCORNER
	.comm	_ACS_HLINE,1,0                  ; @ACS_HLINE
	.comm	_ACS_VLINE,1,0                  ; @ACS_VLINE
.subsections_via_symbols
