	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dme1737_init_device
_dme1737_init_device:                   ## @dme1737_init_device
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	40(%rax), %r13
	movl	(%rax), %edi
	callq	_IN_NOMINAL
	movl	%eax, 36(%r15)
	movq	_DME1737_REG_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dme1737_read
	movl	%eax, 4(%r15)
	testb	$1, %al
	jne	LBB0_5
## %bb.1:
	movq	_force_start@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.4:
	orl	$1, %eax
	movl	%eax, 4(%r15)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dme1737_write
	movl	4(%r15), %eax
LBB0_5:
	testb	$4, %al
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	testq	%r13, %r13
	je	LBB0_15
## %bb.8:
	movq	_DME1737_REG_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dme1737_read
	movl	%eax, 8(%r15)
	testb	$4, %al
	je	LBB0_10
## %bb.9:
	movl	$2, %edi
	callq	_HAS_FAN
	orl	%eax, 12(%r15)
LBB0_10:
	cmpl	$46, (%r13)
	jne	LBB0_12
## %bb.11:
	movl	$3, %edi
	callq	_HAS_FAN
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_HAS_PWM
	orl	%ebx, %eax
	orl	%eax, 12(%r15)
LBB0_12:
	movl	$46, %edi
	movq	%r15, %rsi
	callq	_dme1737_i2c_get_features
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	$78, %edi
	movq	%r15, %rsi
	callq	_dme1737_i2c_get_features
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_15:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_HAS_FAN
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_HAS_FAN
	movl	%eax, %r14d
	orl	%ebx, %r14d
	xorl	%edi, %edi
	callq	_HAS_PWM
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_HAS_PWM
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r14d, %ebx
	orl	12(%r15), %ebx
	movl	%ebx, 12(%r15)
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	ja	LBB0_23
## %bb.16:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:
	movl	$2, %edi
	callq	_HAS_FAN
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_HAS_PWM
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_HAS_IN7@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_21
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_19:
	movq	_HAS_ZONE3@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_22
LBB0_18:
	movq	_HAS_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movq	_HAS_ZONE3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_HAS_ZONE_HYST@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_HAS_PWM_MIN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	$2, %edi
	callq	_HAS_FAN
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_HAS_PWM
	movl	%eax, %ebx
	orl	%r14d, %ebx
	orl	%r12d, %ebx
LBB0_21:
	orl	12(%r15), %ebx
	jmp	LBB0_22
LBB0_17:
	movq	_HAS_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movq	_HAS_VID@GOTPCREL(%rip), %rcx
	movq	_HAS_ZONE3@GOTPCREL(%rip), %rdx
	movq	_HAS_ZONE_HYST@GOTPCREL(%rip), %rsi
	movq	_HAS_PWM_MIN@GOTPCREL(%rip), %rdi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
LBB0_22:
	movl	%ebx, 12(%r15)
LBB0_23:
	movl	$2, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	leaq	L_.str.5(%rip), %r14
	leaq	L_.str.4(%rip), %r12
	movq	%r12, %rax
	cmoveq	%r14, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %ebx
	movl	$4, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	movq	%r12, %rax
	cmoveq	%r14, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %ebx
	movl	$5, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	movq	%r12, %rax
	cmoveq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %ebx
	movl	$2, %edi
	callq	_HAS_FAN
	testl	%ebx, %eax
	movq	%r12, %rax
	cmoveq	%r14, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %ebx
	movl	$3, %edi
	callq	_HAS_FAN
	testl	%ebx, %eax
	movq	%r12, %r13
	cmoveq	%r14, %r13
	movl	12(%r15), %ebx
	movl	$4, %edi
	callq	_HAS_FAN
	testl	%ebx, %eax
	movq	%r12, %rbx
	cmoveq	%r14, %rbx
	movl	12(%r15), %r14d
	movl	$5, %edi
	callq	_HAS_FAN
	testl	%r14d, %eax
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %r12
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rsi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r12
	pushq	%rbx
	pushq	%r13
	callq	_dev_info
	addq	$32, %rsp
	movq	_DME1737_REG_TACH_PWM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dme1737_read
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.24:
	cmpl	$164, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %edx
	andl	$3, %edx
	incl	%edx
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	incl	%ecx
	movl	%eax, %r8d
	shrl	$4, %r8d
	andl	$3, %r8d
	incl	%r8d
	shrl	$6, %eax
	andl	$3, %eax
	incl	%eax
	movq	_DO_REPORT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	subq	$8, %rsp
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_warn
	addq	$16, %rsp
	jmp	LBB0_29
LBB0_26:
	testq	%rcx, %rcx
	jne	LBB0_29
## %bb.27:
	cmpl	$36, %eax
	je	LBB0_29
## %bb.28:
	movl	%eax, %edx
	andl	$3, %edx
	incl	%edx
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	incl	%ecx
	shrl	$4, %eax
	andl	$3, %eax
	incl	%eax
	movq	_DO_REPORT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_29:
	testb	$2, 4(%r15)
	jne	LBB0_39
## %bb.30:
	xorl	%edi, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_read
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	movl	12(%r15), %ebx
	xorl	%edi, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	je	LBB0_33
## %bb.31:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_PWM_EN_FROM_REG
	cmpl	$-1, %eax
	jne	LBB0_33
## %bb.32:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_PWM_EN_TO_REG
	movq	16(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_DME1737_REG_PWM
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dme1737_write
	xorl	%edi, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	16(%r15), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_write
LBB0_33:
	movl	$1, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_read
	movq	16(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	12(%r15), %ebx
	movl	$1, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	je	LBB0_36
## %bb.34:
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	callq	_PWM_EN_FROM_REG
	cmpl	$-1, %eax
	jne	LBB0_36
## %bb.35:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movl	$1, %edi
	callq	_PWM_EN_TO_REG
	movq	16(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_DME1737_REG_PWM
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dme1737_write
	movl	$1, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	16(%r15), %rcx
	movl	4(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_write
LBB0_36:
	movl	$2, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_read
	movq	16(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	12(%r15), %ebx
	movl	$2, %edi
	callq	_HAS_PWM
	testl	%ebx, %eax
	je	LBB0_39
## %bb.37:
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_PWM_EN_FROM_REG
	cmpl	$-1, %eax
	jne	LBB0_39
## %bb.38:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%r15), %rax
	movl	8(%rax), %esi
	movl	$1, %edi
	callq	_PWM_EN_TO_REG
	movq	16(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_DME1737_REG_PWM
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dme1737_write
	movl	$2, %edi
	callq	_DME1737_REG_PWM_CONFIG
	movq	16(%r15), %rcx
	movl	8(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dme1737_write
LBB0_39:
	movq	24(%r15), %rax
	movabsq	$8589934593, %rcx               ## imm = 0x200000001
	movq	%rcx, (%rax)
	movl	$4, 8(%rax)
	movq	_HAS_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_40
## %bb.41:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, 32(%r15)
	jmp	LBB0_42
LBB0_40:
	xorl	%ebx, %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_DME1737_REG_CONFIG,4,2         ## @DME1737_REG_CONFIG
	.comm	_force_start,4,2                ## @force_start
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device is not monitoring. Use the force_start load parameter to override.\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Device is not ready.\n"

	.comm	_DME1737_REG_CONFIG2,4,2        ## @DME1737_REG_CONFIG2
L_.str.2:                               ## @.str.2
	.asciz	"Failed to query Super-IO for optional features.\n"

	.comm	_HAS_TEMP_OFFSET,4,2            ## @HAS_TEMP_OFFSET
	.comm	_HAS_VID,4,2                    ## @HAS_VID
	.comm	_HAS_ZONE3,4,2                  ## @HAS_ZONE3
	.comm	_HAS_ZONE_HYST,4,2              ## @HAS_ZONE_HYST
	.comm	_HAS_PWM_MIN,4,2                ## @HAS_PWM_MIN
	.comm	_HAS_IN7,4,2                    ## @HAS_IN7
L_.str.3:                               ## @.str.3
	.asciz	"Optional features: pwm3=%s, pwm5=%s, pwm6=%s, fan3=%s, fan4=%s, fan5=%s, fan6=%s.\n"

L_.str.4:                               ## @.str.4
	.asciz	"yes"

L_.str.5:                               ## @.str.5
	.asciz	"no"

	.comm	_DME1737_REG_TACH_PWM,4,2       ## @DME1737_REG_TACH_PWM
L_.str.6:                               ## @.str.6
	.asciz	"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d, fan4->pwm%d. %s\n"

	.comm	_DO_REPORT,4,2                  ## @DO_REPORT
L_.str.7:                               ## @.str.7
	.asciz	"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d. %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Switching pwm%d to manual mode.\n"

	.no_dead_strip	_dme1737_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dme1737_init_device
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dme1737_init_device:                   ; @dme1737_init_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	w0, [x0]
	bl	_IN_NOMINAL
	str	w0, [x19, #36]
Lloh0:
	adrp	x21, _DME1737_REG_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DME1737_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dme1737_read
	str	w0, [x19, #4]
	tbnz	w0, #0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _force_start@GOTPAGE
Lloh3:
	ldr	x8, [x8, _force_start@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.2:
	orr	w2, w0, #0x1
	str	w2, [x19, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dme1737_write
	ldr	w0, [x19, #4]
LBB0_3:
	tbnz	w0, #2, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_5:
	cbz	x22, LBB0_13
; %bb.6:
Lloh7:
	adrp	x8, _DME1737_REG_CONFIG2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DME1737_REG_CONFIG2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dme1737_read
	str	w0, [x19, #8]
	tbz	w0, #2, LBB0_8
; %bb.7:
	mov	w0, #2
	bl	_HAS_FAN
	ldr	w8, [x19, #12]
	orr	w8, w8, w0
	str	w8, [x19, #12]
LBB0_8:
	ldr	w8, [x22]
	cmp	w8, #46
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #3
	bl	_HAS_FAN
	mov	x21, x0
	mov	w0, #2
	bl	_HAS_PWM
	orr	w8, w0, w21
	ldr	w9, [x19, #12]
	orr	w8, w8, w9
	str	w8, [x19, #12]
LBB0_10:
	mov	w0, #46
	mov	x1, x19
	bl	_dme1737_i2c_get_features
	cbz	x0, LBB0_13
; %bb.11:
	mov	w0, #78
	mov	x1, x19
	bl	_dme1737_i2c_get_features
	cbz	x0, LBB0_13
; %bb.12:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_13:
	mov	w0, #0
	bl	_HAS_FAN
	mov	x21, x0
	mov	w0, #1
	bl	_HAS_FAN
	orr	w21, w0, w21
	mov	w0, #0
	bl	_HAS_PWM
	orr	w21, w21, w0
	mov	w0, #1
	bl	_HAS_PWM
	orr	w8, w21, w0
	ldr	w9, [x19, #12]
	orr	w21, w8, w9
	str	w21, [x19, #12]
	ldr	w8, [x19]
	sub	w8, w8, #128
Lloh12:
	adrp	x12, _HAS_VID@GOTPAGE
Lloh13:
	ldr	x12, [x12, _HAS_VID@GOTPAGEOFF]
	cmp	w8, #3
	stp	x22, x20, [sp, #64]             ; 16-byte Folded Spill
	b.hi	LBB0_23
; %bb.14:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	w0, #2
	bl	_HAS_FAN
	mov	x21, x0
	mov	w0, #2
	bl	_HAS_PWM
	orr	w8, w0, w21
Lloh16:
	adrp	x9, _HAS_IN7@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HAS_IN7@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_20
LBB0_16:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _EFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_43
LBB0_18:
Lloh24:
	adrp	x8, _HAS_ZONE3@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HAS_ZONE3@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x8, _HAS_TEMP_OFFSET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HAS_TEMP_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _HAS_ZONE3@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HAS_ZONE3@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _HAS_ZONE_HYST@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HAS_ZONE_HYST@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _HAS_PWM_MIN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _HAS_PWM_MIN@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	w0, #2
	bl	_HAS_FAN
	orr	w21, w21, w0
	mov	w0, #2
	bl	_HAS_PWM
	orr	w8, w21, w0
LBB0_20:
	ldr	w9, [x19, #12]
	orr	w21, w8, w9
	b	LBB0_22
LBB0_21:
Lloh39:
	adrp	x8, _HAS_TEMP_OFFSET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HAS_TEMP_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x12]
Lloh42:
	adrp	x10, _HAS_ZONE3@GOTPAGE
Lloh43:
	ldr	x10, [x10, _HAS_ZONE3@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
Lloh45:
	adrp	x11, _HAS_ZONE_HYST@GOTPAGE
Lloh46:
	ldr	x11, [x11, _HAS_ZONE_HYST@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
Lloh48:
	adrp	x12, _HAS_PWM_MIN@GOTPAGE
Lloh49:
	ldr	x12, [x12, _HAS_PWM_MIN@GOTPAGEOFF]
Lloh50:
	ldr	w12, [x12]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w21, w8, w12
LBB0_22:
	str	w21, [x19, #12]
LBB0_23:
	mov	w0, #2
	bl	_HAS_PWM
Lloh51:
	adrp	x24, l_.str.4@PAGE
Lloh52:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh53:
	adrp	x25, l_.str.5@PAGE
Lloh54:
	add	x25, x25, l_.str.5@PAGEOFF
	tst	w0, w21
	csel	x21, x25, x24, eq
	ldr	w26, [x19, #12]
	mov	w0, #4
	bl	_HAS_PWM
	tst	w0, w26
	csel	x26, x25, x24, eq
	ldr	w27, [x19, #12]
	mov	w0, #5
	bl	_HAS_PWM
	tst	w0, w27
	csel	x27, x25, x24, eq
	ldr	w28, [x19, #12]
	mov	w0, #2
	bl	_HAS_FAN
	tst	w0, w28
	csel	x28, x25, x24, eq
	ldr	w22, [x19, #12]
	mov	w0, #3
	bl	_HAS_FAN
	tst	w0, w22
	csel	x22, x25, x24, eq
	ldr	w20, [x19, #12]
	mov	w0, #4
	bl	_HAS_FAN
	tst	w0, w20
	csel	x20, x25, x24, eq
	ldr	w23, [x19, #12]
	mov	w0, #5
	bl	_HAS_FAN
	tst	w0, w23
	csel	x8, x25, x24, eq
	stp	x20, x8, [sp, #40]
	stp	x28, x22, [sp, #24]
	stp	x26, x27, [sp, #8]
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x21, [sp]
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_dev_info
Lloh57:
	adrp	x8, _DME1737_REG_TACH_PWM@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DME1737_REG_TACH_PWM@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dme1737_read
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_26
; %bb.24:
	cmp	w0, #164
	b.eq	LBB0_26
; %bb.25:
	and	w8, w0, #0x3
	add	w8, w8, #1
	ubfx	w9, w0, #2, #2
	add	w9, w9, #1
	ubfx	w10, w0, #4, #2
	add	w10, w10, #1
	ubfx	w11, w0, #6, #2
	add	w11, w11, #1
Lloh60:
	adrp	x12, _DO_REPORT@GOTPAGE
Lloh61:
	ldr	x12, [x12, _DO_REPORT@GOTPAGEOFF]
Lloh62:
	ldr	w12, [x12]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh63:
	adrp	x1, l_.str.6@PAGE
Lloh64:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_29
LBB0_26:
	cbnz	x8, LBB0_30
; %bb.27:
	cmp	w0, #36
	b.eq	LBB0_30
; %bb.28:
	and	w8, w0, #0x3
	add	w8, w8, #1
	ubfx	w9, w0, #2, #2
	add	w9, w9, #1
	ubfx	w10, w0, #4, #2
	add	w10, w10, #1
Lloh65:
	adrp	x11, _DO_REPORT@GOTPAGE
Lloh66:
	ldr	x11, [x11, _DO_REPORT@GOTPAGEOFF]
Lloh67:
	ldr	w11, [x11]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh68:
	adrp	x1, l_.str.7@PAGE
Lloh69:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_29:
	mov	x0, x21
	bl	_dev_warn
LBB0_30:
	ldrb	w8, [x19, #4]
	tbnz	w8, #1, LBB0_40
; %bb.31:
	mov	w0, #0
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	mov	x0, x19
	bl	_dme1737_read
	ldr	x8, [x19, #16]
	str	w0, [x8]
	ldr	w20, [x19, #12]
	mov	w0, #0
	bl	_HAS_PWM
	tst	w0, w20
	b.eq	LBB0_34
; %bb.32:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_PWM_EN_FROM_REG
	cmn	w0, #1
	b.ne	LBB0_34
; %bb.33:
	mov	w8, #1
	str	x8, [sp]
Lloh70:
	adrp	x1, l_.str.8@PAGE
Lloh71:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	mov	w0, #1
	bl	_PWM_EN_TO_REG
	ldr	x8, [x19, #16]
	str	w0, [x8]
	mov	w0, #0
	bl	_DME1737_REG_PWM
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_dme1737_write
	mov	w0, #0
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dme1737_write
LBB0_34:
	mov	w0, #1
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	mov	x0, x19
	bl	_dme1737_read
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldr	w20, [x19, #12]
	mov	w0, #1
	bl	_HAS_PWM
	tst	w0, w20
	b.eq	LBB0_37
; %bb.35:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_PWM_EN_FROM_REG
	cmn	w0, #1
	b.ne	LBB0_37
; %bb.36:
	mov	w8, #2
	str	x8, [sp]
Lloh72:
	adrp	x1, l_.str.8@PAGE
Lloh73:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #4]
	mov	w0, #1
	bl	_PWM_EN_TO_REG
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_DME1737_REG_PWM
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_dme1737_write
	mov	w0, #1
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_dme1737_write
LBB0_37:
	mov	w0, #2
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	mov	x0, x19
	bl	_dme1737_read
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	ldr	w20, [x19, #12]
	mov	w0, #2
	bl	_HAS_PWM
	tst	w0, w20
	b.eq	LBB0_40
; %bb.38:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_PWM_EN_FROM_REG
	cmn	w0, #1
	b.ne	LBB0_40
; %bb.39:
	mov	w8, #3
	str	x8, [sp]
Lloh74:
	adrp	x1, l_.str.8@PAGE
Lloh75:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	ldr	x8, [x19, #16]
	ldr	w1, [x8, #8]
	mov	w0, #1
	bl	_PWM_EN_TO_REG
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_DME1737_REG_PWM
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_dme1737_write
	mov	w0, #2
	bl	_DME1737_REG_PWM_CONFIG
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_dme1737_write
LBB0_40:
	ldr	x8, [x19, #24]
Lloh76:
	adrp	x9, lCPI0_0@PAGE
Lloh77:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w9, #4
	str	w9, [x8, #8]
	ldr	w8, [x19, #12]
Lloh78:
	adrp	x9, _HAS_VID@GOTPAGE
Lloh79:
	ldr	x9, [x9, _HAS_VID@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
; %bb.41:
	bl	_vid_which_vrm
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #32]
	b	LBB0_43
LBB0_42:
	mov	w0, #0
LBB0_43:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdr	Lloh76, Lloh77
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
                                        ; -- End function
	.comm	_DME1737_REG_CONFIG,4,2         ; @DME1737_REG_CONFIG
	.comm	_force_start,4,2                ; @force_start
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device is not monitoring. Use the force_start load parameter to override.\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Device is not ready.\n"

	.comm	_DME1737_REG_CONFIG2,4,2        ; @DME1737_REG_CONFIG2
l_.str.2:                               ; @.str.2
	.asciz	"Failed to query Super-IO for optional features.\n"

	.comm	_HAS_TEMP_OFFSET,4,2            ; @HAS_TEMP_OFFSET
	.comm	_HAS_VID,4,2                    ; @HAS_VID
	.comm	_HAS_ZONE3,4,2                  ; @HAS_ZONE3
	.comm	_HAS_ZONE_HYST,4,2              ; @HAS_ZONE_HYST
	.comm	_HAS_PWM_MIN,4,2                ; @HAS_PWM_MIN
	.comm	_HAS_IN7,4,2                    ; @HAS_IN7
l_.str.3:                               ; @.str.3
	.asciz	"Optional features: pwm3=%s, pwm5=%s, pwm6=%s, fan3=%s, fan4=%s, fan5=%s, fan6=%s.\n"

l_.str.4:                               ; @.str.4
	.asciz	"yes"

l_.str.5:                               ; @.str.5
	.asciz	"no"

	.comm	_DME1737_REG_TACH_PWM,4,2       ; @DME1737_REG_TACH_PWM
l_.str.6:                               ; @.str.6
	.asciz	"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d, fan4->pwm%d. %s\n"

	.comm	_DO_REPORT,4,2                  ; @DO_REPORT
l_.str.7:                               ; @.str.7
	.asciz	"Non-standard fan to pwm mapping: fan1->pwm%d, fan2->pwm%d, fan3->pwm%d. %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Switching pwm%d to manual mode.\n"

	.no_dead_strip	_dme1737_init_device
.subsections_via_symbols
