	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_BUFMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_prog@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	leaq	LJTI0_0(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	callq	_atol
	cltq
	movq	_maxbytes@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-80(%rax), %ecx
	cmpl	$34, %ecx
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_pidfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	callq	_strcpy
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_debug@GOTPCREL(%rip), %rax
	incq	(%rax)
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	cltq
	movq	_maxpkts@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_reflect@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_1
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	-56(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	subl	%eax, %ebx
	cmpl	$2, %ebx
	jne	LBB0_12
## %bb.11:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	callq	_usage
	movl	(%r15), %eax
LBB0_13:
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movslq	%eax, %rbx
	movq	(%r14,%rbx,8), %rdi
	callq	_atoi
	movq	8(%r14,%rbx,8), %r12
	movl	%eax, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_DIVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_42
## %bb.16:
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, -80(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edi
	movl	$12, %edx
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_43
## %bb.17:
	movq	_DLT_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BUFMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pcap_open_dead
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_pcap_dump_open
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_44
## %bb.18:
	movl	%ebx, %edi
	callq	_okay
	movl	%r15d, %ebx
	incl	%ebx
	leaq	-100(%rbp), %r14
	jmp	LBB0_19
LBB0_41:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fflush
	movl	%r13d, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_FD_ZERO
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_FD_SET
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	movl	$11, %edi
	callq	_quit
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$12, -44(%rbp)
	movl	%r15d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	leaq	-44(%rbp), %r9
	callq	_recvfrom
	movq	%rax, %r12
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %r8d
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	testq	%r12, %r12
	je	LBB0_19
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_reflect@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	$12, -44(%rbp)
	movl	%r15d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	movl	$12, %r9d
	callq	_sendto
	movl	%eax, %r13d
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	testl	%r13d, %r13d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jns	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.8(%rip), %rdi
	callq	_perror
	movl	$13, %edi
	callq	_quit
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_maxpkts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_totpkts@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rsi)
	cmpq	%rax, %rcx
	jl	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_reflect@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_19
## %bb.34:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edi, %edi
	callq	_quit
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_maxbytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_totbytes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	addq	%r12, %rcx
	movq	%rcx, (%rdx)
	cmpq	%rcx, %rax
	jge	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_reflect@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_19
## %bb.38:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edi, %edi
	callq	_quit
LBB0_39:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %r13d
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%r12, -128(%rbp)
	movq	%r12, -120(%rbp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-128(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_pcap_dump
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_perror
	movl	$14, %edi
	callq	_quit
	jmp	LBB0_41
LBB0_42:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movl	$2, %edi
	callq	_exit
LBB0_43:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movl	$3, %edi
	callq	_exit
LBB0_44:
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_pcap_perror
	movl	$4, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_BUFMAX,4,2                     ## @BUFMAX
	.comm	_prog,8,3                       ## @prog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drb:p:P:"

	.comm	_debug,8,3                      ## @debug
	.comm	_reflect,4,2                    ## @reflect
	.comm	_optarg,8,3                     ## @optarg
	.comm	_maxbytes,8,3                   ## @maxbytes
	.comm	_maxpkts,8,3                    ## @maxpkts
	.comm	_pidfile,4,2                    ## @pidfile
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"bind to %d.\ndump to '%s'.\n"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_IPPROTO_DIVERT,4,2             ## @IPPROTO_DIVERT
L_.str.2:                               ## @.str.2
	.asciz	"socket(DIVERT)"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
L_.str.3:                               ## @.str.3
	.asciz	"bind(divert)"

	.comm	_DLT_RAW,4,2                    ## @DLT_RAW
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.4:                               ## @.str.4
	.asciz	"select"

L_.str.5:                               ## @.str.5
	.asciz	"recvfrom(%d) = %zd (%d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"  sendto(%d) = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"sendto(sd)"

	.comm	_totpkts,8,3                    ## @totpkts
	.comm	_totbytes,8,3                   ## @totbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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, #64
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _BUFMAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BUFMAX@GOTPAGEOFF]
	ldr	w19, [x25]
	mov	x9, x19
Lloh2:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh3:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	w24, #0
Lloh4:
	adrp	x8, _prog@GOTPAGE
Lloh5:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh6:
	str	x9, [x8]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
Lloh9:
	adrp	x26, lJTI0_0@PAGE
Lloh10:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh11:
	adrp	x27, _pidfile@GOTPAGE
Lloh12:
	ldr	x27, [x27, _pidfile@GOTPAGEOFF]
Lloh13:
	adrp	x28, _optarg@GOTPAGE
Lloh14:
	ldr	x28, [x28, _optarg@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x28]
	bl	_atol
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh15:
	adrp	x9, _maxbytes@GOTPAGE
Lloh16:
	ldr	x9, [x9, _maxbytes@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	sub	w8, w0, #80
	cmp	w8, #34
	b.hi	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	ldr	x1, [x28]
	bl	_strcpy
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x9, _debug@GOTPAGE
Lloh19:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
	ldr	x8, [x9]
	add	x8, x8, #1
	str	x8, [x9]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x28]
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh20:
	adrp	x9, _maxpkts@GOTPAGE
Lloh21:
	ldr	x9, [x9, _maxpkts@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x9, _reflect@GOTPAGE
Lloh24:
	ldr	x9, [x9, _reflect@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	b	LBB0_2
LBB0_10:
Lloh25:
	adrp	x23, _optind@GOTPAGE
Lloh26:
	ldr	x23, [x23, _optind@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w9, w22, w8
	cmp	w9, #2
	ccmp	w24, #0, #0, eq
	b.eq	LBB0_12
; %bb.11:
	bl	_usage
	ldr	w8, [x23]
LBB0_12:
	sxtw	x9, w8
	add	x22, x9, #1
	str	w22, [x23]
	ldr	x0, [x21, w8, sxtw #3]
	bl	_atoi
	mov	x24, x0
	ldr	x23, [x21, x22, lsl #3]
Lloh27:
	adrp	x8, _debug@GOTPAGE
Lloh28:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _stderr@GOTPAGE
Lloh31:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x9]
	str	x23, [sp, #-16]!
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_fprintf
	add	sp, sp, #16
LBB0_14:
Lloh34:
	adrp	x8, _PF_INET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _IPPROTO_DIVERT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IPPROTO_DIVERT@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_41
; %bb.15:
	mov	x22, x0
	mov	x0, x24
	bl	_htons
	stur	w0, [x29, #-88]
Lloh43:
	adrp	x8, _AF_INET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _INADDR_ANY@GOTPAGE
Lloh47:
	ldr	x9, [x9, _INADDR_ANY@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-96]
	sub	x1, x29, #96
	mov	x0, x22
	mov	w2, #12
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_42
; %bb.16:
Lloh49:
	adrp	x8, _DLT_RAW@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DLT_RAW@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldr	w1, [x25]
	bl	_pcap_open_dead
	mov	x21, x0
	stur	x23, [x29, #-144]               ; 8-byte Folded Spill
	mov	x1, x23
	bl	_pcap_dump_open
	cbz	x0, LBB0_43
; %bb.17:
	mov	x23, x0
	mov	x0, x24
	bl	_okay
	add	w24, w22, #1
	sub	x8, x29, #128
Lloh52:
	adrp	x25, _errno@GOTPAGE
Lloh53:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh54:
	adrp	x27, _EINTR@GOTPAGE
Lloh55:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
	add	x8, x8, #16
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
	mov	w26, #12
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x23
	bl	_fflush
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #100
	bl	_FD_ZERO
	sub	x1, x29, #100
	mov	x0, x22
	bl	_FD_SET
	sub	x1, x29, #100
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh56:
	adrp	x0, l_.str.4@PAGE
Lloh57:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	mov	w0, #11
	bl	_quit
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	x1, x29, #100
	mov	x0, x22
	bl	_FD_ISSET
	cbz	w0, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	stur	w26, [x29, #-84]
	sub	x4, x29, #96
	sub	x5, x29, #84
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_recvfrom
	mov	x28, x0
Lloh58:
	adrp	x8, _debug@GOTPAGE
Lloh59:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh61:
	adrp	x8, _stderr@GOTPAGE
Lloh62:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	ldur	w8, [x29, #-84]
	stp	x28, x8, [sp, #-16]!
Lloh64:
	adrp	x1, l_.str.5@PAGE
Lloh65:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	bl	_fprintf
	add	sp, sp, #16
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	cbz	x28, LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh66:
	adrp	x8, _reflect@GOTPAGE
Lloh67:
	ldr	x8, [x8, _reflect@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	cbz	w8, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=1
	stur	w26, [x29, #-84]
	sub	x4, x29, #96
	mov	x0, x22
	mov	x1, x20
	mov	x2, x28
	mov	w3, #0
	mov	w5, #12
	bl	_sendto
	mov	x21, x0
Lloh69:
	adrp	x8, _debug@GOTPAGE
Lloh70:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	cbz	x8, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh72:
	adrp	x8, _stderr@GOTPAGE
Lloh73:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	str	x21, [sp, #-16]!
Lloh75:
	adrp	x1, l_.str.7@PAGE
Lloh76:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x22
	bl	_fprintf
	add	sp, sp, #16
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=1
	tbz	w21, #31, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh77:
	adrp	x0, l_.str.8@PAGE
Lloh78:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_perror
	mov	w0, #13
	bl	_quit
LBB0_31:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh79:
	adrp	x8, _maxpkts@GOTPAGE
Lloh80:
	ldr	x8, [x8, _maxpkts@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
	cbz	x8, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh82:
	adrp	x11, _totpkts@GOTPAGE
Lloh83:
	ldr	x11, [x11, _totpkts@GOTPAGEOFF]
	ldr	x9, [x11]
	add	x10, x9, #1
	str	x10, [x11]
	cmp	x9, x8
	b.lt	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh84:
	adrp	x8, _reflect@GOTPAGE
Lloh85:
	ldr	x8, [x8, _reflect@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_19
; %bb.34:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #0
	bl	_quit
LBB0_35:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh87:
	adrp	x8, _maxbytes@GOTPAGE
Lloh88:
	ldr	x8, [x8, _maxbytes@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	cbz	x8, LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh90:
	adrp	x10, _totbytes@GOTPAGE
Lloh91:
	ldr	x10, [x10, _totbytes@GOTPAGEOFF]
	ldr	x9, [x10]
	add	x9, x28, x9
	cmp	x8, x9
	str	x9, [x10]
	b.ge	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh92:
	adrp	x8, _reflect@GOTPAGE
Lloh93:
	ldr	x8, [x8, _reflect@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_19
; %bb.38:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #0
	bl	_quit
LBB0_39:                                ;   in Loop: Header=BB0_19 Depth=1
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	mov	x1, #0
	bl	_gettimeofday
	stp	x28, x28, [x29, #-128]
	sub	x1, x29, #128
	mov	x0, x23
	mov	x2, x20
	bl	_pcap_dump
	mov	x0, x23
	bl	_ferror
	cbz	x0, LBB0_18
; %bb.40:                               ;   in Loop: Header=BB0_19 Depth=1
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_perror
	mov	w0, #14
	bl	_quit
	b	LBB0_18
LBB0_41:
Lloh95:
	adrp	x0, l_.str.2@PAGE
Lloh96:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w0, #2
	bl	_exit
LBB0_42:
Lloh97:
	adrp	x0, l_.str.3@PAGE
Lloh98:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	mov	w0, #3
	bl	_exit
LBB0_43:
	mov	x0, x21
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
	bl	_pcap_perror
	mov	w0, #4
	bl	_exit
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
                                        ; -- End function
	.comm	_BUFMAX,4,2                     ; @BUFMAX
	.comm	_prog,8,3                       ; @prog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drb:p:P:"

	.comm	_debug,8,3                      ; @debug
	.comm	_reflect,4,2                    ; @reflect
	.comm	_optarg,8,3                     ; @optarg
	.comm	_maxbytes,8,3                   ; @maxbytes
	.comm	_maxpkts,8,3                    ; @maxpkts
	.comm	_pidfile,4,2                    ; @pidfile
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"bind to %d.\ndump to '%s'.\n"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_IPPROTO_DIVERT,4,2             ; @IPPROTO_DIVERT
l_.str.2:                               ; @.str.2
	.asciz	"socket(DIVERT)"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
l_.str.3:                               ; @.str.3
	.asciz	"bind(divert)"

	.comm	_DLT_RAW,4,2                    ; @DLT_RAW
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.4:                               ; @.str.4
	.asciz	"select"

l_.str.5:                               ; @.str.5
	.asciz	"recvfrom(%d) = %zd (%d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"  sendto(%d) = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"sendto(sd)"

	.comm	_totpkts,8,3                    ; @totpkts
	.comm	_totbytes,8,3                   ; @totbytes
.subsections_via_symbols
