	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan1_input_show
_fan1_input_show:                       ## @fan1_input_show
	.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	%rdx, %rbx
	callq	_dev_get_drvdata
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.2:
	movq	_ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-12(%rbp), %rdx
	movq	%rax, %rdi
	callq	_asus_wmi_get_devstate
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movzwl	-12(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	LBB0_9
LBB0_4:
	movl	4(%rax), %ecx
	movq	_ASUS_FAN_CTRL_MANUAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.7:
	leaq	-12(%rbp), %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_asus_agfn_fan_speed_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_8:
	movl	-12(%rbp), %eax
LBB0_9:
	imull	$100, %eax, %ecx
	testl	%eax, %eax
	movl	$-1, %edx
	cmovnsl	%ecx, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ## @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_ASUS_FAN_CTRL_MANUAL,4,2       ## @ASUS_FAN_CTRL_MANUAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading fan speed failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_fan1_input_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan1_input_show
_fan1_input_show:                       ; @fan1_input_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_DEVID_CPU_FAN_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_asus_wmi_get_devstate
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldrh	w8, [sp, #12]
	str	w8, [sp, #12]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _ASUS_FAN_CTRL_MANUAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASUS_FAN_CTRL_MANUAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:
	add	x2, sp, #12
	mov	w1, #1
	bl	_asus_agfn_fan_speed_read
	cbz	w0, LBB0_8
; %bb.6:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_7:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	w8, [sp, #12]
LBB0_9:
	mov	w9, #100
	mul	w9, w8, w9
	cmp	w8, #0
	csinv	w2, w9, wzr, ge
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_CPU_FAN_CTRL,4,2 ; @ASUS_WMI_DEVID_CPU_FAN_CTRL
	.comm	_ASUS_FAN_CTRL_MANUAL,4,2       ; @ASUS_FAN_CTRL_MANUAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading fan speed failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d\n"

	.no_dead_strip	_fan1_input_show
.subsections_via_symbols
