	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_ip4
_validate_ip4:                          ## @validate_ip4
	.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, 40(%rdi)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	_ETH_RX_NFC_IP4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	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
	incl	%eax
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_RX_NFC_IP4,8,3             ## @ETH_RX_NFC_IP4
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_ip4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_ip4
_validate_ip4:                          ; @validate_ip4
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ETH_RX_NFC_IP4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_RX_NFC_IP4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x10, x8, [x0, #16]
	cmp	x8, #0
	cset	w8, ne
	mov	w9, #1
	cinc	w9, w9, ne
	ldr	x11, [x0, #8]
	cmp	x10, #0
	csel	w8, w8, w9, eq
	cmp	x11, #0
	cinc	w8, w8, ne
	add	w0, w8, #1
	ret
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_RX_NFC_IP4,8,3             ; @ETH_RX_NFC_IP4
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_ip4
.subsections_via_symbols
