	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_init_client
_lm90_init_client:                      ## @lm90_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_LM90_REG_R_CONVRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%ebx, (%r15)
	movq	_LM90_REG_R_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	%ebx, 4(%r15)
	movl	%ebx, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$500, %edx                      ## imm = 0x1F4
	callq	_lm90_set_convrate
	movq	16(%r15), %rax
	movq	_adt7461@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_tmp451@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_5
## %bb.3:
	movl	%ebx, %ecx
	andl	$4, %ecx
	je	LBB0_5
## %bb.4:
	movq	_LM90_FLAG_ADT7461_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%r15)
LBB0_5:
	movq	_max6680@GOTPCREL(%rip), %rcx
	movl	%ebx, %edx
	orl	$24, %edx
	cmpq	(%rcx), %rax
	cmovnel	%ebx, %edx
	movq	_max6696@GOTPCREL(%rip), %rcx
	movl	%edx, %esi
	andl	$183, %esi
	cmpq	(%rcx), %rax
	cmovnel	%edx, %esi
	andl	$191, %esi
	movq	%r15, %rdi
	callq	_lm90_update_confreg
	movq	_lm90_restore_conf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_add_action_or_reset       ## TAILCALL
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_REG_R_CONVRATE,4,2        ## @LM90_REG_R_CONVRATE
	.comm	_LM90_REG_R_CONFIG1,4,2         ## @LM90_REG_R_CONFIG1
	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_tmp451,8,3                     ## @tmp451
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ## @LM90_FLAG_ADT7461_EXT
	.comm	_max6680,8,3                    ## @max6680
	.comm	_max6696,8,3                    ## @max6696
	.comm	_lm90_restore_conf,4,2          ## @lm90_restore_conf
	.no_dead_strip	_lm90_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_init_client
_lm90_init_client:                      ; @lm90_init_client
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LM90_REG_R_CONVRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM90_REG_R_CONVRATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	str	w21, [x19]
Lloh3:
	adrp	x8, _LM90_REG_R_CONFIG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM90_REG_R_CONFIG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	stp	w21, w21, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #500
	bl	_lm90_set_convrate
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _adt7461@GOTPAGE
Lloh7:
	ldr	x9, [x9, _adt7461@GOTPAGEOFF]
Lloh8:
	adrp	x10, _tmp451@GOTPAGE
Lloh9:
	ldr	x10, [x10, _tmp451@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	and	w9, w21, #0x4
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _LM90_FLAG_ADT7461_EXT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LM90_FLAG_ADT7461_EXT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x19, #24]
	orr	w9, w10, w9
	str	w9, [x19, #24]
LBB0_4:
Lloh15:
	adrp	x9, _max6680@GOTPAGE
Lloh16:
	ldr	x9, [x9, _max6680@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	orr	w10, w21, #0x18
	cmp	x8, x9
	csel	w9, w10, w21, eq
Lloh18:
	adrp	x10, _max6696@GOTPAGE
Lloh19:
	ldr	x10, [x10, _max6696@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	mov	w11, #183
	and	w11, w9, w11
	cmp	x8, x10
	csel	w8, w11, w9, eq
	mov	w9, #191
	and	w1, w8, w9
	mov	x0, x19
	bl	_lm90_update_confreg
Lloh21:
	adrp	x8, _lm90_restore_conf@GOTPAGE
Lloh22:
	ldr	x8, [x8, _lm90_restore_conf@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devm_add_action_or_reset
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_REG_R_CONVRATE,4,2        ; @LM90_REG_R_CONVRATE
	.comm	_LM90_REG_R_CONFIG1,4,2         ; @LM90_REG_R_CONFIG1
	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_tmp451,8,3                     ; @tmp451
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ; @LM90_FLAG_ADT7461_EXT
	.comm	_max6680,8,3                    ; @max6680
	.comm	_max6696,8,3                    ; @max6696
	.comm	_lm90_restore_conf,4,2          ; @lm90_restore_conf
	.no_dead_strip	_lm90_init_client
.subsections_via_symbols
