	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setuid                     ## -- Begin function sys_setuid
	.p2align	4, 0x90
_sys_setuid:                            ## @sys_setuid
	.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
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_STRACE
	xorl	%eax, %eax
	callq	_superuser
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, 8(%rcx)
	movq	%rbx, (%rcx)
	jmp	LBB0_2
LBB0_3:
	cmpq	%rbx, (%rcx)
	je	LBB0_2
## %bb.4:
	cmpq	%rbx, 8(%rcx)
	jne	LBB0_5
LBB0_2:
	movq	%rbx, 16(%rcx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	__EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setuid(%d)"

	.comm	_current,8,3                    ## @current
	.comm	__EPERM,4,2                     ## @_EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setuid                     ; -- Begin function sys_setuid
	.p2align	2
_sys_setuid:                            ; @sys_setuid
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_STRACE
	bl	_superuser
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	stp	x19, x19, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [x8, #8]
	cmp	x9, x19
	b.ne	LBB0_6
LBB0_4:
	mov	w0, #0
	str	x19, [x8, #16]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x8, __EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setuid(%d)"

	.comm	_current,8,3                    ; @current
	.comm	__EPERM,4,2                     ; @_EPERM
.subsections_via_symbols
