	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_hwmon_set_fan1_target
_amdgpu_hwmon_set_fan1_target:          ## @amdgpu_hwmon_set_fan1_target
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_smu_get_fan_control_mode
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_get_fan_control_mode
LBB0_3:
	movq	_AMD_FAN_CTRL_MANUAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movq	_AMD_IS_PX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.7:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_9:
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtou32
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	%rbx, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	addq	$16, %rbx
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_set_fan_speed_rpm
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_4:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_set_fan_speed_rpm
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	movl	%r14d, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_FAN_CTRL_MANUAL,8,3        ## @AMD_FAN_CTRL_MANUAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_AMD_IS_PX,4,2                  ## @AMD_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ## @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amdgpu_hwmon_set_fan1_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_hwmon_set_fan1_target
_amdgpu_hwmon_set_fan1_target:          ; @amdgpu_hwmon_set_fan1_target
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_is_support_sw_smu
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #16
	bl	_smu_get_fan_control_mode
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_amdgpu_dpm_get_fan_control_mode
LBB0_3:
Lloh0:
	adrp	x8, _AMD_FAN_CTRL_MANUAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_FAN_CTRL_MANUAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _AMD_IS_PX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMD_IS_PX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _DRM_SWITCH_POWER_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_SWITCH_POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtou32
	cbnz	w0, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_is_support_sw_smu
	cbz	x0, LBB0_13
; %bb.8:
	add	x0, x20, #16
	ldr	x1, [sp, #8]
	bl	_smu_set_fan_speed_rpm
	cbnz	w0, LBB0_12
	b	LBB0_15
LBB0_9:
Lloh9:
	adrp	x8, _ENODATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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_13:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_amdgpu_dpm_set_fan_speed_rpm
	cbnz	w0, LBB0_12
LBB0_15:
	mov	x0, x19
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_FAN_CTRL_MANUAL,8,3        ; @AMD_FAN_CTRL_MANUAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_AMD_IS_PX,4,2                  ; @AMD_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ; @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amdgpu_hwmon_set_fan1_target
.subsections_via_symbols
