	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_logout_process
_start_logout_process:                  ## @start_logout_process
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_login_conf_get_string
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%r15, %r14
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_getpid
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_setpgid
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	leaq	-44(%rbp), %r12
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_env@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_execle
	movl	$1, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	jns	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"logout_program"

L_.str.1:                               ## @.str.1
	.asciz	"fork"

	.comm	_env,4,2                        ## @env
L_.str.2:                               ## @.str.2
	.asciz	"exec %s"

L_.str.3:                               ## @.str.3
	.asciz	"waitpid"

	.no_dead_strip	_start_logout_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_logout_process
_start_logout_process:                  ; @start_logout_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_login_conf_get_string
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x19, x0, eq
	bl	_fork
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w21, LBB0_6
; %bb.3:
	bl	_getpid
	mov	x1, x0
	mov	w0, #0
	bl	_setpgid
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh4:
	adrp	x24, _env@GOTPAGE
Lloh5:
	ldr	x24, [x24, _env@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_execle
	str	x19, [sp]
	mov	w0, #1
	mov	x1, x22
	bl	_err
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #0
	bl	_waitpid
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	tbz	w0, #31, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	mov	x1, x23
	bl	_err
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"logout_program"

l_.str.1:                               ; @.str.1
	.asciz	"fork"

	.comm	_env,4,2                        ; @env
l_.str.2:                               ; @.str.2
	.asciz	"exec %s"

l_.str.3:                               ; @.str.3
	.asciz	"waitpid"

	.no_dead_strip	_start_logout_process
.subsections_via_symbols
