	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unx_validate
_unx_validate:                          ## @unx_validate
	.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	(%rsi), %edi
	callq	_ntohl
	movq	_RPC_AUTH_NULL@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_RPC_AUTH_UNIX@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_RPC_AUTH_SHORT@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movl	4(%rbx), %edi
	callq	_ntohl
	movq	_RPC_MAX_AUTH_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%eax, %esi
	callq	_printk
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	sarl	$2, %eax
	leal	2(%rax), %ecx
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx)
	cltq
	leaq	(%rbx,%rax,4), %rax
	addq	$8, %rax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_AUTH_NULL,8,3              ## @RPC_AUTH_NULL
	.comm	_RPC_AUTH_UNIX,8,3              ## @RPC_AUTH_UNIX
	.comm	_RPC_AUTH_SHORT,8,3             ## @RPC_AUTH_SHORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RPC: bad verf flavor: %u\n"

	.comm	_RPC_MAX_AUTH_SIZE,4,2          ## @RPC_MAX_AUTH_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"RPC: giant verf size: %u\n"

	.no_dead_strip	_unx_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unx_validate
_unx_validate:                          ; @unx_validate
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ntohl
Lloh0:
	adrp	x8, _RPC_AUTH_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RPC_AUTH_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RPC_AUTH_UNIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RPC_AUTH_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _RPC_AUTH_SHORT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RPC_AUTH_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	ccmp	x10, x0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_ntohl
	mov	x1, x0
Lloh9:
	adrp	x8, _RPC_MAX_AUTH_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RPC_MAX_AUTH_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_5
; %bb.2:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printk
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	asr	w8, w1, #2
	add	x9, x20, w8, sxtw #2
	add	w8, w8, #2
	ldr	x10, [x19]
	ldr	x10, [x10]
	ldr	x10, [x10]
	str	w8, [x10]
	add	x0, x9, #8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_AUTH_NULL,8,3              ; @RPC_AUTH_NULL
	.comm	_RPC_AUTH_UNIX,8,3              ; @RPC_AUTH_UNIX
	.comm	_RPC_AUTH_SHORT,8,3             ; @RPC_AUTH_SHORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RPC: bad verf flavor: %u\n"

	.comm	_RPC_MAX_AUTH_SIZE,4,2          ; @RPC_MAX_AUTH_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"RPC: giant verf size: %u\n"

	.no_dead_strip	_unx_validate
.subsections_via_symbols
