	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_hwmon_get_fan1_enable
_amdgpu_hwmon_get_fan1_enable:          ## @amdgpu_hwmon_get_fan1_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_smu_get_fan_control_mode
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_get_fan_control_mode
LBB0_4:
	movq	_AMD_FAN_CTRL_AUTO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i\n"

	.comm	_AMD_FAN_CTRL_AUTO,8,3          ## @AMD_FAN_CTRL_AUTO
	.no_dead_strip	_amdgpu_hwmon_get_fan1_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_hwmon_get_fan1_enable
_amdgpu_hwmon_get_fan1_enable:          ; @amdgpu_hwmon_get_fan1_enable
	.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
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_is_support_sw_smu
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #8
	bl	_smu_get_fan_control_mode
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_amdgpu_dpm_get_fan_control_mode
LBB0_4:
Lloh0:
	adrp	x8, _AMD_FAN_CTRL_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_FAN_CTRL_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w2, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sprintf
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i\n"

	.comm	_AMD_FAN_CTRL_AUTO,8,3          ; @AMD_FAN_CTRL_AUTO
	.no_dead_strip	_amdgpu_hwmon_get_fan1_enable
.subsections_via_symbols
