	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_svc_valid_udp_hdr
_udp_svc_valid_udp_hdr:                 ## @udp_svc_valid_udp_hdr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_DS_UDP_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htobe32
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jne	LBB0_8
## %bb.1:
	movl	8(%r15), %ecx
	cmpl	$6, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$4, %ecx
	jne	LBB0_8
## %bb.3:
	movq	(%r14), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%r15), %rcx
	movq	_DS_UDP_IPV4_HDR_LEN@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rcx
	movq	_AF_INET6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	16(%r15), %rcx
	movq	_DS_UDP_IPV6_HDR_LEN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_UDP_TAG,4,2                 ## @DS_UDP_TAG
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_DS_UDP_IPV4_HDR_LEN,8,3        ## @DS_UDP_IPV4_HDR_LEN
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_DS_UDP_IPV6_HDR_LEN,8,3        ## @DS_UDP_IPV6_HDR_LEN
	.no_dead_strip	_udp_svc_valid_udp_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_svc_valid_udp_hdr
_udp_svc_valid_udp_hdr:                 ; @udp_svc_valid_udp_hdr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _DS_UDP_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS_UDP_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htobe32
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #6
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AF_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _DS_UDP_IPV4_HDR_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DS_UDP_IPV4_HDR_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #1
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _DS_UDP_IPV6_HDR_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DS_UDP_IPV6_HDR_LEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_UDP_TAG,4,2                 ; @DS_UDP_TAG
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_DS_UDP_IPV4_HDR_LEN,8,3        ; @DS_UDP_IPV4_HDR_LEN
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_DS_UDP_IPV6_HDR_LEN,8,3        ; @DS_UDP_IPV6_HDR_LEN
	.no_dead_strip	_udp_svc_valid_udp_hdr
.subsections_via_symbols
