	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acn_findalldevs                ## -- Begin function acn_findalldevs
	.p2align	4, 0x90
_acn_findalldevs:                       ## @acn_findalldevs
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	_readfds@GOTPCREL(%rip), %rdi
	callq	_FD_ZERO
	movq	_max_fs@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_MAX_CHASSIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_14
## %bb.1:
	movq	_MAX_GEOSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	_units@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_CHASSIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %rbx
	movq	%rdx, %rbx
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$-1, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	1(%r14), %esi
	movl	%ebx, %edi
	callq	_close_with_IOP
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_MAX_GEOSLOT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%r14
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	cmpq	$0, 16(%r13,%r15)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r15,%r13), %rdi
	movq	_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open_with_IOP
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r13,%r15), %rdi
	movl	$1, %esi
	leaq	l_.str(%rip), %rdx
	callq	_send_to_fd
	movq	(%r13,%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_error_response
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r13,%r15), %rdi
	movq	_max_fs@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rdi, (%rax)
	movq	(%r13,%r15), %rdi
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_readfds@GOTPCREL(%rip), %rsi
	callq	_FD_SET
	movq	$0, 8(%r13,%r15)
	movq	(%r13,%r15), %rdi
	movl	$1, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_send_to_fd
	jmp	LBB0_11
LBB0_14:
	xorl	%eax, %eax
	callq	_wait_for_all_answers
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_process_client_data
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_sort_if_table
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_readfds,4,2                    ## @readfds
	.comm	_max_fs,8,3                     ## @max_fs
	.comm	_MAX_CHASSIS,4,2                ## @MAX_CHASSIS
	.comm	_MAX_GEOSLOT,4,2                ## @MAX_GEOSLOT
	.comm	_units,8,3                      ## @units
	.comm	_FIND,4,2                       ## @FIND
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	2

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Q"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acn_findalldevs                ; -- Begin function acn_findalldevs
	.p2align	2
_acn_findalldevs:                       ; @acn_findalldevs
	.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	x0, _readfds@GOTPAGE
Lloh1:
	ldr	x0, [x0, _readfds@GOTPAGEOFF]
	bl	_FD_ZERO
Lloh2:
	adrp	x24, _max_fs@GOTPAGE
Lloh3:
	ldr	x24, [x24, _max_fs@GOTPAGEOFF]
	str	xzr, [x24]
Lloh4:
	adrp	x8, _MAX_CHASSIS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_CHASSIS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_14
; %bb.1:
	mov	x20, #0
Lloh7:
	adrp	x26, _MAX_GEOSLOT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MAX_GEOSLOT@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh9:
	adrp	x27, _units@GOTPAGE
Lloh10:
	ldr	x27, [x27, _units@GOTPAGEOFF]
Lloh11:
	adrp	x28, _FIND@GOTPAGE
Lloh12:
	ldr	x28, [x28, _FIND@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x9, _MAX_CHASSIS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX_CHASSIS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, w9, sxtw
	add	x20, x20, #1
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	tbnz	w8, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	mov	x22, #-1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w2, [x28]
	add	w1, w22, #1
	mov	x0, x20
	bl	_close_with_IOP
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [x26]
	add	x22, x22, #1
	add	x25, x25, #24
	cmp	x22, x8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	ldr	x23, [x8, x20, lsl #3]
	add	x0, x23, x25
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w1, [x28]
	bl	_open_with_IOP
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x23, x25]
	mov	w1, #1
	mov	x2, x21
	bl	_send_to_fd
	ldr	x0, [x23, x25]
	mov	x1, x19
	bl	_get_error_response
	cbnz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x23, x25]
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x0, [x24]
	ldr	x0, [x23, x25]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh18:
	adrp	x1, _readfds@GOTPAGE
Lloh19:
	ldr	x1, [x1, _readfds@GOTPAGEOFF]
	bl	_FD_SET
	add	x8, x23, x25
	str	xzr, [x8, #8]
	ldr	x0, [x8]
	mov	w1, #1
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_send_to_fd
	b	LBB0_7
LBB0_14:
	bl	_wait_for_all_answers
	mov	x0, x19
	bl	_process_client_data
	cbz	x0, LBB0_16
; %bb.15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	bl	_sort_if_table
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_readfds,4,2                    ; @readfds
	.comm	_max_fs,8,3                     ; @max_fs
	.comm	_MAX_CHASSIS,4,2                ; @MAX_CHASSIS
	.comm	_MAX_GEOSLOT,4,2                ; @MAX_GEOSLOT
	.comm	_units,8,3                      ; @units
	.comm	_FIND,4,2                       ; @FIND
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.space	2

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Q"

.subsections_via_symbols
