	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83627ehf_check_fan_inputs
_w83627ehf_check_fan_inputs:            ## @w83627ehf_check_fan_inputs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_w83627uhg@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movabsq	$12884901891, %rax              ## imm = 0x300000003
	movq	%rax, (%r14)
	jmp	LBB0_26
LBB0_2:
	movq	%rdi, %r12
	movq	_nct6775@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%r12), %edi
	movl	$42, %esi
	callq	_superio_inb
	xorl	%ebx, %ebx
	testb	$-128, %al
	sete	%bl
	movl	$1, %r13d
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_4:
	movq	_nct6776@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	movl	8(%r12), %edi
	movl	$39, %esi
	callq	_superio_inb
	movl	%eax, %r15d
	andl	$128, %r15d
	movl	8(%r12), %edi
	movq	_W83627EHF_LD_HWM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_select
	movl	8(%r12), %edi
	movq	_SIO_REG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_inb
	movl	%r15d, %r13d
	testb	$-128, %al
	jne	LBB0_7
## %bb.6:
	movl	8(%r12), %edi
	movl	$36, %esi
	movl	%eax, %ebx
	callq	_superio_inb
	xorl	%r13d, %r13d
	testb	$64, %al
	movl	%ebx, %eax
	sete	%r13b
LBB0_7:
	movl	%r15d, %ebx
	testb	$64, %al
	jne	LBB0_9
## %bb.8:
	movl	8(%r12), %edi
	movl	$28, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_superio_inb
	movl	%eax, %ebx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	$1, %ebx
LBB0_9:
	testb	$32, %al
	jne	LBB0_16
## %bb.10:
	movl	8(%r12), %edi
	movl	$28, %esi
	callq	_superio_inb
	movl	%eax, %r15d
	shrl	%r15d
	andl	$1, %r15d
	jmp	LBB0_16
LBB0_11:
	movq	_w83667hg@GOTPCREL(%rip), %rcx
	movl	8(%r12), %edi
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	_w83667hg_b@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.14:
	movl	$41, %esi
	callq	_superio_inb
	xorl	%ebx, %ebx
	testb	$6, %al
	sete	%bl
	movl	8(%r12), %edi
	movl	$36, %esi
	callq	_superio_inb
	xorl	%r15d, %r15d
	testb	$2, %al
	sete	%r15b
	jmp	LBB0_15
LBB0_13:
	movl	$39, %esi
	callq	_superio_inb
	movl	%eax, %ebx
	andl	$64, %ebx
	movl	8(%r12), %edi
	movl	$39, %esi
	callq	_superio_inb
	movl	%eax, %r15d
	andl	$32, %r15d
LBB0_15:
	movl	$1, %r13d
LBB0_16:
	movl	%ebx, %eax
LBB0_17:
	leal	3(,%r13,4), %ecx
	movl	%ecx, (%r14)
	movl	%ecx, 4(%r14)
	movq	(%r12), %rdx
	movq	_nct6775@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_19
## %bb.18:
	movq	_nct6776@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_19
## %bb.20:
	movq	_W83627EHF_REG_FANDIV1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83627ehf_read_value
	testb	$4, %al
	je	LBB0_23
## %bb.21:
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.22:
	orb	$8, (%r14)
	orb	$8, 4(%r14)
LBB0_23:
	testb	$2, %al
	jne	LBB0_26
## %bb.24:
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.25:
	orb	$16, (%r14)
	orb	$16, 4(%r14)
	jmp	LBB0_26
LBB0_19:
	shll	$3, %ebx
	shll	$4, %r15d
	orl	%r15d, %ebx
	orl	%ecx, %ebx
	movl	%ebx, (%r14)
	shll	$3, %eax
	orl	%r15d, %eax
	orl	%ecx, %eax
	movl	%eax, 4(%r14)
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_w83627uhg,8,3                  ## @w83627uhg
	.comm	_nct6775,8,3                    ## @nct6775
	.comm	_nct6776,8,3                    ## @nct6776
	.comm	_W83627EHF_LD_HWM,4,2           ## @W83627EHF_LD_HWM
	.comm	_SIO_REG_ENABLE,4,2             ## @SIO_REG_ENABLE
	.comm	_w83667hg,8,3                   ## @w83667hg
	.comm	_w83667hg_b,8,3                 ## @w83667hg_b
	.comm	_W83627EHF_REG_FANDIV1,4,2      ## @W83627EHF_REG_FANDIV1
	.no_dead_strip	_w83627ehf_check_fan_inputs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83627ehf_check_fan_inputs
_w83627ehf_check_fan_inputs:            ; @w83627ehf_check_fan_inputs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _w83627uhg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _w83627uhg@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	movi.2s	v0, #3
LBB0_2:
	str	d0, [x19]
	b	LBB0_24
LBB0_3:
	mov	x20, x0
Lloh3:
	adrp	x22, _nct6775@GOTPAGE
Lloh4:
	ldr	x22, [x22, _nct6775@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh5:
	adrp	x23, _nct6776@GOTPAGE
Lloh6:
	ldr	x23, [x23, _nct6776@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
	mov	w1, #42
	bl	_superio_inb
	mov	w8, #0
	mov	w24, #0
	mov	w26, #1
	bic	w25, w26, w0, lsr #7
	b	LBB0_16
LBB0_5:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w0, [x20, #8]
	mov	w1, #39
	bl	_superio_inb
	and	w24, w0, #0x80
	ldr	w0, [x20, #8]
Lloh7:
	adrp	x8, _W83627EHF_LD_HWM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W83627EHF_LD_HWM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_superio_select
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x8, _SIO_REG_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIO_REG_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_superio_inb
	mov	x21, x0
	mov	x26, x24
	tbz	w0, #7, LBB0_11
; %bb.7:
	mov	x25, x24
	tbz	w21, #6, LBB0_12
LBB0_8:
	tbz	w21, #5, LBB0_13
	b	LBB0_15
LBB0_9:
Lloh13:
	adrp	x9, _w83667hg@GOTPAGE
Lloh14:
	ldr	x9, [x9, _w83667hg@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _w83667hg_b@GOTPAGE
Lloh17:
	ldr	x10, [x10, _w83667hg_b@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	w0, [x20, #8]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.10:
	mov	w1, #39
	bl	_superio_inb
	and	w25, w0, #0x40
	ldr	w0, [x20, #8]
	mov	w1, #39
	bl	_superio_inb
	and	w24, w0, #0x20
	mov	w26, #1
	b	LBB0_15
LBB0_11:
	ldr	w0, [x20, #8]
	mov	w1, #36
	bl	_superio_inb
	mov	w8, #1
	bic	w26, w8, w0, lsr #6
	mov	x25, x24
	tbnz	w21, #6, LBB0_8
LBB0_12:
	ldr	w0, [x20, #8]
	mov	w1, #28
	bl	_superio_inb
	and	w25, w0, #0x1
	tbnz	w21, #5, LBB0_15
LBB0_13:
	ldr	w0, [x20, #8]
	mov	w1, #28
	bl	_superio_inb
	ubfx	w24, w0, #1, #1
	b	LBB0_15
LBB0_14:
	mov	w1, #41
	bl	_superio_inb
	tst	w0, #0x6
	cset	w25, eq
	ldr	w0, [x20, #8]
	mov	w1, #36
	bl	_superio_inb
	mov	w26, #1
	bic	w24, w26, w0, lsr #1
LBB0_15:
	mov	x8, x25
LBB0_16:
	mov	w9, #3
	bfi	w9, w26, #2, #8
	stp	w9, w9, [x19]
	ldr	x10, [x20]
	ldr	x11, [x22]
	ldr	x12, [x23]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_18
; %bb.17:
	lsl	w10, w24, #4
	orr	w11, w10, w25, lsl #3
	orr	w11, w11, w9
	orr	w8, w10, w8, lsl #3
	orr	w8, w8, w9
	stp	w11, w8, [x19]
	b	LBB0_24
LBB0_18:
Lloh19:
	adrp	x8, _W83627EHF_REG_FANDIV1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _W83627EHF_REG_FANDIV1@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83627ehf_read_value
	tbz	w0, #2, LBB0_21
; %bb.19:
	cbz	w25, LBB0_21
; %bb.20:
	ldr	d0, [x19]
	orr.2s	v0, #8
	str	d0, [x19]
LBB0_21:
	tbnz	w0, #1, LBB0_24
; %bb.22:
	cbz	w24, LBB0_24
; %bb.23:
	ldr	d0, [x19]
	orr.2s	v0, #16
	b	LBB0_2
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_w83627uhg,8,3                  ; @w83627uhg
	.comm	_nct6775,8,3                    ; @nct6775
	.comm	_nct6776,8,3                    ; @nct6776
	.comm	_W83627EHF_LD_HWM,4,2           ; @W83627EHF_LD_HWM
	.comm	_SIO_REG_ENABLE,4,2             ; @SIO_REG_ENABLE
	.comm	_w83667hg,8,3                   ; @w83667hg
	.comm	_w83667hg_b,8,3                 ; @w83667hg_b
	.comm	_W83627EHF_REG_FANDIV1,4,2      ; @W83627EHF_REG_FANDIV1
	.no_dead_strip	_w83627ehf_check_fan_inputs
.subsections_via_symbols
