	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_packet_match
_ip6_packet_match:                      ## @ip6_packet_match
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_ipv6_hdr
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	leaq	40(%r12), %rsi
	leaq	36(%r12), %rdx
	callq	_ipv6_masked_addr_cmp
	movq	_IP6T_INV_SRCIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%r12)
	setne	%dl
	cmpl	%edx, %eax
	jne	LBB0_2
## %bb.1:
	leaq	32(%r12), %rsi
	leaq	28(%r12), %rdx
	movq	%rbx, %rdi
	callq	_ipv6_masked_addr_cmp
	movq	_IP6T_INV_DSTIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%r12)
	setne	%dl
	cmpl	%edx, %eax
	jne	LBB0_2
## %bb.3:
	movl	20(%r12), %esi
	movl	24(%r12), %edx
	movq	%r15, %rdi
	callq	_ifname_compare_aligned
	testq	%rax, %rax
	setne	%cl
	movq	_IP6T_INV_VIA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	setne	%dl
	cmpb	%dl, %cl
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	movl	20(%r12), %edx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintf
	jmp	LBB0_18
LBB0_6:
	movl	12(%r12), %esi
	movl	16(%r12), %edx
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_ifname_compare_aligned
	testq	%rax, %rax
	setne	%cl
	movq	_IP6T_INV_VIA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	setne	%dl
	cmpb	%dl, %cl
	je	LBB0_8
## %bb.7:
	testl	%eax, %eax
	movl	12(%r12), %edx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_dprintf
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	_IP6T_F_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	testl	%eax, 4(%r12)
	je	LBB0_18
## %bb.9:
	leaq	-42(%rbp), %rcx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$-1, %edx
	xorl	%r8d, %r8d
	callq	_ipv6_find_hdr
	movl	%eax, %r15d
	movzwl	-42(%rbp), %eax
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.12:
	movl	%eax, (%rbx)
	movq	_IP6T_INV_PROTO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	(%r12), %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	8(%r12), %ecx
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dprintf
	movl	8(%r12), %eax
	cmpl	%r15d, %eax
	jne	LBB0_14
## %bb.13:
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%r12)
	sete	%cl
	jmp	LBB0_17
LBB0_10:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	16(%rbp), %rax
	movl	$1, (%rax)
	jmp	LBB0_16
LBB0_14:
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	jne	LBB0_18
LBB0_16:
	xorl	%ecx, %ecx
LBB0_17:
	movl	%ecx, %r14d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IP6T_INV_SRCIP,4,2             ## @IP6T_INV_SRCIP
	.comm	_IP6T_INV_DSTIP,4,2             ## @IP6T_INV_DSTIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Source or dest mismatch.\n"

	.comm	_IP6T_INV_VIA_IN,4,2            ## @IP6T_INV_VIA_IN
L_.str.1:                               ## @.str.1
	.asciz	"VIA in mismatch (%s vs %s).%s\n"

L_.str.2:                               ## @.str.2
	.asciz	" (INV)"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_IP6T_INV_VIA_OUT,4,2           ## @IP6T_INV_VIA_OUT
L_.str.4:                               ## @.str.4
	.asciz	"VIA out mismatch (%s vs %s).%s\n"

	.comm	_IP6T_F_PROTO,4,2               ## @IP6T_F_PROTO
L_.str.5:                               ## @.str.5
	.asciz	"Packet protocol %hi ?= %s%hi.\n"

	.comm	_IP6T_INV_PROTO,4,2             ## @IP6T_INV_PROTO
L_.str.6:                               ## @.str.6
	.asciz	"!"

	.no_dead_strip	_ip6_packet_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_packet_match
_ip6_packet_match:                      ; @ip6_packet_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x25, x1
	mov	x23, x0
	bl	_ipv6_hdr
	mov	x26, x0
	add	x0, x0, #4
	add	x1, x19, #40
	add	x2, x19, #36
	bl	_ipv6_masked_addr_cmp
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IP6T_INV_SRCIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IP6T_INV_SRCIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	add	x1, x19, #32
	add	x2, x19, #28
	mov	x0, x26
	bl	_ipv6_masked_addr_cmp
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IP6T_INV_DSTIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP6T_INV_DSTIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldp	w1, w2, [x19, #20]
	mov	x0, x25
	bl	_ifname_compare_aligned
	cmp	x0, #0
	cset	w9, ne
	ldr	w8, [x19]
Lloh6:
	adrp	x10, _IP6T_INV_VIA_IN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IP6T_INV_VIA_IN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	ands	w8, w10, w8
	cset	w10, ne
	cmp	w9, w10
	b.eq	LBB0_8
; %bb.3:
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh11:
	adrp	x10, l_.str.2@PAGE
Lloh12:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, ne
	ldr	w9, [x19, #20]
	stp	x9, x8, [sp, #8]
	str	x25, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_dprintf
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldp	w1, w2, [x19, #12]
	mov	x0, x24
	bl	_ifname_compare_aligned
	cmp	x0, #0
	cset	w9, ne
	ldr	w8, [x19]
Lloh17:
	adrp	x10, _IP6T_INV_VIA_OUT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IP6T_INV_VIA_OUT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	ands	w8, w10, w8
	cset	w10, ne
	cmp	w9, w10
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x9, l_.str.3@PAGE
Lloh21:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh22:
	adrp	x10, l_.str.2@PAGE
Lloh23:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, ne
	ldr	w9, [x19, #12]
	stp	x9, x8, [sp, #8]
	str	x24, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_10:
	ldr	w8, [x19, #4]
Lloh26:
	adrp	x9, _IP6T_F_PROTO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IP6T_F_PROTO@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.11:
	add	x3, sp, #30
	mov	x0, x23
	mov	x1, x22
	mov	w2, #-1
	mov	x4, #0
	bl	_ipv6_find_hdr
	ldrh	w8, [sp, #30]
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x22, x0
	str	w8, [x21]
	ldr	w8, [x19]
Lloh29:
	adrp	x20, _IP6T_INV_PROTO@GOTPAGE
Lloh30:
	ldr	x20, [x20, _IP6T_INV_PROTO@GOTPAGEOFF]
Lloh31:
	adrp	x9, l_.str.6@PAGE
Lloh32:
	add	x9, x9, l_.str.6@PAGEOFF
	ldr	w10, [x20]
Lloh33:
	adrp	x11, l_.str.3@PAGE
Lloh34:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w10, w8
	csel	x8, x11, x9, eq
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintf
	ldr	w8, [x19, #8]
	cmp	w8, w22
	b.ne	LBB0_16
; %bb.13:
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	cset	w0, eq
	b	LBB0_7
LBB0_14:
	cbnz	w8, LBB0_6
; %bb.15:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_7
LBB0_16:
	cbz	w8, LBB0_18
; %bb.17:
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_18:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IP6T_INV_SRCIP,4,2             ; @IP6T_INV_SRCIP
	.comm	_IP6T_INV_DSTIP,4,2             ; @IP6T_INV_DSTIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Source or dest mismatch.\n"

	.comm	_IP6T_INV_VIA_IN,4,2            ; @IP6T_INV_VIA_IN
l_.str.1:                               ; @.str.1
	.asciz	"VIA in mismatch (%s vs %s).%s\n"

l_.str.2:                               ; @.str.2
	.asciz	" (INV)"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_IP6T_INV_VIA_OUT,4,2           ; @IP6T_INV_VIA_OUT
l_.str.4:                               ; @.str.4
	.asciz	"VIA out mismatch (%s vs %s).%s\n"

	.comm	_IP6T_F_PROTO,4,2               ; @IP6T_F_PROTO
l_.str.5:                               ; @.str.5
	.asciz	"Packet protocol %hi ?= %s%hi.\n"

	.comm	_IP6T_INV_PROTO,4,2             ; @IP6T_INV_PROTO
l_.str.6:                               ; @.str.6
	.asciz	"!"

	.no_dead_strip	_ip6_packet_match
.subsections_via_symbols
