	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_threads
_start_threads:                         ## @start_threads
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	movl	$48, %esi
	callq	_calloc
	movq	_targs@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r15d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	36(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, 12(%rbx,%r14)
	callq	_initialize_packet
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_targs@GOTPCREL(%rip), %r13
	incq	%r15
	movslq	(%r12), %rax
	addq	$48, %r14
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_time
	xorl	%edi, %edi
	callq	_time
	movq	(%r13), %rbx
	leaq	(%rbx,%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$48, %esi
	callq	_bzero
	movl	$-1, (%rbx,%r14)
	movq	%r12, 32(%rbx,%r14)
	movl	40(%rbx,%r14), %edi
	leaq	-84(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r12), %rax
	movq	_DEV_NETMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r12), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	testq	%r14, %r14
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, (%r12)
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NR_REG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	4(%rax), %ecx
	movq	_NR_REG_ONE_NIC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -76(%rbp)
	movl	%r15d, -72(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	$0, %edx
	movq	_TD_TYPE_RECEIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NETMAP_NO_TX_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx,%r14), %rax
	movl	24(%rax), %edi
	movq	_NM_OPEN_IFNAME@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NM_OPEN_NO_MMAP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%esi, %esi
	leaq	-80(%rbp), %rcx
	callq	_nm_open
	movq	%rax, 24(%rbx,%r14)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx,%r14), %rax
	movl	24(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_D
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r12), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r14)
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 24(%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, (%rbx,%r14)
	movl	48(%r12), %eax
	movl	%eax, 20(%rbx,%r14)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, 4(%rbx,%r14)
	movl	%r15d, 8(%rbx,%r14)
	movl	32(%r12), %eax
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %edx
	jmp	LBB0_16
LBB0_18:
	movl	44(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D
	movl	44(%r12), %edi
	callq	_sleep
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_D
	cmpl	$0, (%r12)
	jle	LBB0_23
## %bb.19:
	leaq	L_.str.3(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$48, %rbx
	cmpq	%rax, %r13
	jge	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	_targs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	(%r15,%rbx), %rcx
	leaq	(%r15,%rbx), %rdi
	addq	$16, %rdi
	movl	40(%r12), %edx
	xorl	%esi, %esi
	callq	_pthread_create
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_D
	movl	$0, 4(%r15,%rbx)
	jmp	LBB0_22
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_targs,8,3                      ## @targs
	.comm	_DEV_NETMAP,8,3                 ## @DEV_NETMAP
	.comm	_NR_REG_MASK,4,2                ## @NR_REG_MASK
	.comm	_NR_REG_ONE_NIC,4,2             ## @NR_REG_ONE_NIC
	.comm	_TD_TYPE_RECEIVER,8,3           ## @TD_TYPE_RECEIVER
	.comm	_NETMAP_NO_TX_POLL,4,2          ## @NETMAP_NO_TX_POLL
	.comm	_NM_OPEN_IFNAME,4,2             ## @NM_OPEN_IFNAME
	.comm	_NM_OPEN_NO_MMAP,4,2            ## @NM_OPEN_NO_MMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to open %s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Wait %d secs for phy reset"

L_.str.2:                               ## @.str.2
	.asciz	"Ready..."

L_.str.3:                               ## @.str.3
	.asciz	"Unable to create thread %d: %s"

	.no_dead_strip	_start_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_threads
_start_threads:                         ; @start_threads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w20, [x0]
	mov	x0, x20
	mov	w1, #48
	bl	_calloc
Lloh0:
	adrp	x22, _targs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _targs@GOTPAGEOFF]
	str	x0, [x22]
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #-1
Lloh2:
	adrp	x27, _DEV_NETMAP@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DEV_NETMAP@GOTPAGEOFF]
	add	x20, sp, #16
	mov	w28, #1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w25, w9
	ldr	w10, [x19, #36]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [x8, #12]
	mov	x0, x21
	bl	_initialize_packet
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x24, x24, #48
	cmp	x25, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_time
	mov	w0, #0
	bl	_time
	ldr	x23, [x22]
	add	x21, x23, x24
	mov	x0, x21
	mov	w1, #48
	bl	_bzero
	str	w26, [x21]
	str	x19, [x21, #32]
	ldr	w0, [x21, #40]
	add	x1, sp, #44
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #56]
	ldr	q0, [x0]
	str	q0, [sp, #16]
	str	x20, [sp, #32]
	cbz	x24, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0, #4]
Lloh4:
	adrp	x9, _NR_REG_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NR_REG_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh7:
	adrp	x9, _NR_REG_ONE_NIC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NR_REG_ONE_NIC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w25, [sp, #20]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _TD_TYPE_RECEIVER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TD_TYPE_RECEIVER@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _NETMAP_NO_TX_POLL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NETMAP_NO_TX_POLL@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
	ldr	x9, [x21, #32]
	ldr	w0, [x9, #24]
Lloh16:
	adrp	x9, _NM_OPEN_IFNAME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NM_OPEN_IFNAME@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _NM_OPEN_NO_MMAP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NM_OPEN_NO_MMAP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x3, sp, #16
	mov	x1, #0
	bl	_nm_open
	add	x8, x23, x24
	str	x0, [x8, #24]
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #32]
Lloh22:
	adrp	x9, _errno@GOTPAGE
Lloh23:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	ldr	w21, [x8, #24]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #28]
	ldr	x9, [x22]
	str	w8, [x9, x24]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x23, #24]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0]
	add	x9, x23, x24
	str	w8, [x9]
	ldr	w8, [x19, #48]
	str	w8, [x9, #20]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x23, x24
	stp	w28, w25, [x8, #4]
	ldr	w9, [x19, #32]
	tbz	w9, #31, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #-1
	b	LBB0_3
LBB0_16:
	ldr	w8, [x19, #44]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D
	ldr	w0, [x19, #44]
	bl	_sleep
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D
	ldr	w8, [x19]
	cmp	w8, #1
Lloh31:
	adrp	x25, _errno@GOTPAGE
Lloh32:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	b.lt	LBB0_21
; %bb.17:
	mov	x23, #0
	mov	x24, #0
Lloh33:
	adrp	x20, l_.str.3@PAGE
Lloh34:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #48
	cmp	x24, x8
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x21, x8, x23
	add	x0, x21, #16
	ldr	w2, [x19, #40]
	mov	x1, #0
	mov	x3, x21
	bl	_pthread_create
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x25]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
	mov	x0, x20
	bl	_D
	str	wzr, [x21, #4]
	b	LBB0_18
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_targs,8,3                      ; @targs
	.comm	_DEV_NETMAP,8,3                 ; @DEV_NETMAP
	.comm	_NR_REG_MASK,4,2                ; @NR_REG_MASK
	.comm	_NR_REG_ONE_NIC,4,2             ; @NR_REG_ONE_NIC
	.comm	_TD_TYPE_RECEIVER,8,3           ; @TD_TYPE_RECEIVER
	.comm	_NETMAP_NO_TX_POLL,4,2          ; @NETMAP_NO_TX_POLL
	.comm	_NM_OPEN_IFNAME,4,2             ; @NM_OPEN_IFNAME
	.comm	_NM_OPEN_NO_MMAP,4,2            ; @NM_OPEN_NO_MMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to open %s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Wait %d secs for phy reset"

l_.str.2:                               ; @.str.2
	.asciz	"Ready..."

l_.str.3:                               ; @.str.3
	.asciz	"Unable to create thread %d: %s"

	.no_dead_strip	_start_threads
.subsections_via_symbols
