	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_valid_recv
_ds_valid_recv:                         ## @ds_valid_recv
	.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	%rsi, %rbx
	movq	(%rdi), %r14
	movl	8(%rsi), %edi
	callq	_rs_wr_data
	movq	_DS_IPV4_HDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	4(%rdx), %rsi
	xorl	%ecx, %ecx
	cmpq	%rsi, (%rbx)
	jb	LBB0_5
## %bb.1:
	movl	(%r14,%rax), %esi
	cmpl	$4, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$6, %esi
	jne	LBB0_5
## %bb.3:
	movq	_DS_IPV6_HDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_4:
	xorl	%ecx, %ecx
	cmpq	%rdx, 8(%r14,%rax)
	sete	%cl
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_IPV4_HDR_LEN,8,3            ## @DS_IPV4_HDR_LEN
	.comm	_DS_IPV6_HDR_LEN,8,3            ## @DS_IPV6_HDR_LEN
	.no_dead_strip	_ds_valid_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_valid_recv
_ds_valid_recv:                         ; @ds_valid_recv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w0, [x1, #8]
	bl	_rs_wr_data
	ldr	x9, [x19]
Lloh0:
	adrp	x8, _DS_IPV4_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS_IPV4_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x10, x8, #4
	cmp	x9, x10
	b.lo	LBB0_5
; %bb.1:
	add	x9, x0, x20
	ldr	w10, [x9]
	cmp	w10, #4
	b.eq	LBB0_4
; %bb.2:
	cmp	w10, #6
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _DS_IPV6_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DS_IPV6_HDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
LBB0_4:
	ldr	x9, [x9, #8]
	cmp	x9, x8
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_IPV4_HDR_LEN,8,3            ; @DS_IPV4_HDR_LEN
	.comm	_DS_IPV6_HDR_LEN,8,3            ; @DS_IPV6_HDR_LEN
	.no_dead_strip	_ds_valid_recv
.subsections_via_symbols
