	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_as                         ## -- Begin function run_as
	.p2align	4, 0x90
_run_as:                                ## @run_as
	.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, %rbx
	movq	_UNPRIV_USER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_UNPRIV_GROUP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_getgrnam
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_UNPRIV_USER,4,2                ## @UNPRIV_USER
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getpwnam(%s): %m"

	.comm	_UNPRIV_GROUP,4,2               ## @UNPRIV_GROUP
L_.str.1:                               ## @.str.1
	.asciz	"getgrnam(%s): %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_as                         ; -- Begin function run_as
	.p2align	2
_run_as:                                ; @run_as
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _UNPRIV_USER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNPRIV_USER@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_getpwnam
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	str	w8, [x20]
Lloh2:
	adrp	x20, _UNPRIV_GROUP@GOTPAGE
Lloh3:
	ldr	x20, [x20, _UNPRIV_GROUP@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_getgrnam
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x19]
	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
LBB0_3:
Lloh4:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UNPRIV_USER,4,2                ; @UNPRIV_USER
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getpwnam(%s): %m"

	.comm	_UNPRIV_GROUP,4,2               ; @UNPRIV_GROUP
l_.str.1:                               ; @.str.1
	.asciz	"getgrnam(%s): %m"

.subsections_via_symbols
