	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saveuser
_saveuser:                              ## @saveuser
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_P_INMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, (%rdi)
	movq	_needcomm@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.1:
	movq	8(%rax), %rax
	movq	_SZOMB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	jmp	LBB0_7
LBB0_9:
	movq	$0, 8(%rbx)
	jmp	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	callq	_UREADOK
	movq	24(%rbx), %rcx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 32(%rcx)
	je	LBB0_6
LBB0_5:
	movq	_kvm_getargv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rcx), %rdx
	movq	24(%rcx), %rcx
	movq	_MAXCOMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	callq	_fmt
LBB0_7:
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_xo_errx
LBB0_10:
	movq	_needenv@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.11:
	movq	%rbx, %rdi
	callq	_UREADOK
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_kvm_getenvv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_fmt
	jmp	LBB0_14
LBB0_16:
	movq	$0, 16(%rbx)
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	callq	_strdup
LBB0_14:
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_xo_errx
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rcx), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdi
	callq	_asprintf
	movq	-16(%rbp), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_P_INMEM,4,2                    ## @P_INMEM
	.comm	_needcomm,8,3                   ## @needcomm
	.comm	_SZOMB,8,3                      ## @SZOMB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<defunct>"

	.comm	_kvm_getargv,4,2                ## @kvm_getargv
	.comm	_MAXCOMLEN,4,2                  ## @MAXCOMLEN
L_.str.1:                               ## @.str.1
	.asciz	"(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"malloc failed"

	.comm	_needenv,8,3                    ## @needenv
	.comm	_kvm_getenvv,4,2                ## @kvm_getenvv
L_.str.3:                               ## @.str.3
	.asciz	"()"

	.no_dead_strip	_saveuser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saveuser
_saveuser:                              ; @saveuser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _P_INMEM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _P_INMEM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	str	w9, [x0]
Lloh3:
	adrp	x9, _needcomm@GOTPAGE
Lloh4:
	ldr	x9, [x9, _needcomm@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _SZOMB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZOMB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	str	x0, [x19, #8]
	cbnz	x0, LBB0_8
	b	LBB0_7
LBB0_3:
	str	xzr, [x19, #8]
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_UREADOK
	ldr	x8, [x19, #24]
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_15
LBB0_6:
Lloh11:
	adrp	x9, _kvm_getargv@GOTPAGE
Lloh12:
	ldr	x9, [x9, _kvm_getargv@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldp	x2, x3, [x8, #16]
Lloh14:
	adrp	x8, _MAXCOMLEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAXCOMLEN@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x1, x19
	bl	_fmt
	str	x0, [x19, #8]
	cbnz	x0, LBB0_8
LBB0_7:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_xo_errx
LBB0_8:
Lloh19:
	adrp	x8, _needenv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _needenv@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_UREADOK
	cbz	x0, LBB0_12
; %bb.10:
Lloh22:
	adrp	x8, _kvm_getenvv@GOTPAGE
Lloh23:
	ldr	x8, [x8, _kvm_getenvv@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_fmt
	str	x0, [x19, #16]
	cbnz	x0, LBB0_14
	b	LBB0_13
LBB0_11:
	str	xzr, [x19, #16]
	b	LBB0_14
LBB0_12:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_strdup
	str	x0, [x19, #16]
	cbnz	x0, LBB0_14
LBB0_13:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_xo_errx
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	ldr	x2, [x8, #16]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	ldr	x0, [sp, #8]
	str	x0, [x19, #8]
	cbnz	x0, LBB0_8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_P_INMEM,4,2                    ; @P_INMEM
	.comm	_needcomm,8,3                   ; @needcomm
	.comm	_SZOMB,8,3                      ; @SZOMB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<defunct>"

	.comm	_kvm_getargv,4,2                ; @kvm_getargv
	.comm	_MAXCOMLEN,4,2                  ; @MAXCOMLEN
l_.str.1:                               ; @.str.1
	.asciz	"(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"malloc failed"

	.comm	_needenv,8,3                    ; @needenv
	.comm	_kvm_getenvv,4,2                ; @kvm_getenvv
l_.str.3:                               ; @.str.3
	.asciz	"()"

	.no_dead_strip	_saveuser
.subsections_via_symbols
