	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_match
_socket_match:                          ## @socket_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ip_hdr
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.3:
	leaq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	callq	_extract_icmp4_fields
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_ip_hdrlen
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	%rax, -64(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
LBB0_6:
	movl	(%rbx), %edi
	callq	_dev_net
	movq	-64(%rbp), %rsi
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	(%r15), %r10d
	movq	_NFT_LOOKUP_ANY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	movl	%eax, %edi
	pushq	%rbx
	pushq	%r10
	callq	_nf_tproxy_get_sock_v4
	addq	$16, %rsp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_TCP_TIME_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rcx, %rbx
	callq	_inet_sk
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	sete	%bl
LBB0_9:
	testq	%r12, %r12
	je	LBB0_16
## %bb.10:
	movq	_XT_SOCKET_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_16
## %bb.11:
	movq	(%r15), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	callq	_inet_twsk
	cmpq	$0, (%rax)
	setne	%r12b
	jmp	LBB0_20
LBB0_13:
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_16:
	movb	$1, %r12b
LBB0_20:
	movq	%r15, %rdi
	callq	_xt_socket_put_sk
	xorl	%eax, %eax
	testb	%r12b, %r12b
	cmoveq	%rax, %r15
	testl	%ebx, %ebx
	cmovneq	%rax, %r15
	jmp	LBB0_21
LBB0_14:
	xorl	%r15d, %r15d
LBB0_21:
	movq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_ntohs
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	callq	_ntohs
	movl	%eax, %r12d
	addq	$8, %r14
	testq	%r13, %r13
	je	LBB0_23
## %bb.22:
	movl	(%r13), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_24
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r9d
	pushq	%r15
	pushq	%rax
	pushq	%r14
	callq	_pr_debug
	addq	$32, %rsp
	xorl	%r13d, %r13d
	testq	%r15, %r15
	setne	%r13b
LBB0_25:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movb	$1, %r12b
	movq	%r15, %rdi
	callq	_inet_sk
	cmpq	$0, 8(%rax)
	jne	LBB0_20
## %bb.18:
	movq	(%r15), %rax
	movq	_TCP_TIME_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.19:
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_ICMP,8,3               ## @IPPROTO_ICMP
	.comm	_NFT_LOOKUP_ANY,4,2             ## @NFT_LOOKUP_ANY
	.comm	_TCP_TIME_WAIT,8,3              ## @TCP_TIME_WAIT
	.comm	_XT_SOCKET_TRANSPARENT,4,2      ## @XT_SOCKET_TRANSPARENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proto %hhu %pI4:%hu -> %pI4:%hu (orig %pI4:%hu) sock %p\n"

	.comm	_IPS_SRC_NAT_DONE,4,2           ## @IPS_SRC_NAT_DONE
	.comm	_IP_CT_DIR_ORIGINAL,8,3         ## @IP_CT_DIR_ORIGINAL
	.comm	_IP_CT_ESTABLISHED,4,2          ## @IP_CT_ESTABLISHED
	.comm	_IP_CT_IS_REPLY,4,2             ## @IP_CT_IS_REPLY
	.comm	_IP_CT_RELATED,4,2              ## @IP_CT_RELATED
	.comm	_nf_conntrack_untracked,16,3    ## @nf_conntrack_untracked
	.no_dead_strip	_socket_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_match
_socket_match:                          ; @socket_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_ip_hdr
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_ip_hdrlen
	mov	x1, x0
	add	x3, sp, #40
	mov	x0, x23
	mov	w2, #8
	bl	_skb_header_pointer
	cbz	x0, LBB0_22
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19]
	str	x8, [sp, #16]
	ldp	w9, w8, [x19, #8]
	stp	w8, w9, [sp, #32]
	ldr	w8, [x0, #4]
	str	w8, [sp, #24]
	ldr	w8, [x0]
	str	w8, [sp, #28]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x9, _IPPROTO_ICMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPPROTO_ICMP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	x1, sp, #16
	add	x2, sp, #32
	add	x3, sp, #36
	add	x4, sp, #24
	add	x5, sp, #28
	mov	x0, x23
	bl	_extract_icmp4_fields
	cbz	x0, LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_22
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	w0, [x23]
	bl	_dev_net
	ldr	x1, [sp, #16]
	ldp	w2, w3, [sp, #32]
	ldp	w4, w5, [sp, #24]
	ldr	w6, [x22]
Lloh9:
	adrp	x8, _NFT_LOOKUP_ANY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFT_LOOKUP_ANY@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	bl	_nf_tproxy_get_sock_v4
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	x8, [x0]
Lloh12:
	adrp	x24, _TCP_TIME_WAIT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TCP_TIME_WAIT@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	w23, #0
	cbnz	x21, LBB0_12
	b	LBB0_16
LBB0_10:
	mov	x24, #0
	b	LBB0_18
LBB0_11:
	mov	x0, x22
	bl	_inet_sk
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w23, eq
	cbz	x21, LBB0_16
LBB0_12:
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _XT_SOCKET_TRANSPARENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XT_SOCKET_TRANSPARENT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_14:
	mov	x0, x22
	bl	_inet_twsk
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w21, ne
	b	LBB0_17
LBB0_15:
	mov	x0, x22
	bl	_inet_sk
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_23
LBB0_16:
	mov	w21, #1
LBB0_17:
	mov	x0, x22
	bl	_xt_socket_put_sk
	cmp	w23, #0
	cset	w8, eq
	tst	w8, w21
	csel	x24, x22, xzr, ne
LBB0_18:
	ldr	x21, [sp, #16]
	ldr	w0, [sp, #24]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [sp, #28]
	bl	_ntohs
	mov	x23, x0
	add	x19, x19, #8
	cbz	x20, LBB0_20
; %bb.19:
	ldr	w0, [x20]
	bl	_ntohs
	mov	x7, x0
	b	LBB0_21
LBB0_20:
	mov	w7, #0
LBB0_21:
	str	x24, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #32
	add	x4, sp, #36
	mov	x1, x21
	mov	x3, x22
	mov	x5, x23
	mov	x6, x19
	bl	_pr_debug
	cmp	x24, #0
	cset	w0, ne
LBB0_22:
	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
	add	sp, sp, #112
	ret
LBB0_23:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.24:
	mov	w21, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_ICMP,8,3               ; @IPPROTO_ICMP
	.comm	_NFT_LOOKUP_ANY,4,2             ; @NFT_LOOKUP_ANY
	.comm	_TCP_TIME_WAIT,8,3              ; @TCP_TIME_WAIT
	.comm	_XT_SOCKET_TRANSPARENT,4,2      ; @XT_SOCKET_TRANSPARENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proto %hhu %pI4:%hu -> %pI4:%hu (orig %pI4:%hu) sock %p\n"

	.comm	_IPS_SRC_NAT_DONE,4,2           ; @IPS_SRC_NAT_DONE
	.comm	_IP_CT_DIR_ORIGINAL,8,3         ; @IP_CT_DIR_ORIGINAL
	.comm	_IP_CT_ESTABLISHED,4,2          ; @IP_CT_ESTABLISHED
	.comm	_IP_CT_IS_REPLY,4,2             ; @IP_CT_IS_REPLY
	.comm	_IP_CT_RELATED,4,2              ; @IP_CT_RELATED
	.comm	_nf_conntrack_untracked,16,3    ; @nf_conntrack_untracked
	.no_dead_strip	_socket_match
.subsections_via_symbols
