	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dag_create                     ## -- Begin function dag_create
	.p2align	4, 0x90
_dag_create:                            ## @dag_create
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r13
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movl	$0, (%r15)
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$3, %r13
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r12
	movq	-48(%rbp), %rdi
	cmpb	$58, (%rdi)
	jne	LBB0_6
## %bb.5:
	incq	%rdi
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-48(%rbp), %rdi
	cmpq	%r13, %rdi
	jne	LBB0_7
	jmp	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	cmpq	%r13, %rdi
	je	LBB0_1
LBB0_7:
	cmpb	$0, (%rdi)
	jne	LBB0_1
## %bb.8:
	testq	%r12, %r12
	js	LBB0_1
## %bb.9:
	movq	_DAG_MAX_BOARDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jge	LBB0_1
## %bb.10:
	testq	%rax, %rax
	js	LBB0_1
## %bb.11:
	movq	_DAG_STREAM_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.12:
	movl	$1, (%r15)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_pcap_create_common
	testq	%rax, %rax
	je	LBB0_2
## %bb.13:
	movq	%rax, %rbx
	movq	_dag_activate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$2, (%rbx)
	movl	$8, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_PCAP_TSTAMP_PRECISION_MICRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_PCAP_TSTAMP_PRECISION_NANO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_3
LBB0_16:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movq	%rbx, %rdi
	callq	_pcap_close
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dag"

	.comm	_DAG_MAX_BOARDS,8,3             ## @DAG_MAX_BOARDS
	.comm	_DAG_STREAM_MAX,8,3             ## @DAG_STREAM_MAX
	.comm	_dag_activate,4,2               ## @dag_activate
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"malloc"

	.comm	_PCAP_TSTAMP_PRECISION_MICRO,4,2 ## @PCAP_TSTAMP_PRECISION_MICRO
	.comm	_PCAP_TSTAMP_PRECISION_NANO,4,2 ## @PCAP_TSTAMP_PRECISION_NANO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dag_create                     ; -- Begin function dag_create
	.p2align	2
_dag_create:                            ; @dag_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csel	x21, x21, x0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_3
LBB0_1:
	mov	x21, #0
	str	wzr, [x20]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	add	x22, x21, #3
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #58
	b.ne	LBB0_5
; %bb.4:
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.ne	LBB0_6
	b	LBB0_1
LBB0_5:
	mov	x0, #0
	cmp	x8, x22
	b.eq	LBB0_1
LBB0_6:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.7:
	tbnz	x21, #63, LBB0_1
; %bb.8:
Lloh2:
	adrp	x8, _DAG_MAX_BOARDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DAG_MAX_BOARDS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_1
; %bb.9:
	tbnz	x0, #63, LBB0_1
; %bb.10:
Lloh5:
	adrp	x8, _DAG_STREAM_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAG_STREAM_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_1
; %bb.11:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #4
	bl	_pcap_create_common
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.12:
Lloh8:
	adrp	x8, _dag_activate@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dag_activate@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	w8, #2
	str	w8, [x21]
	mov	w0, #8
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_14
; %bb.13:
Lloh11:
	adrp	x8, _PCAP_TSTAMP_PRECISION_MICRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCAP_TSTAMP_PRECISION_MICRO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh14:
	adrp	x8, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	b	LBB0_2
LBB0_14:
Lloh17:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	mov	x0, x21
	bl	_pcap_close
	mov	x21, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dag"

	.comm	_DAG_MAX_BOARDS,8,3             ; @DAG_MAX_BOARDS
	.comm	_DAG_STREAM_MAX,8,3             ; @DAG_STREAM_MAX
	.comm	_dag_activate,4,2               ; @dag_activate
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"malloc"

	.comm	_PCAP_TSTAMP_PRECISION_MICRO,4,2 ; @PCAP_TSTAMP_PRECISION_MICRO
	.comm	_PCAP_TSTAMP_PRECISION_NANO,4,2 ; @PCAP_TSTAMP_PRECISION_NANO
.subsections_via_symbols
