	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw_job_next                    ## -- Begin function tw_job_next
	.p2align	4, 0x90
_tw_job_next:                           ## @tw_job_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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_USE
	movq	%rbx, %rdi
	callq	_USE
	movq	_pmaxindex@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_tw_index@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	xorl	%eax, %eax
	cmpq	%rcx, %rdx
	jg	LBB0_8
## %bb.1:
	movq	_proclist@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdx), %rdi
	movq	%rdi, (%r15)
	cmpq	%rcx, %rdx
	movq	%rdi, %rdx
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rdi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rdi), %rbx
	cmpq	16(%rdi), %rbx
	jne	LBB0_6
## %bb.9:
	movl	24(%rdi), %esi
	movq	%r14, %rdi
	callq	_Strbuf_append
	incq	(%r15)
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tw_index,8,3                   ## @tw_index
	.comm	_pmaxindex,8,3                  ## @pmaxindex
	.comm	_proclist,8,3                   ## @proclist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw_job_next                    ; -- Begin function tw_job_next
	.p2align	2
_tw_job_next:                           ; @tw_job_next
	.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
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_USE
	mov	x0, x20
	bl	_USE
Lloh0:
	adrp	x8, _pmaxindex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmaxindex@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _tw_index@GOTPAGE
Lloh4:
	ldr	x20, [x20, _tw_index@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x9, x8
	b.le	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
Lloh5:
	adrp	x10, _proclist@GOTPAGE
Lloh6:
	ldr	x10, [x10, _proclist@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x9, #1
	str	x11, [x20]
	cmp	x9, x8
	mov	x9, x11
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x11, [x11, #32]
	cbz	x11, LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11]
	cmp	x12, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x12, x13, [x11, #8]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.9:
	ldr	w1, [x11, #24]
	mov	x0, x19
	bl	_Strbuf_append
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_pmaxindex,8,3                  ; @pmaxindex
	.comm	_proclist,8,3                   ; @proclist
.subsections_via_symbols
