	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_term_setwidth                  ## -- Begin function term_setwidth
	.p2align	4, 0x90
_term_setwidth:                         ## @term_setwidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movsbl	(%rsi), %eax
	cmpl	$45, %eax
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$43, %eax
	jne	LBB0_6
## %bb.4:
	incq	%rsi
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_5:
	incq	%rsi
	movl	$-1, %r14d
LBB0_6:
	movq	_SCALE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_a2roffsu
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_term_hspan
	movl	%eax, %edx
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%edx, %edx
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALE_MAX,4,2                  ## @SCALE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_term_setwidth                  ; -- Begin function term_setwidth
	.p2align	2
_term_setwidth:                         ; @term_setwidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldrsb	w8, [x1]
	mov	w9, #-1
	mov	w10, #1
	cmp	w8, #43
	csel	w10, wzr, w10, ne
	cinc	x11, x1, eq
	cmp	w8, #45
	csel	w20, w9, w10, eq
	csinc	x0, x11, x1, ne
Lloh0:
	adrp	x8, _SCALE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_a2roffsu
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_term_hspan
	mov	x2, x0
	b	LBB0_4
LBB0_3:
	mov	w20, #0
	mov	w2, #0
LBB0_4:
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALE_MAX,4,2                  ; @SCALE_MAX
.subsections_via_symbols
