	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95234_detect
_lm95234_detect:                        ## @lm95234_detect
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %r15d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_LM95234_REG_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_NATSEMI_MAN_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	_LM95234_REG_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_1
## %bb.5:
	cmpl	$43, %r15d
	ja	LBB0_1
## %bb.6:
	movl	%r15d, %eax
	movabsq	$13194156310528, %rcx           ## imm = 0xC0001000000
	btq	%rax, %rcx
	jae	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %r15
	movl	$191, %r13d
	movl	$249, %r12d
	jmp	LBB0_11
LBB0_8:
	addl	$-24, %r15d
	cmpl	$54, %r15d
	ja	LBB0_1
## %bb.9:
	movabsq	$27021597764222977, %rax        ## imm = 0x60000000000001
	btq	%r15, %rax
	jae	LBB0_1
## %bb.10:
	leaq	L_.str.1(%rip), %r15
	movl	$188, %r13d
	movl	$225, %r12d
LBB0_11:
	movq	_LM95234_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$48, %al
	jne	LBB0_1
## %bb.12:
	movq	_LM95234_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%r13d, %eax
	jne	LBB0_1
## %bb.13:
	movq	_LM95234_REG_CONVRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$-4, %al
	jne	LBB0_1
## %bb.14:
	movq	_LM95234_REG_REM_MODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%r12d, %eax
	jne	LBB0_1
## %bb.15:
	movq	_LM95234_REG_REM_MODEL_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%r12d, %eax
	je	LBB0_16
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LM95234_REG_MAN_ID,4,2         ## @LM95234_REG_MAN_ID
	.comm	_NATSEMI_MAN_ID,4,2             ## @NATSEMI_MAN_ID
	.comm	_LM95234_REG_CHIP_ID,4,2        ## @LM95234_REG_CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lm95233"

L_.str.1:                               ## @.str.1
	.asciz	"lm95234"

	.comm	_LM95234_REG_STATUS,4,2         ## @LM95234_REG_STATUS
	.comm	_LM95234_REG_CONFIG,4,2         ## @LM95234_REG_CONFIG
	.comm	_LM95234_REG_CONVRATE,4,2       ## @LM95234_REG_CONVRATE
	.comm	_LM95234_REG_REM_MODEL,4,2      ## @LM95234_REG_REM_MODEL
	.comm	_LM95234_REG_REM_MODEL_STS,4,2  ## @LM95234_REG_REM_MODEL_STS
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_lm95234_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95234_detect
_lm95234_detect:                        ; @lm95234_detect
	.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, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	ldr	w21, [x20]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_15
; %bb.1:
Lloh3:
	adrp	x8, _LM95234_REG_MAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM95234_REG_MAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
Lloh6:
	adrp	x8, _NATSEMI_MAN_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NATSEMI_MAN_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.2:
Lloh9:
	adrp	x8, _LM95234_REG_CHIP_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LM95234_REG_CHIP_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #129
	b.ne	LBB0_15
; %bb.4:
	cmp	w21, #43
	b.hi	LBB0_15
; %bb.5:
	mov	w8, #1
	lsl	x8, x8, x21
	mov	x9, #16777216
	movk	x9, #3072, lsl #32
	tst	x8, x9
	b.eq	LBB0_15
; %bb.6:
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	mov	w23, #191
	mov	w22, #249
	b	LBB0_10
LBB0_7:
	sub	w8, w21, #24
	cmp	w8, #54
	b.hi	LBB0_15
; %bb.8:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1
	movk	x9, #96, lsl #48
	tst	x8, x9
	b.eq	LBB0_15
; %bb.9:
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	w23, #188
	mov	w22, #225
LBB0_10:
Lloh16:
	adrp	x8, _LM95234_REG_STATUS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LM95234_REG_STATUS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0x30
	b.ne	LBB0_15
; %bb.11:
Lloh19:
	adrp	x8, _LM95234_REG_CONFIG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LM95234_REG_CONFIG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, w23
	b.ne	LBB0_15
; %bb.12:
Lloh22:
	adrp	x8, _LM95234_REG_CONVRATE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LM95234_REG_CONVRATE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0xfc
	b.ne	LBB0_15
; %bb.13:
Lloh25:
	adrp	x8, _LM95234_REG_REM_MODEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LM95234_REG_REM_MODEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, w22
	b.ne	LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _LM95234_REG_REM_MODEL_STS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LM95234_REG_REM_MODEL_STS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, w22
	b.eq	LBB0_17
LBB0_15:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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_17:
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LM95234_REG_MAN_ID,4,2         ; @LM95234_REG_MAN_ID
	.comm	_NATSEMI_MAN_ID,4,2             ; @NATSEMI_MAN_ID
	.comm	_LM95234_REG_CHIP_ID,4,2        ; @LM95234_REG_CHIP_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lm95233"

l_.str.1:                               ; @.str.1
	.asciz	"lm95234"

	.comm	_LM95234_REG_STATUS,4,2         ; @LM95234_REG_STATUS
	.comm	_LM95234_REG_CONFIG,4,2         ; @LM95234_REG_CONFIG
	.comm	_LM95234_REG_CONVRATE,4,2       ; @LM95234_REG_CONVRATE
	.comm	_LM95234_REG_REM_MODEL,4,2      ; @LM95234_REG_REM_MODEL
	.comm	_LM95234_REG_REM_MODEL_STS,4,2  ; @LM95234_REG_REM_MODEL_STS
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_lm95234_detect
.subsections_via_symbols
