	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nmreplay_main
_nmreplay_main:                         ## @nmreplay_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	8(%rdi), %edi
	callq	_setaffinity
	leaq	36(%rbx), %rdi
	xorl	%esi, %esi
	callq	_set_tns_now
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_readpcap
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_pcap_prod
	movq	24(%rbx), %rdi
	callq	_destroy_pcap
	movq	$0, 24(%rbx)
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nm_open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_WWW
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_usleep
	movq	%rbx, %rdi
	callq	_cons
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_EEE
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_EEE
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_destroy_pcap
	jmp	LBB0_8
LBB0_4:
	movl	32(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_EEE
LBB0_8:
	movq	_do_abort@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read file %s"

L_.str.1:                               ## @.str.1
	.asciz	"cannot open netmap on %s"

	.comm	_do_abort,4,2                   ## @do_abort
L_.str.2:                               ## @.str.2
	.asciz	"prepare to send packets"

L_.str.3:                               ## @.str.3
	.asciz	"exiting on abort"

	.no_dead_strip	_nmreplay_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nmreplay_main
_nmreplay_main:                         ; @nmreplay_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_setaffinity
	add	x0, x19, #36
	mov	w1, #0
	bl	_set_tns_now
	cbz	x20, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_readpcap
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_pcap_prod
	ldr	x0, [x19, #24]
	bl	_destroy_pcap
	str	xzr, [x19, #24]
	ldr	w0, [x19, #32]
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_nm_open
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WWW
	mov	w0, #1000
	bl	_usleep
	mov	x0, x19
	bl	_cons
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_EEE
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.7:
	bl	_destroy_pcap
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_EEE
LBB0_9:
Lloh8:
	adrp	x8, _do_abort@GOTPAGE
Lloh9:
	ldr	x8, [x8, _do_abort@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read file %s"

l_.str.1:                               ; @.str.1
	.asciz	"cannot open netmap on %s"

	.comm	_do_abort,4,2                   ; @do_abort
l_.str.2:                               ; @.str.2
	.asciz	"prepare to send packets"

l_.str.3:                               ; @.str.3
	.asciz	"exiting on abort"

	.no_dead_strip	_nmreplay_main
.subsections_via_symbols
