	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm87_init_client
_lm87_init_client:                      ## @lm87_init_client
	.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	%rdi, %r12
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CHAN_TEMP3@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_CHAN_NO_FAN
	orl	%eax, %r15d
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, %edi
	callq	_CHAN_NO_FAN
	orl	%eax, %r15d
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_regulator_get_voltage
	cmpl	$5000000, %eax                  ## imm = 0x4C4B40
	jne	LBB0_10
## %bb.9:
	movq	_CHAN_VCC_5V@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_10:
	movl	%r15d, (%r14)
	movq	_LM87_REG_CHANNEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_lm87_write_value
	jmp	LBB0_14
LBB0_11:
	movq	%r12, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_dev_get_platdata
	movl	(%rax), %edx
	movl	%edx, (%r14)
	movq	_LM87_REG_CHANNEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lm87_write_value
	jmp	LBB0_14
LBB0_13:
	movq	_LM87_REG_CHANNEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_lm87_read_value
	movl	%eax, (%r14)
LBB0_14:
	movq	_LM87_REG_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_lm87_read_value
	andl	$111, %eax
	movl	%eax, 4(%r14)
	movq	_lm87_restore_config@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	testb	$1, 4(%r14)
	jne	LBB0_20
## %bb.16:
	movl	$1, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$2, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$2, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$3, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$3, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$4, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$4, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$5, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$5, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movq	_LM87_REG_TEMP_HIGH@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	_LM87_REG_TEMP_LOW@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_AIN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_AIN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_AIN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_AIN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movq	_CHAN_TEMP3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_18
## %bb.17:
	movq	_LM87_REG_TEMP_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_18:
	xorl	%edi, %edi
	callq	_LM87_REG_IN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_IN_MAX
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$255, %edx
LBB0_19:
	callq	_lm87_write_value
	movq	_LM87_REG_CONFIG@GOTPCREL(%rip), %rbx
LBB0_20:
	movl	4(%r14), %edx
	movl	%edx, %eax
	andl	$9, %eax
	cmpl	$1, %eax
	je	LBB0_22
## %bb.21:
	movl	(%rbx), %esi
	andl	$118, %edx
	orl	$1, %edx
	movq	%r12, %rdi
	callq	_lm87_write_value
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"has-temp3"

	.comm	_CHAN_TEMP3,4,2                 ## @CHAN_TEMP3
L_.str.1:                               ## @.str.1
	.asciz	"has-in6"

L_.str.2:                               ## @.str.2
	.asciz	"has-in7"

L_.str.3:                               ## @.str.3
	.asciz	"vcc"

	.comm	_CHAN_VCC_5V,4,2                ## @CHAN_VCC_5V
	.comm	_LM87_REG_CHANNEL_MODE,4,2      ## @LM87_REG_CHANNEL_MODE
	.comm	_LM87_REG_CONFIG,4,2            ## @LM87_REG_CONFIG
	.comm	_lm87_restore_config,4,2        ## @lm87_restore_config
	.comm	_LM87_REG_TEMP_HIGH,8,3         ## @LM87_REG_TEMP_HIGH
	.comm	_LM87_REG_TEMP_LOW,8,3          ## @LM87_REG_TEMP_LOW
	.no_dead_strip	_lm87_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm87_init_client
_lm87_init_client:                      ; @lm87_init_client
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	ldr	x22, [x19]
	cbz	x22, LBB0_9
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
Lloh2:
	adrp	x8, _CHAN_TEMP3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHAN_TEMP3@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, wzr, w8, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_CHAN_NO_FAN
	orr	w21, w0, w21
LBB0_3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_CHAN_NO_FAN
	orr	w21, w0, w21
LBB0_5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	mov	x22, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_regulator_get_voltage
	sub	w8, w0, #1220, lsl #12          ; =4997120
	cmp	w8, #2880
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _CHAN_VCC_5V@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHAN_VCC_5V@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_8:
	str	w21, [x20]
Lloh14:
	adrp	x8, _LM87_REG_CHANNEL_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LM87_REG_CHANNEL_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_lm87_write_value
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_dev_get_platdata
	ldr	w2, [x0]
	str	w2, [x20]
Lloh17:
	adrp	x8, _LM87_REG_CHANNEL_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LM87_REG_CHANNEL_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm87_write_value
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _LM87_REG_CHANNEL_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM87_REG_CHANNEL_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm87_read_value
	str	w0, [x20]
LBB0_12:
Lloh23:
	adrp	x22, _LM87_REG_CONFIG@GOTPAGE
Lloh24:
	ldr	x22, [x22, _LM87_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_lm87_read_value
	mov	w8, #111
	and	w8, w0, w8
	str	w8, [x20, #4]
Lloh25:
	adrp	x8, _lm87_restore_config@GOTPAGE
Lloh26:
	ldr	x8, [x8, _lm87_restore_config@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_add_action
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.13:
	ldrb	w8, [x20, #4]
	tbnz	w8, #0, LBB0_18
; %bb.14:
	mov	w0, #1
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #1
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	mov	w0, #2
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #2
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	mov	w0, #3
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #3
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	mov	w0, #4
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #4
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	mov	w0, #5
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #5
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
Lloh28:
	adrp	x23, _LM87_REG_TEMP_HIGH@GOTPAGE
Lloh29:
	ldr	x23, [x23, _LM87_REG_TEMP_HIGH@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
Lloh30:
	adrp	x24, _LM87_REG_TEMP_LOW@GOTPAGE
Lloh31:
	ldr	x24, [x24, _LM87_REG_TEMP_LOW@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #0
	bl	_LM87_REG_AIN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #0
	bl	_LM87_REG_AIN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #1
	bl	_LM87_REG_AIN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #1
	bl	_LM87_REG_AIN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_lm87_write_value
	ldr	w8, [x20]
Lloh32:
	adrp	x9, _CHAN_TEMP3@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CHAN_TEMP3@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x23]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
	ldr	x8, [x24]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_17
LBB0_16:
	mov	w0, #0
	bl	_LM87_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_lm87_write_value
	mov	w0, #0
	bl	_LM87_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
LBB0_17:
	bl	_lm87_write_value
LBB0_18:
	ldr	w8, [x20, #4]
	mov	w9, #9
	and	w9, w8, w9
	cmp	w9, #1
	b.eq	LBB0_20
; %bb.19:
	ldr	w1, [x22]
	mov	w9, #118
	and	w8, w8, w9
	orr	w2, w8, #0x1
	mov	x0, x19
	bl	_lm87_write_value
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"has-temp3"

	.comm	_CHAN_TEMP3,4,2                 ; @CHAN_TEMP3
l_.str.1:                               ; @.str.1
	.asciz	"has-in6"

l_.str.2:                               ; @.str.2
	.asciz	"has-in7"

l_.str.3:                               ; @.str.3
	.asciz	"vcc"

	.comm	_CHAN_VCC_5V,4,2                ; @CHAN_VCC_5V
	.comm	_LM87_REG_CHANNEL_MODE,4,2      ; @LM87_REG_CHANNEL_MODE
	.comm	_LM87_REG_CONFIG,4,2            ; @LM87_REG_CONFIG
	.comm	_lm87_restore_config,4,2        ; @lm87_restore_config
	.comm	_LM87_REG_TEMP_HIGH,8,3         ; @LM87_REG_TEMP_HIGH
	.comm	_LM87_REG_TEMP_LOW,8,3          ; @LM87_REG_TEMP_LOW
	.no_dead_strip	_lm87_init_client
.subsections_via_symbols
