	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_LM90_REG_W_CONVRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_i2c_smbus_write_byte_data
	movq	_LM90_REG_R_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lm90_read_reg
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-20(%rbp), %eax
	movq	(%r14), %rcx
	movq	_adt7461@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movl	%eax, %edx
	andl	$4, %edx
	je	LBB0_5
## %bb.4:
	movq	_LM90_FLAG_ADT7461_EXT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 8(%r14)
LBB0_5:
	movq	_max6680@GOTPCREL(%rip), %rsi
	movl	%eax, %edx
	orl	$24, %edx
	cmpq	(%rsi), %rcx
	cmovnel	%eax, %edx
	andl	$191, %edx
	movl	%edx, -20(%rbp)
	cmpl	%eax, %edx
	je	LBB0_7
## %bb.6:
	movq	_LM90_REG_W_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_REG_W_CONVRATE,4,2        ## @LM90_REG_W_CONVRATE
	.comm	_LM90_REG_R_CONFIG1,4,2         ## @LM90_REG_R_CONFIG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialization failed!\n"

	.comm	_adt7461,8,3                    ## @adt7461
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ## @LM90_FLAG_ADT7461_EXT
	.comm	_max6680,8,3                    ## @max6680
	.comm	_LM90_REG_W_CONFIG1,4,2         ## @LM90_REG_W_CONFIG1
	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x8, _LM90_REG_W_CONVRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM90_REG_W_CONVRATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_i2c_smbus_write_byte_data
Lloh3:
	adrp	x8, _LM90_REG_R_CONFIG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM90_REG_R_CONFIG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lm90_read_reg
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
Lloh6:
	adrp	x10, _adt7461@GOTPAGE
Lloh7:
	ldr	x10, [x10, _adt7461@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	and	w11, w8, #0x4
	cmp	x9, x10
	ccmp	w11, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x10, _LM90_FLAG_ADT7461_EXT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LM90_FLAG_ADT7461_EXT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	ldr	w11, [x20, #8]
	orr	w10, w11, w10
	str	w10, [x20, #8]
LBB0_3:
Lloh12:
	adrp	x10, _max6680@GOTPAGE
Lloh13:
	ldr	x10, [x10, _max6680@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	orr	w11, w8, #0x18
	cmp	x9, x10
	csel	w9, w11, w8, eq
	mov	w10, #191
	and	w2, w9, w10
	str	w2, [sp, #12]
	cmp	w2, w8
	b.eq	LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _LM90_REG_W_CONFIG1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LM90_REG_W_CONFIG1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_REG_W_CONVRATE,4,2        ; @LM90_REG_W_CONVRATE
	.comm	_LM90_REG_R_CONFIG1,4,2         ; @LM90_REG_R_CONFIG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialization failed!\n"

	.comm	_adt7461,8,3                    ; @adt7461
	.comm	_LM90_FLAG_ADT7461_EXT,4,2      ; @LM90_FLAG_ADT7461_EXT
	.comm	_max6680,8,3                    ; @max6680
	.comm	_LM90_REG_W_CONFIG1,4,2         ; @LM90_REG_W_CONFIG1
	.no_dead_strip	_lm90_init_client
.subsections_via_symbols
