	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_get_status
_fan_get_status:                        ## @fan_get_status
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_fan_status_access_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movq	_gfan_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rsi
	xorl	%edx, %edx
	callq	_acpi_evalf
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_fan_status_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_acpi_ec_read
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_likely
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	-20(%rbp), %eax
	andl	$7, %eax
	movl	%eax, (%r14)
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%r14, %rdi
	callq	_likely
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	-24(%rbp), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_fan_quirk1_handle
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_fan_status_access_mode,4,2     ## @fan_status_access_mode
	.comm	_gfan_handle,4,2                ## @gfan_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_fan_status_offset,4,2          ## @fan_status_offset
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_fan_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_get_status
_fan_get_status:                        ; @fan_get_status
	.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, x0
Lloh0:
	adrp	x8, _fan_status_access_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fan_status_access_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _gfan_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gfan_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x2, #0
	bl	_acpi_evalf
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_likely
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #8]
	and	w8, w8, #0x7
	str	w8, [x19]
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _fan_status_offset@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fan_status_offset@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_acpi_ec_read
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	w0, LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_11:
	mov	x0, x19
	bl	_likely
	cbz	w0, LBB0_10
; %bb.12:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	mov	x0, x19
	bl	_fan_quirk1_handle
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_fan_status_access_mode,4,2     ; @fan_status_access_mode
	.comm	_gfan_handle,4,2                ; @gfan_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_fan_status_offset,4,2          ; @fan_status_offset
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_fan_get_status
.subsections_via_symbols
