	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_devfreq_init
_msm_devfreq_init:                      ## @msm_devfreq_init
	.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	24(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	movq	_msm_devfreq_profile@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	movq	8(%rdi), %rdi
	movq	_DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_devm_devfreq_add_device
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movq	$0, (%rbx)
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_devfreq_suspend_device         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msm_devfreq_profile,4,2        ## @msm_devfreq_profile
	.comm	_DEVFREQ_GOV_SIMPLE_ONDEMAND,4,2 ## @DEVFREQ_GOV_SIMPLE_ONDEMAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't initialize GPU devfreq\n"

	.no_dead_strip	_msm_devfreq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_devfreq_init
_msm_devfreq_init:                      ; @msm_devfreq_init
	.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
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, _msm_devfreq_profile@GOTPAGE
Lloh1:
	ldr	x1, [x1, _msm_devfreq_profile@GOTPAGEOFF]
	ldr	w8, [x0, #16]
	str	w8, [x1]
	ldr	x0, [x0, #8]
Lloh2:
	adrp	x8, _DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_devm_devfreq_add_device
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	mov	x0, #0
	str	xzr, [x19]
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_devfreq_suspend_device
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_msm_devfreq_profile,4,2        ; @msm_devfreq_profile
	.comm	_DEVFREQ_GOV_SIMPLE_ONDEMAND,4,2 ; @DEVFREQ_GOV_SIMPLE_ONDEMAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't initialize GPU devfreq\n"

	.no_dead_strip	_msm_devfreq_init
.subsections_via_symbols
