	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_booting_time               ## -- Begin function get_booting_time
	.p2align	4, 0x90
_get_booting_time:                      ## @get_booting_time
	.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	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, -48(%rbp)
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_Buff@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movb	$10, (%rax)
	movl	-48(%rbp), %edi
	movq	(%r13), %rsi
	incq	%rsi
	movq	_BUFFSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	decl	%edx
	callq	_read
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_fd_close
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	leal	-1(%rsi), %eax
	cmpl	%eax, %ebx
	je	LBB0_13
## %bb.6:
	movq	(%r13), %rax
	movl	%ebx, %ecx
	movb	$0, (%rax,%rcx)
	movq	(%r13), %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.7(%rip), %r14
	leaq	-44(%rbp), %r15
	leaq	L_.str.4(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addq	$6, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strstr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movq	(%r13), %r14
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	leaq	L_.str.6(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_12:
	movl	-44(%rbp), %edx
	leaq	L_.str.8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-44(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/stat"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"get_booting_time: open (\"/proc/stat\", O_RDONLY) failed. %m\n"

	.comm	_Buff,8,3                       ## @Buff
	.comm	_BUFFSIZE,4,2                   ## @BUFFSIZE
L_.str.2:                               ## @.str.2
	.asciz	"get_booting_time: read failed. %m\n"

L_.str.3:                               ## @.str.3
	.asciz	"get_booting_time: BUFFSIZE (%d) too small.\n"

L_.str.4:                               ## @.str.4
	.asciz	"\nbtime"

L_.str.5:                               ## @.str.5
	.asciz	"%s\n"

L_.str.6:                               ## @.str.6
	.asciz	"get_booting_time: btime substring didn't find.\n"

L_.str.7:                               ## @.str.7
	.asciz	"%d"

L_.str.8:                               ## @.str.8
	.asciz	"booting time is %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_booting_time               ; -- Begin function get_booting_time
	.p2align	2
_get_booting_time:                      ; @get_booting_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_11
; %bb.1:
Lloh5:
	adrp	x22, _Buff@GOTPAGE
Lloh6:
	ldr	x22, [x22, _Buff@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w9, #10
	strb	w9, [x8]
	ldr	w0, [sp, #12]
	ldr	x8, [x22]
	add	x1, x8, #1
Lloh7:
	adrp	x20, _BUFFSIZE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _BUFFSIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w2, w8, #1
	bl	_read
	mov	x19, x0
	add	x0, sp, #12
	bl	_fd_close
	tbnz	w19, #31, LBB0_12
; %bb.2:
	ldr	w8, [x20]
	sub	w9, w8, #1
	cmp	w19, w9
	b.eq	LBB0_13
; %bb.3:
	ldr	x8, [x22]
	strb	wzr, [x8, w19, uxtw]
	ldr	x19, [x22]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_8
; %bb.4:
Lloh11:
	adrp	x19, l_.str.7@PAGE
Lloh12:
	add	x19, x19, l_.str.7@PAGEOFF
Lloh13:
	adrp	x20, l_.str.4@PAGE
Lloh14:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x0, #6
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_strstr
	cbnz	x0, LBB0_5
; %bb.7:
	ldr	x19, [x22]
LBB0_8:
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_9:
	bl	_kprintf
	mov	w0, #1
	bl	_exit
LBB0_10:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	w0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_12:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_13:
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/stat"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"get_booting_time: open (\"/proc/stat\", O_RDONLY) failed. %m\n"

	.comm	_Buff,8,3                       ; @Buff
	.comm	_BUFFSIZE,4,2                   ; @BUFFSIZE
l_.str.2:                               ; @.str.2
	.asciz	"get_booting_time: read failed. %m\n"

l_.str.3:                               ; @.str.3
	.asciz	"get_booting_time: BUFFSIZE (%d) too small.\n"

l_.str.4:                               ; @.str.4
	.asciz	"\nbtime"

l_.str.5:                               ; @.str.5
	.asciz	"%s\n"

l_.str.6:                               ; @.str.6
	.asciz	"get_booting_time: btime substring didn't find.\n"

l_.str.7:                               ; @.str.7
	.asciz	"%d"

l_.str.8:                               ; @.str.8
	.asciz	"booting time is %d.\n"

.subsections_via_symbols
