	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setUID_LVE
_setUID_LVE:                            ## @setUID_LVE
	.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
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)
	movl	%esi, %edi
	callq	_getpwuid
	movq	%rax, %r13
	movq	_s_enable_core_dump@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_lsapi_enable_core_dump
LBB0_2:
	movq	%rbx, %rdi
	callq	_setgid
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:
	cmpq	%rbx, (%r13)
	jne	LBB0_8
## %bb.6:
	movl	8(%r13), %edi
	movq	%rbx, %rsi
	callq	_initgroups
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_8:
	leaq	-48(%rbp), %rsi
	movl	$1, %edi
	callq	_setgroups
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_10:
	testq	%r15, %r15
	jne	LBB0_11
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_LSAPI_perror_r
	testq	%r15, %r15
	je	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_chroot
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_13:
	movl	%r12d, %edi
	callq	_setuid
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_LSAPI_perror_r
	movl	$-1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_enable_core_dump,8,3         ## @s_enable_core_dump
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSAPI: setgid()"

L_.str.1:                               ## @.str.1
	.asciz	"LSAPI: initgroups()"

L_.str.2:                               ## @.str.2
	.asciz	"LSAPI: setgroups()"

L_.str.3:                               ## @.str.3
	.asciz	"LSAPI: chroot()"

L_.str.4:                               ## @.str.4
	.asciz	"LSAPI: setuid()"

	.comm	_LSAPI_CAGEFS_NO_SUEXEC,8,3     ## @LSAPI_CAGEFS_NO_SUEXEC
	.comm	_fp_lve_jail,8,3                ## @fp_lve_jail
	.comm	_s_defaultGid,8,3               ## @s_defaultGid
	.comm	_s_defaultUid,4,2               ## @s_defaultUid
	.comm	_s_enable_lve,8,3               ## @s_enable_lve
	.comm	_s_lve,8,3                      ## @s_lve
	.no_dead_strip	_setUID_LVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setUID_LVE
_setUID_LVE:                            ; @setUID_LVE
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #8]
	mov	x0, x1
	bl	_getpwuid
	mov	x23, x0
Lloh0:
	adrp	x8, _s_enable_core_dump@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_enable_core_dump@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_lsapi_enable_core_dump
LBB0_2:
	mov	x0, x22
	bl	_setgid
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	cbz	x23, LBB0_7
; %bb.4:
	ldr	x8, [x23]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x23, #8]
	mov	x1, x22
	bl	_initgroups
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.6:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_7:
	add	x1, sp, #8
	mov	w0, #1
	bl	_setgroups
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_8:
	cbnz	x21, LBB0_11
	b	LBB0_12
LBB0_9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_10:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_LSAPI_perror_r
	cbz	x21, LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_chroot
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_12:
	mov	x0, x20
	bl	_setuid
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_17
LBB0_14:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x2, #0
	bl	_LSAPI_perror_r
	mov	w0, #-1
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_s_enable_core_dump,8,3         ; @s_enable_core_dump
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSAPI: setgid()"

l_.str.1:                               ; @.str.1
	.asciz	"LSAPI: initgroups()"

l_.str.2:                               ; @.str.2
	.asciz	"LSAPI: setgroups()"

l_.str.3:                               ; @.str.3
	.asciz	"LSAPI: chroot()"

l_.str.4:                               ; @.str.4
	.asciz	"LSAPI: setuid()"

	.comm	_LSAPI_CAGEFS_NO_SUEXEC,8,3     ; @LSAPI_CAGEFS_NO_SUEXEC
	.comm	_fp_lve_jail,8,3                ; @fp_lve_jail
	.comm	_s_defaultGid,8,3               ; @s_defaultGid
	.comm	_s_defaultUid,4,2               ; @s_defaultUid
	.comm	_s_enable_lve,8,3               ; @s_enable_lve
	.comm	_s_lve,8,3                      ; @s_lve
	.no_dead_strip	_setUID_LVE
.subsections_via_symbols
