	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm1_show
_pwm1_show:                             ## @pwm1_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
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	js	LBB0_1
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_1:
	movq	_ASUS_WMI_DEVID_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_9
## %bb.2:
	movl	-12(%rbp), %eax
	movzbl	%al, %edx
	movl	%edx, -12(%rbp)
	cmpb	$3, %dl
	ja	LBB0_7
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	$85, -12(%rbp)
	movl	$85, %edx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	callq	_pr_err
	movl	$-1, -12(%rbp)
	movl	$-1, %edx
	jmp	LBB0_8
LBB0_5:
	movl	$170, -12(%rbp)
	movl	$170, %edx
	jmp	LBB0_8
LBB0_6:
	movl	$255, -12(%rbp)
	movl	$255, %edx
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_ASUS_WMI_DEVID_FAN_CTRL,4,2    ## @ASUS_WMI_DEVID_FAN_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"Unknown fan speed %#x\n"

	.no_dead_strip	_pwm1_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm1_show
_pwm1_show:                             ; @pwm1_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	x2, [x0]
	tbnz	x2, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_sprintf
LBB0_2:
Lloh2:
	adrp	x8, _ASUS_WMI_DEVID_FAN_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASUS_WMI_DEVID_FAN_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_asus_wmi_get_devstate
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldrb	w2, [sp, #12]
	str	w2, [sp, #12]
	cmp	w2, #3
	b.hi	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, lJTI0_0@PAGE
Lloh6:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_5
	ldrb	w10, [x8, x2]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:
	mov	w2, #85
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
	bl	_pr_err
	mov	w2, #-1
	b	LBB0_9
LBB0_7:
	mov	w2, #170
	b	LBB0_9
LBB0_8:
	mov	w2, #255
LBB0_9:
	str	w2, [sp, #12]
LBB0_10:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_sprintf
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_ASUS_WMI_DEVID_FAN_CTRL,4,2    ; @ASUS_WMI_DEVID_FAN_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"Unknown fan speed %#x\n"

	.no_dead_strip	_pwm1_show
.subsections_via_symbols
