	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_model
_cpu_model:                             ## @cpu_model
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movb	$0, _cpu_model.cpu_m(%rip)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	leaq	-288(%rbp), %rbx
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	-275(%rbp), %rsi
	leaq	_cpu_model.cpu_m(%rip), %rdi
	movl	$255, %edx
	callq	_strncpy
LBB0_5:
	movq	%r14, %rdi
	callq	_fclose
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r14
	leaq	-288(%rbp), %rdi
	movl	$255, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	-288(%rbp), %rbx
	movq	_max_freq@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoull
	cmpl	(%r15), %eax
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, (%r15)
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_fclose
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	_cpu_model.cpu_m(%rip), %rax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cpu_model.cpu_m,255,4 ## @cpu_model.cpu_m
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/cpuinfo"

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

L_.str.2:                               ## @.str.2
	.asciz	"model name"

L_.str.3:                               ## @.str.3
	.asciz	"/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies"

	.comm	_max_freq,4,2                   ## @max_freq
	.no_dead_strip	_cpu_model
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_model
_cpu_model:                             ; @cpu_model
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	adrp	x8, _cpu_model.cpu_m@PAGE
	strb	wzr, [x8, _cpu_model.cpu_m@PAGEOFF]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #255
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_strstr
	cbz	x0, LBB0_2
; %bb.4:
	add	x8, sp, #8
	add	x1, x8, #13
Lloh9:
	adrp	x0, _cpu_model.cpu_m@PAGE
Lloh10:
	add	x0, x0, _cpu_model.cpu_m@PAGEOFF
	mov	w2, #255
	bl	_strncpy
LBB0_5:
	mov	x0, x19
	bl	_fclose
LBB0_6:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.7:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #255
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.8:
Lloh15:
	adrp	x20, _max_freq@GOTPAGE
Lloh16:
	ldr	x20, [x20, _max_freq@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #255
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #10
	bl	_strtoull
	ldr	w8, [x20]
	cmp	w0, w8
	b.ls	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w0, [x20]
	b	LBB0_9
LBB0_12:
	mov	x0, x19
	bl	_fclose
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
Lloh20:
	adrp	x0, _cpu_model.cpu_m@PAGE
Lloh21:
	add	x0, x0, _cpu_model.cpu_m@PAGEOFF
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cpu_model.cpu_m,255,0 ; @cpu_model.cpu_m
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/cpuinfo"

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

l_.str.2:                               ; @.str.2
	.asciz	"model name"

l_.str.3:                               ; @.str.3
	.asciz	"/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies"

	.comm	_max_freq,4,2                   ; @max_freq
	.no_dead_strip	_cpu_model
.subsections_via_symbols
