	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_reboot                     ## -- Begin function sys_reboot
	.p2align	4, 0x90
_sys_reboot:                            ## @sys_reboot
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_STRACE
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_REBOOT_MAGIC1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	_REBOOT_MAGIC2@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_REBOOT_MAGIC2A@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_REBOOT_MAGIC2B@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_REBOOT_MAGIC2C@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_7
LBB0_6:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	andl	$-2, %r14d
	xorl	%eax, %eax
	cmpl	$128, %r14d
	je	LBB0_10
LBB0_8:
	movq	__EPERM@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reboot(%#x, %d, %d)"

	.comm	__EPERM,4,2                     ## @_EPERM
	.comm	_REBOOT_MAGIC1,8,3              ## @REBOOT_MAGIC1
	.comm	_REBOOT_MAGIC2,4,2              ## @REBOOT_MAGIC2
	.comm	_REBOOT_MAGIC2A,4,2             ## @REBOOT_MAGIC2A
	.comm	_REBOOT_MAGIC2B,4,2             ## @REBOOT_MAGIC2B
	.comm	_REBOOT_MAGIC2C,4,2             ## @REBOOT_MAGIC2C
	.comm	__EINVAL,4,2                    ## @_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_reboot                     ; -- Begin function sys_reboot
	.p2align	2
_sys_reboot:                            ; @sys_reboot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_STRACE
	bl	_superuser
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _REBOOT_MAGIC1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REBOOT_MAGIC1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _REBOOT_MAGIC2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REBOOT_MAGIC2@GOTPAGEOFF]
Lloh7:
	adrp	x9, _REBOOT_MAGIC2A@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REBOOT_MAGIC2A@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _REBOOT_MAGIC2B@GOTPAGE
Lloh12:
	ldr	x10, [x10, _REBOOT_MAGIC2B@GOTPAGEOFF]
Lloh13:
	adrp	x11, _REBOOT_MAGIC2C@GOTPAGE
Lloh14:
	ldr	x11, [x11, _REBOOT_MAGIC2C@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	ldr	w11, [x11]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	ccmp	w11, w20, #4, ne
	b.ne	LBB0_4
; %bb.3:
	and	w8, w19, #0xfffffffe
Lloh17:
	adrp	x9, __EPERM@GOTPAGE
Lloh18:
	ldr	x9, [x9, __EPERM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, #128
	csel	w0, wzr, w9, eq
	b	LBB0_7
LBB0_4:
Lloh20:
	adrp	x8, __EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, __EPERM@GOTPAGE
Lloh23:
	ldr	x8, [x8, __EPERM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reboot(%#x, %d, %d)"

	.comm	__EPERM,4,2                     ; @_EPERM
	.comm	_REBOOT_MAGIC1,8,3              ; @REBOOT_MAGIC1
	.comm	_REBOOT_MAGIC2,4,2              ; @REBOOT_MAGIC2
	.comm	_REBOOT_MAGIC2A,4,2             ; @REBOOT_MAGIC2A
	.comm	_REBOOT_MAGIC2B,4,2             ; @REBOOT_MAGIC2B
	.comm	_REBOOT_MAGIC2C,4,2             ; @REBOOT_MAGIC2C
	.comm	__EINVAL,4,2                    ; @_EINVAL
.subsections_via_symbols
