	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmnet_rtnl_validate
_rmnet_rtnl_validate:                   ## @rmnet_rtnl_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_IFLA_RMNET_MUX_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_nla_get_u16
	movl	%eax, %ecx
	movq	_RMNET_MAX_LOGICAL_EP@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jl	LBB0_6
## %bb.4:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_RMNET_MUX_ID,8,3          ## @IFLA_RMNET_MUX_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RMNET_MAX_LOGICAL_EP,4,2       ## @RMNET_MAX_LOGICAL_EP
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_rmnet_rtnl_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmnet_rtnl_validate
_rmnet_rtnl_validate:                   ; @rmnet_rtnl_validate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _IFLA_RMNET_MUX_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_RMNET_MUX_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x1, x8, lsl #3]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_nla_get_u16
Lloh3:
	adrp	x8, _RMNET_MAX_LOGICAL_EP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RMNET_MAX_LOGICAL_EP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ERANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_RMNET_MUX_ID,8,3          ; @IFLA_RMNET_MUX_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RMNET_MAX_LOGICAL_EP,4,2       ; @RMNET_MAX_LOGICAL_EP
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_rmnet_rtnl_validate
.subsections_via_symbols
