	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_tcpudp4
_validate_tcpudp4:                      ## @validate_tcpudp4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rdi)
	setne	%cl
	leal	1(%rcx), %eax
	cmpq	$0, 16(%rdi)
	cmovel	%ecx, %eax
	cmpq	$1, 8(%rdi)
	sbbl	$-1, %eax
	cmpq	$1, (%rdi)
	sbbl	$-1, %eax
	incl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_tcpudp4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_tcpudp4
_validate_tcpudp4:                      ; @validate_tcpudp4
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldp	x9, x8, [x0, #16]
	cmp	x8, #0
	cset	w8, ne
	mov	w10, #1
	cinc	w10, w10, ne
	cmp	x9, #0
	csel	w8, w8, w10, eq
	ldp	x10, x9, [x0]
	cmp	x9, #0
	cinc	w8, w8, ne
	cmp	x10, #0
	cinc	w8, w8, ne
	add	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_tcpudp4
.subsections_via_symbols
