	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lsapi_initSuEXEC
_lsapi_initSuEXEC:                      ## @lsapi_initSuEXEC
	.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	_s_defaultUid@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	movq	_s_defaultGid@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_s_uid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_14:
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	je	LBB0_16
## %bb.15:
	cmpl	$0, (%r14)
	jne	LBB0_26
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	callq	_getpwnam
	movl	(%r15), %ecx
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.19:
	cmpl	$0, (%r14)
	jne	LBB0_26
	jmp	LBB0_20
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movl	%eax, (%r15)
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movl	%eax, (%r14)
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	movq	%rax, %rdi
	callq	_readSecret
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.9:
	movq	_g_prefork_server@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	cmpl	$99, (%rax)
	jg	LBB0_12
## %bb.11:
	movl	$100, (%rax)
LBB0_12:
	cmpl	$999, 4(%rax)                   ## imm = 0x3E7
	jg	LBB0_14
## %bb.13:
	movl	$1000, 4(%rax)                  ## imm = 0x3E8
	jmp	LBB0_14
LBB0_21:
	testl	%ecx, %ecx
	jne	LBB0_23
## %bb.22:
	movl	$10000, (%r15)                  ## imm = 0x2710
LBB0_23:
	cmpl	$0, (%r14)
	jne	LBB0_26
## %bb.24:
	movl	$10000, %eax                    ## imm = 0x2710
	jmp	LBB0_25
LBB0_18:
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	cmpl	$0, (%r14)
	jne	LBB0_26
LBB0_20:
	movl	4(%rax), %eax
LBB0_25:
	movl	%eax, (%r14)
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_defaultUid,4,2               ## @s_defaultUid
	.comm	_s_defaultGid,4,2               ## @s_defaultGid
	.comm	_s_uid,8,3                      ## @s_uid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSAPI_DEFAULT_UID"

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

L_.str.2:                               ## @.str.2
	.asciz	"LSAPI_SECRET"

	.comm	_g_prefork_server,8,3           ## @g_prefork_server
L_.str.3:                               ## @.str.3
	.asciz	"nobody"

	.no_dead_strip	_lsapi_initSuEXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lsapi_initSuEXEC
_lsapi_initSuEXEC:                      ; @lsapi_initSuEXEC
	.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	x20, _s_defaultUid@GOTPAGE
Lloh1:
	ldr	x20, [x20, _s_defaultUid@GOTPAGEOFF]
	str	wzr, [x20]
Lloh2:
	adrp	x19, _s_defaultGid@GOTPAGE
Lloh3:
	ldr	x19, [x19, _s_defaultGid@GOTPAGEOFF]
	str	wzr, [x19]
Lloh4:
	adrp	x8, _s_uid@GOTPAGE
Lloh5:
	ldr	x8, [x8, _s_uid@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_1:
	ldr	w8, [x20]
	ldr	w9, [x19]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_24
; %bb.2:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getpwnam
	ldr	w8, [x20]
	cbz	x0, LBB0_18
; %bb.3:
	cbz	w8, LBB0_21
; %bb.4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_24
	b	LBB0_22
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.6:
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.7:
	str	w0, [x20]
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_11
; %bb.9:
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	str	w0, [x19]
LBB0_11:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_20
; %bb.12:
	bl	_readSecret
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.13:
Lloh15:
	adrp	x8, _g_prefork_server@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_prefork_server@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.14:
	ldr	w9, [x8]
	cmp	w9, #99
	b.gt	LBB0_16
; %bb.15:
	mov	w9, #100
	str	w9, [x8]
LBB0_16:
	ldr	w9, [x8, #4]
	cmp	w9, #999
	b.gt	LBB0_1
; %bb.17:
	mov	w9, #1000
	str	w9, [x8, #4]
	b	LBB0_1
LBB0_18:
	cbz	w8, LBB0_23
; %bb.19:
	ldr	w8, [x19]
	cbnz	w8, LBB0_24
	b	LBB0_26
LBB0_20:
	mov	w0, #-1
	b	LBB0_25
LBB0_21:
	ldr	w8, [x0]
	str	w8, [x20]
	ldr	w8, [x19]
	cbnz	w8, LBB0_24
LBB0_22:
	ldr	w8, [x0, #4]
	b	LBB0_27
LBB0_23:
	mov	w8, #10000
	str	w8, [x20]
	ldr	w8, [x19]
	cbz	w8, LBB0_26
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w8, #10000
LBB0_27:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_s_defaultUid,4,2               ; @s_defaultUid
	.comm	_s_defaultGid,4,2               ; @s_defaultGid
	.comm	_s_uid,8,3                      ; @s_uid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSAPI_DEFAULT_UID"

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

l_.str.2:                               ; @.str.2
	.asciz	"LSAPI_SECRET"

	.comm	_g_prefork_server,8,3           ; @g_prefork_server
l_.str.3:                               ; @.str.3
	.asciz	"nobody"

	.no_dead_strip	_lsapi_initSuEXEC
.subsections_via_symbols
