	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acn_open_live
_acn_open_live:                         ## @acn_open_live
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-60(%rbp), %rdi
	callq	_pcap_platform_finddevs
	movq	_MAX_CHASSIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	js	LBB0_17
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_GEOSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	movq	_units@GOTPCREL(%rip), %rdi
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_MAX_GEOSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_units@GOTPCREL(%rip), %rdi
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%r12), %rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	movq	%rcx, %r12
	jge	LBB0_14
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	(%rdi), %rcx
	movq	(%rcx,%r13,8), %r14
	leaq	(%r12,%r12,2), %rcx
	cmpq	$0, 16(%r14,%rcx,8)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r14,%rcx,8), %r15
	testq	%r15, %r15
	jne	LBB0_6
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=3
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_CHASSIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r13), %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %r13
	movq	%rdx, %r13
	jl	LBB0_2
## %bb.16:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_9:
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r14,%rbx,8), %r13
	movl	(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open_with_IOP
	movl	(%r14,%rbx,8), %r12d
	movq	16(%r15), %rdi
	callq	_strlen
	leaq	1(%rax), %rsi
	movq	16(%r15), %rdx
	movl	%r12d, %edi
	callq	_send_to_fd
	movl	(%r14,%rbx,8), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_error_response
	testq	%rax, %rax
	movl	$-1, %eax
	jne	LBB0_17
## %bb.10:
	movl	(%r13), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CHASSIS,4,2                ## @MAX_CHASSIS
	.comm	_MAX_GEOSLOT,4,2                ## @MAX_GEOSLOT
	.comm	_units,8,3                      ## @units
	.comm	_LIVE,4,2                       ## @LIVE
	.no_dead_strip	_acn_open_live
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acn_open_live
_acn_open_live:                         ; @acn_open_live
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #12
	bl	_pcap_platform_finddevs
Lloh0:
	adrp	x8, _MAX_CHASSIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CHASSIS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_15
; %bb.1:
	mov	x24, #0
Lloh3:
	adrp	x23, _MAX_GEOSLOT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_GEOSLOT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x25, _units@GOTPAGE
Lloh6:
	ldr	x25, [x25, _units@GOTPAGEOFF]
	mov	w26, #24
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	tbnz	w8, #31, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	x27, w8, sxtw
	add	x27, x27, #1
	b.ge	LBB0_12
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x9, [x25]
	ldr	x22, [x9, x24, lsl #3]
	madd	x9, x27, x26, x22
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	madd	x9, x27, x26, x22
	ldr	x28, [x9, #8]
	cbnz	x28, LBB0_9
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	ldr	x28, [x28, #8]
	cbz	x28, LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x28, #16]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x0, [x28, #24]
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_8
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh7:
	adrp	x9, _MAX_CHASSIS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAX_CHASSIS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x24, w9, sxtw
	add	x24, x24, #1
	b.lt	LBB0_2
	b	LBB0_15
LBB0_14:
	and	x8, x27, #0xffffffff
	mov	w9, #24
	mul	x8, x8, x9
	add	x21, x22, x8
	ldr	w8, [x28]
	str	w8, [x20]
Lloh10:
	adrp	x8, _LIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LIVE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_open_with_IOP
	ldr	w20, [x21]
	ldr	x0, [x28, #16]
	bl	_strlen
	add	x1, x0, #1
	ldr	x2, [x28, #16]
	mov	x0, x20
	bl	_send_to_fd
	ldr	w0, [x21]
	mov	x1, x19
	bl	_get_error_response
	cbz	x0, LBB0_16
LBB0_15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	ldr	w0, [x21]
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CHASSIS,4,2                ; @MAX_CHASSIS
	.comm	_MAX_GEOSLOT,4,2                ; @MAX_GEOSLOT
	.comm	_units,8,3                      ; @units
	.comm	_LIVE,4,2                       ; @LIVE
	.no_dead_strip	_acn_open_live
.subsections_via_symbols
