	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dconschat_start_session
_dconschat_start_session:               ## @dconschat_start_session
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_poll_hz@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movl	$1, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MAX
	movl	%eax, %ecx
	movq	_DCONS_POLL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movl	%ecx, %r13d
	movl	%ecx, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_dconschat_proc_dcons
	xorl	%r15d, %r15d
	movl	%r13d, %r14d
	xorl	%r12d, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_dconschat_proc_socket
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_F_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r12d
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r15d
	cmovgel	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_dconschat_fetch_header
	movq	_F_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	xorl	%r12d, %r12d
	movl	%eax, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_poll_hz,4,2                    ## @poll_hz
	.comm	_DCONS_POLL_OFFLINE,4,2         ## @DCONS_POLL_OFFLINE
	.comm	_F_READY,4,2                    ## @F_READY
	.comm	_verbose,8,3                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d/%d "

	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_dconschat_start_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dconschat_start_session
_dconschat_start_session:               ; @dconschat_start_session
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x21, _poll_hz@GOTPAGE
Lloh1:
	ldr	x21, [x21, _poll_hz@GOTPAGEOFF]
	ldrsw	x8, [x21]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	w0, #1
	bl	_MAX
	mov	x20, x0
	mov	w23, #0
	mov	w22, #0
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _DCONS_POLL_OFFLINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DCONS_POLL_OFFLINE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w24, w9, w8
Lloh5:
	adrp	x25, _F_READY@GOTPAGE
Lloh6:
	ldr	x25, [x25, _F_READY@GOTPAGEOFF]
Lloh7:
	adrp	x26, _verbose@GOTPAGE
Lloh8:
	ldr	x26, [x26, _verbose@GOTPAGEOFF]
	sdiv	w21, w24, w0
	mov	x28, x0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_dconschat_proc_dcons
	mov	w23, #0
	mov	w22, #0
	mov	x28, x20
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_dconschat_proc_socket
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, w28
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w23, #1
	cmp	w23, w21
	csel	w28, w28, w24, lt
	ldr	x8, [x26]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	mov	x2, x21
	bl	_printf
Lloh11:
	adrp	x8, _stdout@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_fflush
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_dconschat_fetch_header
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	mov	x23, x27
	b	LBB0_2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_poll_hz,4,2                    ; @poll_hz
	.comm	_DCONS_POLL_OFFLINE,4,2         ; @DCONS_POLL_OFFLINE
	.comm	_F_READY,4,2                    ; @F_READY
	.comm	_verbose,8,3                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d/%d "

	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_dconschat_start_session
.subsections_via_symbols
