	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setterm_command
_setterm_command:                       ## @setterm_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	decl	%ecx
	cmpl	$14, %ecx
	ja	LBB0_29
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$0, 48(%rbx)
	je	LBB0_29
## %bb.3:
	movslq	4(%rax), %rax
	cmpq	$15, %rax
	jg	LBB0_29
## %bb.4:
	movq	_color_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 56(%rbx)
	cmpl	$0, 52(%rbx)
	jne	LBB0_5
	jmp	LBB0_29
LBB0_6:
	cmpl	$0, 48(%rbx)
	je	LBB0_29
## %bb.7:
	movslq	4(%rax), %rax
	cmpq	$15, %rax
	jg	LBB0_29
## %bb.8:
	movq	_color_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 40(%rbx)
	cmpl	$0, 32(%rbx)
	jne	LBB0_29
	jmp	LBB0_5
LBB0_9:
	movl	12(%rbx), %eax
	movl	16(%rbx), %ecx
	movl	%eax, 8(%rbx)
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_11
## %bb.10:
	sarl	%eax
	movl	%eax, 8(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_default_attr
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_update_attr                    ## TAILCALL
LBB0_22:
	movl	4(%rax), %eax
	imull	$60, %eax, %ecx
	cmpl	$60, %eax
	movl	$3600, %eax                     ## imm = 0xE10
	cmovll	%ecx, %eax
	movq	_blankinterval@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_23:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_poke_blanked_console           ## TAILCALL
LBB0_12:
	cmpl	$0, 20(%rbx)
	jle	LBB0_27
## %bb.13:
	movl	4(%rax), %eax
	jmp	LBB0_28
LBB0_14:
	cmpl	$0, 20(%rbx)
	jle	LBB0_18
## %bb.15:
	movl	4(%rax), %ecx
	xorl	%eax, %eax
	cmpl	$1999, %ecx                     ## imm = 0x7CF
	jg	LBB0_17
## %bb.16:
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movslq	%ecx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
LBB0_17:
	movl	%eax, 28(%rbx)
	jmp	LBB0_29
LBB0_19:
	movl	4(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_29
## %bb.20:
	decl	%edi
	callq	_vc_cons_allocated
	testl	%eax, %eax
	je	LBB0_29
## %bb.21:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	decl	%edi
	jmp	LBB0_26
LBB0_24:
	movl	4(%rax), %eax
	imull	$60, %eax, %ecx
	cmpl	$60, %eax
	movl	$3600, %eax                     ## imm = 0xE10
	cmovll	%ecx, %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_vesa_off_interval@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_29
LBB0_25:
	movq	_last_console@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_console                    ## TAILCALL
LBB0_27:
	movq	_DEFAULT_BELL_PITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	movl	%eax, 24(%rbx)
	jmp	LBB0_29
LBB0_18:
	movq	_DEFAULT_BELL_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_9
	.long	L0_0_set_22
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_color_table,8,3                ## @color_table
	.comm	_blankinterval,4,2              ## @blankinterval
	.comm	_DEFAULT_BELL_PITCH,4,2         ## @DEFAULT_BELL_PITCH
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DEFAULT_BELL_DURATION,4,2      ## @DEFAULT_BELL_DURATION
	.comm	_vesa_off_interval,4,2          ## @vesa_off_interval
	.comm	_last_console,4,2               ## @last_console
	.no_dead_strip	_setterm_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setterm_command
_setterm_command:                       ; @setterm_command
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w9, [x8]
	sub	w9, w9, #1
	cmp	w9, #14
	b.hi	LBB0_29
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w9, [x19, #48]
	cbz	w9, LBB0_29
; %bb.3:
	ldrsw	x8, [x8, #4]
	cmp	w8, #15
	b.gt	LBB0_29
; %bb.4:
Lloh2:
	adrp	x9, _color_table@GOTPAGE
Lloh3:
	ldr	x9, [x9, _color_table@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x19, #56]
	ldr	w8, [x19, #52]
	cbnz	w8, LBB0_11
	b	LBB0_29
LBB0_5:
	ldr	w9, [x19, #48]
	cbz	w9, LBB0_29
; %bb.6:
	ldrsw	x8, [x8, #4]
	cmp	w8, #15
	b.gt	LBB0_29
; %bb.7:
Lloh5:
	adrp	x9, _color_table@GOTPAGE
Lloh6:
	ldr	x9, [x9, _color_table@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x19, #40]
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_29
	b	LBB0_11
LBB0_8:
	ldp	w8, w9, [x19, #12]
	str	w8, [x19, #8]
	cmp	w9, #256
	b.ne	LBB0_10
; %bb.9:
	asr	w8, w8, #1
	str	w8, [x19, #8]
LBB0_10:
	mov	x0, x19
	bl	_default_attr
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_update_attr
LBB0_12:
	ldr	w8, [x8, #4]
	mov	w9, #60
	mul	w9, w8, w9
	mov	w10, #3600
	cmp	w8, #60
	csel	w8, w9, w10, lt
Lloh8:
	adrp	x9, _blankinterval@GOTPAGE
Lloh9:
	ldr	x9, [x9, _blankinterval@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_poke_blanked_console
LBB0_14:
	ldr	w9, [x19, #20]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.15:
	ldr	w8, [x8, #4]
	b	LBB0_26
LBB0_16:
	ldr	w9, [x19, #20]
	cmp	w9, #1
	b.lt	LBB0_27
; %bb.17:
	ldr	w8, [x8, #4]
	cmp	w8, #1999
	b.gt	LBB0_28
; %bb.18:
Lloh11:
	adrp	x9, _HZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x19, #28]
	b	LBB0_29
LBB0_19:
	ldr	w8, [x8, #4]
	subs	w0, w8, #1
	b.lt	LBB0_29
; %bb.20:
	bl	_vc_cons_allocated
	cbz	w0, LBB0_29
; %bb.21:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	sub	w0, w8, #1
	b	LBB0_24
LBB0_22:
	ldr	w8, [x8, #4]
	mov	w9, #60
	mul	w9, w8, w9
	mov	w10, #3600
Lloh14:
	adrp	x11, _HZ@GOTPAGE
Lloh15:
	ldr	x11, [x11, _HZ@GOTPAGEOFF]
	cmp	w8, #60
	csel	w8, w9, w10, lt
Lloh16:
	ldr	w9, [x11]
	mul	w8, w8, w9
Lloh17:
	adrp	x9, _vesa_off_interval@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vesa_off_interval@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	b	LBB0_29
LBB0_23:
Lloh20:
	adrp	x8, _last_console@GOTPAGE
Lloh21:
	ldr	x8, [x8, _last_console@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_console
LBB0_25:
Lloh23:
	adrp	x8, _DEFAULT_BELL_PITCH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEFAULT_BELL_PITCH@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
LBB0_26:
	str	w8, [x19, #24]
	b	LBB0_29
LBB0_27:
Lloh26:
	adrp	x8, _DEFAULT_BELL_DURATION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEFAULT_BELL_DURATION@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	b	LBB0_29
LBB0_28:
	mov	w8, #0
	str	wzr, [x19, #28]
LBB0_29:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
                                        ; -- End function
	.comm	_color_table,8,3                ; @color_table
	.comm	_blankinterval,4,2              ; @blankinterval
	.comm	_DEFAULT_BELL_PITCH,4,2         ; @DEFAULT_BELL_PITCH
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DEFAULT_BELL_DURATION,4,2      ; @DEFAULT_BELL_DURATION
	.comm	_vesa_off_interval,4,2          ; @vesa_off_interval
	.comm	_last_console,4,2               ; @last_console
	.no_dead_strip	_setterm_command
.subsections_via_symbols
