	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SIGUSR2@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ebx
	jg	LBB0_3
## %bb.1:
	movq	_sig_handler@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_signal
	leal	1(%rbx), %eax
	cmpl	(%r14), %ebx
	movl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	movq	_BPF_NRUNS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	movq	_nins@GOTPCREL(%rip), %r15
	movq	_pkt@GOTPCREL(%rip), %r13
	movq	_wirelen@GOTPCREL(%rip), %r12
	movq	_buflen@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %esi
	movl	(%r12), %edx
	movl	(%r14), %ecx
	callq	_bpf_filter
	incq	%rbx
	movq	_BPF_NRUNS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_pc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_8:
                                        ## implicit-def: $rax
LBB0_9:
	movq	_expect_signal@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.10:
	movq	_verbose@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %eax
LBB0_12:
	movq	_FAILED@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jg	LBB0_22
	jmp	LBB0_24
LBB0_14:
	movq	_expect@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_verbose@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpq	%rsi, %rax
	jne	LBB0_19
## %bb.15:
	cmpl	$2, %ecx
	jl	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %ecx
LBB0_17:
	movq	_PASSED@GOTPCREL(%rip), %rbx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.18:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_23
LBB0_19:
	cmpl	$2, %ecx
	jl	LBB0_21
## %bb.20:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	(%rbx), %ecx
LBB0_21:
	movq	_FAILED@GOTPCREL(%rip), %rbx
	testl	%ecx, %ecx
	jle	LBB0_24
LBB0_22:
	leaq	L_str.6(%rip), %rdi
LBB0_23:
	callq	_puts
LBB0_24:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIGUSR2,4,2                    ## @SIGUSR2
	.comm	_sig_handler,4,2                ## @sig_handler
	.comm	_BPF_NRUNS,8,3                  ## @BPF_NRUNS
	.comm	_nins,8,3                       ## @nins
	.comm	_pc,8,3                         ## @pc
	.comm	_pkt,4,2                        ## @pkt
	.comm	_wirelen,4,2                    ## @wirelen
	.comm	_buflen,4,2                     ## @buflen
	.comm	_expect_signal,8,3              ## @expect_signal
	.comm	_verbose,4,2                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected signal %d but got none:\t"

	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_expect,8,3                     ## @expect
L_.str.2:                               ## @.str.2
	.asciz	"Expected 0x%x but got 0x%x:\t"

L_.str.3:                               ## @.str.3
	.asciz	"Expected and got 0x%x:\t"

	.comm	_PASSED,4,2                     ## @PASSED
	.comm	_invalid,8,3                    ## @invalid
L_str:                                  ## @str
	.asciz	"PASSED"

L_str.6:                                ## @str.6
	.asciz	"FAILED"

.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:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x20, _SIGUSR2@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SIGUSR2@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w19, w8
	b.gt	LBB0_3
; %bb.1:
Lloh5:
	adrp	x21, _sig_handler@GOTPAGE
Lloh6:
	ldr	x21, [x21, _sig_handler@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_signal
	add	w8, w19, #1
	ldr	w9, [x20]
	cmp	w19, w9
	mov	x19, x8
	b.lt	LBB0_2
LBB0_3:
Lloh7:
	adrp	x19, _BPF_NRUNS@GOTPAGE
Lloh8:
	ldr	x19, [x19, _BPF_NRUNS@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
Lloh9:
	adrp	x21, _nins@GOTPAGE
Lloh10:
	ldr	x21, [x21, _nins@GOTPAGEOFF]
Lloh11:
	adrp	x22, _pc@GOTPAGE
Lloh12:
	ldr	x22, [x22, _pc@GOTPAGEOFF]
Lloh13:
	adrp	x23, _pkt@GOTPAGE
Lloh14:
	ldr	x23, [x23, _pkt@GOTPAGEOFF]
Lloh15:
	adrp	x24, _wirelen@GOTPAGE
Lloh16:
	ldr	x24, [x24, _wirelen@GOTPAGEOFF]
Lloh17:
	adrp	x25, _buflen@GOTPAGE
Lloh18:
	ldr	x25, [x25, _buflen@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, #0
	csel	x0, xzr, x9, eq
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w3, [x25]
	bl	_bpf_filter
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
                                        ; implicit-def: $x0
LBB0_7:
Lloh19:
	adrp	x8, _expect_signal@GOTPAGE
Lloh20:
	ldr	x8, [x8, _expect_signal@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
Lloh22:
	adrp	x19, _verbose@GOTPAGE
Lloh23:
	ldr	x19, [x19, _verbose@GOTPAGEOFF]
	ldr	w9, [x19]
	cmp	w9, #1
	b.le	LBB0_10
; %bb.9:
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w9, [x19]
LBB0_10:
Lloh26:
	adrp	x19, _FAILED@GOTPAGE
Lloh27:
	ldr	x19, [x19, _FAILED@GOTPAGEOFF]
	cmp	w9, #1
	b.ge	LBB0_19
	b	LBB0_21
LBB0_11:
Lloh28:
	adrp	x8, _expect@GOTPAGE
Lloh29:
	ldr	x8, [x8, _expect@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x8]
Lloh31:
	adrp	x19, _verbose@GOTPAGE
Lloh32:
	ldr	x19, [x19, _verbose@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	x0, x9
	b.ne	LBB0_16
; %bb.12:
	cmp	w8, #1
	b.le	LBB0_14
; %bb.13:
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
LBB0_14:
Lloh35:
	adrp	x19, _PASSED@GOTPAGE
Lloh36:
	ldr	x19, [x19, _PASSED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.15:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_20
LBB0_16:
	cmp	w8, #1
	b.le	LBB0_18
; %bb.17:
	stp	x9, x0, [sp]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
LBB0_18:
Lloh41:
	adrp	x19, _FAILED@GOTPAGE
Lloh42:
	ldr	x19, [x19, _FAILED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_21
LBB0_19:
Lloh43:
	adrp	x0, l_str.6@PAGE
Lloh44:
	add	x0, x0, l_str.6@PAGEOFF
LBB0_20:
	bl	_puts
LBB0_21:
	ldr	w0, [x19]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIGUSR2,4,2                    ; @SIGUSR2
	.comm	_sig_handler,4,2                ; @sig_handler
	.comm	_BPF_NRUNS,8,3                  ; @BPF_NRUNS
	.comm	_nins,8,3                       ; @nins
	.comm	_pc,8,3                         ; @pc
	.comm	_pkt,4,2                        ; @pkt
	.comm	_wirelen,4,2                    ; @wirelen
	.comm	_buflen,4,2                     ; @buflen
	.comm	_expect_signal,8,3              ; @expect_signal
	.comm	_verbose,4,2                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected signal %d but got none:\t"

	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_expect,8,3                     ; @expect
l_.str.2:                               ; @.str.2
	.asciz	"Expected 0x%x but got 0x%x:\t"

l_.str.3:                               ; @.str.3
	.asciz	"Expected and got 0x%x:\t"

	.comm	_PASSED,4,2                     ; @PASSED
	.comm	_invalid,8,3                    ; @invalid
l_str:                                  ; @str
	.asciz	"PASSED"

l_str.6:                                ; @str.6
	.asciz	"FAILED"

.subsections_via_symbols
