	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__svcauth_unix                  ## -- Begin function _svcauth_unix
	.p2align	4, 0x90
__svcauth_unix:                         ## @_svcauth_unix
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	8(%rsi), %r15
	movl	(%rsi), %esi
	movq	_XDR_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_xdrmem_create
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_XDR_INLINE
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IXDR_GET_UINT32
	movq	%rax, -88(%rbp)
	movq	%rbx, %rdi
	callq	_IXDR_GET_UINT32
	movq	_MAX_MACHINE_NAME@GOTPCREL(%rip), %rcx
	movq	_AUTH_BADCRED@GOTPCREL(%rip), %r13
	cmpq	%rax, (%rcx)
	jb	LBB0_14
## %bb.2:
	movq	%rax, %rdi
	callq	_RNDUP
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	andq	$-4, %rax
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_IXDR_GET_UINT32
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	callq	_IXDR_GET_UINT32
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_IXDR_GET_UINT32
	movq	_NGRPS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jb	LBB0_14
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r14d
	movl	$1, %r13d
	cmovaeq	%rax, %r13
	negq	%r13
	movq	_XU_NGROUPS@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r14,%r13), %rax
	incq	%rax
	incq	%r14
	cmpq	$1, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r15), %r14
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_IXDR_GET_INT32
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	jmp	LBB0_8
LBB0_11:
	leaq	-44(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdx
	callq	_xdr_authunix_parms
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_AUTH_BADCRED@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_9:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	1(%rsi), %rax
	movq	_XU_NGROUPS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rax, %rcx
	movq	%rcx, (%r12)
	leaq	5(%rsi), %rax
	movq	_BYTES_PER_XDR_UNIT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	imulq	%rax, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_13
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_AUTH_BADCRED@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_13:
	movq	__null_auth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_AUTH_OK@GOTPCREL(%rip), %r13
LBB0_14:
	movl	(%r13), %ebx
	leaq	-44(%rbp), %rdi
	callq	_XDR_DESTROY
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XDR_DECODE,4,2                 ## @XDR_DECODE
	.comm	_MAX_MACHINE_NAME,8,3           ## @MAX_MACHINE_NAME
	.comm	_AUTH_BADCRED,4,2               ## @AUTH_BADCRED
	.comm	_NGRPS,8,3                      ## @NGRPS
	.comm	_XU_NGROUPS,8,3                 ## @XU_NGROUPS
	.comm	_BYTES_PER_XDR_UNIT,4,2         ## @BYTES_PER_XDR_UNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad auth_len gid %ld str %ld auth %u\n"

	.comm	__null_auth,4,2                 ## @_null_auth
	.comm	_AUTH_OK,4,2                    ## @AUTH_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__svcauth_unix                  ; -- Begin function _svcauth_unix
	.p2align	2
__svcauth_unix:                         ; @_svcauth_unix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x1, #8]
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _XDR_DECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XDR_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #12
	mov	x2, x20
	bl	_xdrmem_create
	add	x0, sp, #12
	mov	x1, x20
	bl	_XDR_INLINE
	cbz	x0, LBB0_9
; %bb.1:
	mov	x23, x0
	bl	_IXDR_GET_UINT32
	str	x0, [sp]
	mov	x0, x23
	bl	_IXDR_GET_UINT32
Lloh3:
	adrp	x8, _MAX_MACHINE_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MACHINE_NAME@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.lo	LBB0_12
; %bb.2:
	bl	_RNDUP
	mov	x22, x0
	and	x8, x0, #0xfffffffffffffffc
	add	x24, x23, x8
	mov	x0, x24
	bl	_IXDR_GET_UINT32
	str	x0, [x21, #16]
	mov	x0, x24
	bl	_IXDR_GET_UINT32
	ldr	x8, [x21, #8]
	str	x0, [x8]
	mov	x0, x24
	bl	_IXDR_GET_UINT32
Lloh6:
	adrp	x8, _NGRPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NGRPS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.lo	LBB0_12
; %bb.3:
	mov	x23, x0
Lloh9:
	adrp	x25, _XU_NGROUPS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _XU_NGROUPS@GOTPAGEOFF]
	cbz	x0, LBB0_10
; %bb.4:
	cmp	x23, #1
	csinc	x8, x23, xzr, hi
	neg	x26, x8
	mov	w27, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	add	x8, x26, x27
	cmp	x8, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x27, x8
	b.hs	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_IXDR_GET_INT32
	ldr	x8, [x21, #8]
	str	x0, [x8, x27, lsl #3]
	b	LBB0_6
LBB0_9:
	add	x0, sp, #12
	mov	x1, sp
	mov	x2, x21
	bl	_xdr_authunix_parms
	cbnz	w0, LBB0_13
	b	LBB0_12
LBB0_10:
	add	x8, x23, #1
	ldr	x9, [x25]
	cmp	x8, x9
	csinc	x8, x9, x23, hs
	str	x8, [x21]
	add	x8, x23, #5
Lloh11:
	adrp	x9, _BYTES_PER_XDR_UNIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BYTES_PER_XDR_UNIT@GOTPAGEOFF]
Lloh13:
	ldrsw	x9, [x9]
	madd	x8, x8, x9, x22
	cmp	x8, x20
	b.ls	LBB0_13
; %bb.11:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_printf
LBB0_12:
Lloh16:
	adrp	x8, _AUTH_BADCRED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AUTH_BADCRED@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, __null_auth@GOTPAGE
Lloh19:
	ldr	x8, [x8, __null_auth@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh21:
	adrp	x8, _AUTH_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUTH_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w19, [x8]
	add	x0, sp, #12
	bl	_XDR_DESTROY
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_XDR_DECODE,4,2                 ; @XDR_DECODE
	.comm	_MAX_MACHINE_NAME,8,3           ; @MAX_MACHINE_NAME
	.comm	_AUTH_BADCRED,4,2               ; @AUTH_BADCRED
	.comm	_NGRPS,8,3                      ; @NGRPS
	.comm	_XU_NGROUPS,8,3                 ; @XU_NGROUPS
	.comm	_BYTES_PER_XDR_UNIT,4,2         ; @BYTES_PER_XDR_UNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad auth_len gid %ld str %ld auth %u\n"

	.comm	__null_auth,4,2                 ; @_null_auth
	.comm	_AUTH_OK,4,2                    ; @AUTH_OK
.subsections_via_symbols
