	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw_sig_next                    ## -- Begin function tw_sig_next
	.p2align	4, 0x90
_tw_sig_next:                           ## @tw_sig_next
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_USE
	movq	%r14, %rdi
	callq	_USE
	movq	_nsig@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_tw_index@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jae	LBB0_9
## %bb.1:
	movq	_mesg@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movq	%rcx, (%r14)
	cmpq	%rcx, %rdx
	jne	LBB0_2
	jmp	LBB0_9
LBB0_3:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
## %bb.4:
	incq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_Strbuf_append1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rcx
LBB0_7:
	incq	%rcx
	movq	%rcx, (%r14)
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tw_index,8,3                   ## @tw_index
	.comm	_nsig,8,3                       ## @nsig
	.comm	_mesg,8,3                       ## @mesg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw_sig_next                    ; -- Begin function tw_sig_next
	.p2align	2
_tw_sig_next:                           ; @tw_sig_next
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_USE
	mov	x0, x20
	bl	_USE
Lloh0:
	adrp	x8, _nsig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nsig@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x20, _tw_index@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tw_index@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.1:
Lloh5:
	adrp	x10, _mesg@GOTPAGE
Lloh6:
	ldr	x10, [x10, _mesg@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cbnz	x11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	str	x8, [x20]
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	ldrb	w9, [x11]
	cbz	w9, LBB0_9
; %bb.6:
	add	x21, x11, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w9
	mov	x0, x19
	bl	_Strbuf_append1
	ldrb	w9, [x21], #1
	cbnz	w9, LBB0_7
; %bb.8:
	ldr	x8, [x20]
LBB0_9:
	add	x8, x8, #1
	str	x8, [x20]
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tw_index,8,3                   ; @tw_index
	.comm	_nsig,8,3                       ; @nsig
	.comm	_mesg,8,3                       ; @mesg
.subsections_via_symbols
