	.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, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edx
	movl	%edx, (%r14)
	movq	_LM87_REG_CHANNEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lm87_write_value
	jmp	LBB0_3
LBB0_2:
	movq	_LM87_REG_CHANNEL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lm87_read_value
	movl	%eax, (%r14)
LBB0_3:
	movq	_LM87_REG_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_lm87_read_value
	movl	%eax, %ecx
	andl	$111, %ecx
	movl	%ecx, 4(%r14)
	testb	$1, %al
	jne	LBB0_8
## %bb.4:
	movl	$1, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$2, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$2, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$3, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$3, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$4, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$4, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movl	$5, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$5, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movq	_LM87_REG_TEMP_HIGH@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	_LM87_REG_TEMP_LOW@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_AIN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_AIN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_lm87_write_value
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_AIN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	movl	$1, %edi
	callq	_LM87_REG_AIN_MAX
	movq	%rbx, %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_6
## %bb.5:
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	movl	$127, %edx
	callq	_lm87_write_value
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	callq	_LM87_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_lm87_write_value
	xorl	%edi, %edi
	callq	_LM87_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$255, %edx
LBB0_7:
	callq	_lm87_write_value
LBB0_8:
	movl	4(%r14), %edx
	movl	%edx, %eax
	andl	$9, %eax
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %esi
	andl	$118, %edx
	orl	$1, %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lm87_write_value               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LM87_REG_CHANNEL_MODE,4,2      ## @LM87_REG_CHANNEL_MODE
	.comm	_LM87_REG_CONFIG,4,2            ## @LM87_REG_CONFIG
	.comm	_LM87_REG_TEMP_HIGH,8,3         ## @LM87_REG_TEMP_HIGH
	.comm	_LM87_REG_TEMP_LOW,8,3          ## @LM87_REG_TEMP_LOW
	.comm	_CHAN_TEMP3,4,2                 ## @CHAN_TEMP3
	.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	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x8]
	str	w2, [x20]
Lloh0:
	adrp	x8, _LM87_REG_CHANNEL_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM87_REG_CHANNEL_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm87_write_value
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _LM87_REG_CHANNEL_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM87_REG_CHANNEL_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm87_read_value
	str	w0, [x20]
LBB0_3:
Lloh6:
	adrp	x21, _LM87_REG_CONFIG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _LM87_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lm87_read_value
	mov	w8, #111
	and	w8, w0, w8
	str	w8, [x20, #4]
	tbnz	w0, #0, LBB0_8
; %bb.4:
	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
Lloh8:
	adrp	x22, _LM87_REG_TEMP_HIGH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LM87_REG_TEMP_HIGH@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
Lloh10:
	adrp	x23, _LM87_REG_TEMP_LOW@GOTPAGE
Lloh11:
	ldr	x23, [x23, _LM87_REG_TEMP_LOW@GOTPAGEOFF]
	ldr	x8, [x23]
	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, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
	ldr	x8, [x23]
	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]
Lloh12:
	adrp	x9, _CHAN_TEMP3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHAN_TEMP3@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #127
	bl	_lm87_write_value
	ldr	x8, [x23]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_7
LBB0_6:
	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_7:
	bl	_lm87_write_value
LBB0_8:
	ldr	w8, [x20, #4]
	mov	w9, #9
	and	w9, w8, w9
	cmp	w9, #1
	b.ne	LBB0_10
; %bb.9:
	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
LBB0_10:
	ldr	w1, [x21]
	mov	w9, #118
	and	w8, w8, w9
	orr	w2, w8, #0x1
	mov	x0, x19
	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
	b	_lm87_write_value
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LM87_REG_CHANNEL_MODE,4,2      ; @LM87_REG_CHANNEL_MODE
	.comm	_LM87_REG_CONFIG,4,2            ; @LM87_REG_CONFIG
	.comm	_LM87_REG_TEMP_HIGH,8,3         ; @LM87_REG_TEMP_HIGH
	.comm	_LM87_REG_TEMP_LOW,8,3          ; @LM87_REG_TEMP_LOW
	.comm	_CHAN_TEMP3,4,2                 ; @CHAN_TEMP3
	.no_dead_strip	_lm87_init_client
.subsections_via_symbols
