	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hm_SYSFS_get_pp_dpm_mclk
_hm_SYSFS_get_pp_dpm_mclk:              ## @hm_SYSFS_get_pp_dpm_mclk
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_hm_SYSFS_get_syspath_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movq	%rax, %rdx
	callq	_hc_asprintf
	movq	%rbx, %rdi
	callq	_hcfree
	movq	-64(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-52(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_hc_feof
	testl	%eax, %eax
	je	LBB0_9
LBB0_3:
	leaq	-52(%rbp), %rdi
	callq	_hc_fclose
	movl	-56(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-64(%rbp), %rdi
	callq	_hcfree
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	-64(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_event_log_error
	movq	-64(%rbp), %rdi
	callq	_hcfree
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_HCBUFSIZ_TINY@GOTPCREL(%rip), %r13
	leaq	-52(%rbp), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rsp
	movq	%r12, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_3
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r14
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_hc_fgets
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	cmpq	$2, %rax
	jb	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$42, -2(%rax,%r15)
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$0, -68(%rbp)
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_10
## %bb.15:
	movq	%r14, %rsp
	jmp	LBB0_3
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/pp_dpm_mclk"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_HCBUFSIZ_TINY,4,2              ## @HCBUFSIZ_TINY
L_.str.3:                               ## @.str.3
	.asciz	"%d: %dMHz"

	.no_dead_strip	_hm_SYSFS_get_pp_dpm_mclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hm_SYSFS_get_pp_dpm_mclk
_hm_SYSFS_get_pp_dpm_mclk:              ; @hm_SYSFS_get_pp_dpm_mclk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_hm_SYSFS_get_syspath_device
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #64
	mov	x2, x21
	bl	_hc_asprintf
	mov	x0, x21
	bl	_hcfree
	ldur	x1, [x29, #-64]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #68
	bl	_hc_fopen
	cbz	w0, LBB0_4
; %bb.2:
	stur	wzr, [x29, #-72]
	sub	x0, x29, #68
	bl	_hc_feof
	cbz	w0, LBB0_8
LBB0_3:
	sub	x0, x29, #68
	bl	_hc_fclose
	ldur	w8, [x29, #-72]
	str	w8, [x19]
	ldur	x0, [x29, #-64]
	bl	_hcfree
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldur	x19, [x29, #-64]
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_event_log_error
	ldur	x0, [x29, #-64]
	bl	_hcfree
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.7:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x22, _HCBUFSIZ_TINY@GOTPAGE
Lloh16:
	ldr	x22, [x22, _HCBUFSIZ_TINY@GOTPAGEOFF]
Lloh17:
	adrp	x20, l_.str.3@PAGE
Lloh18:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	sp, x23
	sub	x0, x29, #68
	bl	_hc_feof
	cbnz	w0, LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, sp
	ldr	w1, [x22]
	mov	x9, x1
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x0, x8, x9
	mov	sp, x0
	sub	x2, x29, #68
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_hc_fgets
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x0
	bl	_strlen
	cmp	x0, #2
	b.lo	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x0, x21
	ldurb	w8, [x8, #-2]
	cmp	w8, #42
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	stur	wzr, [x29, #-76]
	sub	x2, x29, #76
	sub	x3, x29, #72
	mov	x0, x21
	mov	x1, x20
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.14:
	mov	sp, x23
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/pp_dpm_mclk"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_HCBUFSIZ_TINY,4,2              ; @HCBUFSIZ_TINY
l_.str.3:                               ; @.str.3
	.asciz	"%d: %dMHz"

	.no_dead_strip	_hm_SYSFS_get_pp_dpm_mclk
.subsections_via_symbols
