	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dag_findalldevs                ## -- Begin function dag_findalldevs
	.p2align	4, 0x90
_dag_findalldevs:                       ## @dag_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DAGNAME_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_DAG_MAX_BOARDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_dag_close
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	leaq	L_.str(%rip), %r14
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movq	_DAG_MAX_BOARDS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$12, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movq	_DAGNAME_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	-108(%rbp), %rcx
	callq	_dag_parse_name
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_dag_open
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_dag_pciinfo
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_dag_device_name
	movq	%rax, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DAG_STREAM_MAX@GOTPCREL(%rip), %r13
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-60(%rbp), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_add_dev
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, %edi
	callq	_dag_rx_get_stream_count
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	addl	$2, %ebx
	cmpl	(%r13), %ebx
	jge	LBB0_18
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dag_attach_stream
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_dag_detach_stream
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	movl	$10, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_add_dev
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$2, %r14d
	movq	_DAG_STREAM_MAX@GOTPCREL(%rip), %r13
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	decl	%r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_14:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	$-1, %ecx
	jmp	LBB0_22
LBB0_4:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	-60(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movl	$-1, %ecx
	jmp	LBB0_21
LBB0_20:
	xorl	%ecx, %ecx
LBB0_21:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DAGNAME_BUFSIZE,4,2            ## @DAGNAME_BUFSIZE
	.comm	_DAG_MAX_BOARDS,4,2             ## @DAG_MAX_BOARDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dag%d"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"dag: device name %s can't be parsed"

	.comm	_DAG_STREAM_MAX,4,2             ## @DAG_STREAM_MAX
L_.str.2:                               ## @.str.2
	.asciz	"dag%d:%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dag_findalldevs                ; -- Begin function dag_findalldevs
	.p2align	2
_dag_findalldevs:                       ; @dag_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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x12, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _DAGNAME_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DAGNAME_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x23, _DAG_MAX_BOARDS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DAG_MAX_BOARDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	stur	x12, [x29, #-112]               ; 8-byte Folded Spill
	mov	w22, #0
Lloh9:
	adrp	x25, l_.str@PAGE
Lloh10:
	add	x25, x25, l_.str@PAGEOFF
Lloh11:
	adrp	x28, _DAG_STREAM_MAX@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DAG_STREAM_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_dag_close
	mov	x26, x23
Lloh13:
	adrp	x23, _DAG_MAX_BOARDS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DAG_MAX_BOARDS@GOTPAGEOFF]
Lloh15:
	adrp	x25, l_.str@PAGE
Lloh16:
	add	x25, x25, l_.str@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x8, x22
	str	x8, [sp, #-16]!
	sub	x0, x29, #100
	mov	w1, #12
	mov	x2, x25
	bl	_pcap_snprintf
	add	sp, sp, #16
	ldr	w2, [x26]
	sub	x0, x29, #100
	sub	x3, x29, #104
	mov	x1, x21
	bl	_dag_parse_name
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_dag_open
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	bl	_dag_pciinfo
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x0]
	mov	w1, #1
	bl	_dag_device_name
	mov	x25, x0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x29, #100
	mov	x0, x20
	mov	w2, #0
	mov	x3, x25
	mov	x4, x19
	bl	_add_dev
	cbz	x0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x26
	mov	x0, x24
	bl	_dag_rx_get_stream_count
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	w27, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w27, w27, #2
	ldr	w8, [x28]
	cmp	w27, w8
	b.ge	LBB0_2
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x27
	mov	w2, #0
	mov	w3, #0
	bl	_dag_attach_stream
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x24
	mov	x1, x27
	bl	_dag_detach_stream
	stp	x22, x27, [sp, #-16]!
	sub	x0, x29, #100
	mov	w1, #10
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_pcap_snprintf
	add	sp, sp, #16
	sub	x1, x29, #100
	mov	x0, x20
	mov	w2, #0
	mov	x3, x25
	mov	x4, x19
	bl	_add_dev
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w26, #2
	b.lt	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	sub	w26, w26, #1
	b	LBB0_12
LBB0_17:
	mov	w0, #-1
	b	LBB0_21
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
Lloh19:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	sub	x8, x29, #100
	str	x8, [sp, #-16]!
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pcap_snprintf
	add	sp, sp, #16
	mov	w0, #-1
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldur	x12, [x29, #-112]               ; 8-byte Folded Reload
LBB0_22:
	mov	sp, x12
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	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
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DAGNAME_BUFSIZE,4,2            ; @DAGNAME_BUFSIZE
	.comm	_DAG_MAX_BOARDS,4,2             ; @DAG_MAX_BOARDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dag%d"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"dag: device name %s can't be parsed"

	.comm	_DAG_STREAM_MAX,4,2             ; @DAG_STREAM_MAX
l_.str.2:                               ; @.str.2
	.asciz	"dag%d:%d"

.subsections_via_symbols
