	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setdefuser                     ## -- Begin function setdefuser
	.p2align	4, 0x90
_setdefuser:                            ## @setdefuser
	.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
	leaq	_setdefuser.defuserbuf(%rip), %rax
	movq	_DefUser@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_DefUid@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_sm_getpwuid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	leaq	_setdefuser.defuserbuf(%rip), %rdi
	movl	$40, %edx
	callq	_sm_strlcpy
	movl	$37, %edi
	movl	$4, %esi
	callq	_tTd
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rsi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sm_dprintf                     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_setdefuser.defuserbuf,40,4 ## @setdefuser.defuserbuf
	.comm	_DefUser,8,3                    ## @DefUser
	.comm	_DefUid,8,3                     ## @DefUid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nobody"

L_.str.1:                               ## @.str.1
	.asciz	"setdefuser: DefUid=%ld, DefUser=%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setdefuser                     ; -- Begin function setdefuser
	.p2align	2
_setdefuser:                            ; @setdefuser
	.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
Lloh0:
	adrp	x19, _DefUser@GOTPAGE
Lloh1:
	ldr	x19, [x19, _DefUser@GOTPAGEOFF]
Lloh2:
	adrp	x8, _setdefuser.defuserbuf@PAGE
Lloh3:
	add	x8, x8, _setdefuser.defuserbuf@PAGEOFF
	str	x8, [x19]
Lloh4:
	adrp	x20, _DefUid@GOTPAGE
Lloh5:
	ldr	x20, [x20, _DefUid@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_sm_getpwuid
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	cmp	x8, #0
	csel	x1, x1, x8, eq
LBB0_2:
Lloh8:
	adrp	x0, _setdefuser.defuserbuf@PAGE
Lloh9:
	add	x0, x0, _setdefuser.defuserbuf@PAGEOFF
	mov	w2, #40
	bl	_sm_strlcpy
	mov	w0, #37
	mov	w1, #4
	bl	_tTd
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x20]
	ldr	x2, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sm_dprintf
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_setdefuser.defuserbuf,40,0 ; @setdefuser.defuserbuf
	.comm	_DefUser,8,3                    ; @DefUser
	.comm	_DefUid,8,3                     ; @DefUid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nobody"

l_.str.1:                               ; @.str.1
	.asciz	"setdefuser: DefUid=%ld, DefUser=%s\n"

.subsections_via_symbols
