	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp421_detect
_tmp421_detect:                         ## @tmp421_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %r12d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_TMP421_MANUFACTURER_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_TMP421_MANUFACTURER_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	_TMP421_CONVERSION_RATE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$-8, %al
	jne	LBB0_1
## %bb.4:
	movq	_TMP421_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$127, %al
	je	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_TMP421_DEVICE_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.6:
	movq	_tmp421@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_11:
	andl	$-2, %r12d
	cmpl	$76, %r12d
	jne	LBB0_1
## %bb.12:
	movq	_tmp442@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_13:
	movq	_tmp441@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_9:
	andl	$-2, %r12d
	cmpl	$76, %r12d
	jne	LBB0_1
## %bb.10:
	movq	_tmp423@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_7:
	cmpl	$42, %r12d
	je	LBB0_1
## %bb.8:
	movq	_tmp422@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %r12d
	movl	(%r15), %edi
	movq	_tmp421_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	leaq	_reltable.tmp421_detect(%rip), %rax
	movslq	(%rax,%r12,4), %rdx
	addq	%rax, %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.tmp421_detect
_reltable.tmp421_detect:
	.long	L_.str-_reltable.tmp421_detect
	.long	L_.str.1-_reltable.tmp421_detect
	.long	L_.str.2-_reltable.tmp421_detect
	.long	L_.str.3-_reltable.tmp421_detect
	.long	L_.str.4-_reltable.tmp421_detect

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMP421"

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

L_.str.2:                               ## @.str.2
	.asciz	"TMP423"

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

L_.str.4:                               ## @.str.4
	.asciz	"TMP442"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TMP421_MANUFACTURER_ID_REG,4,2 ## @TMP421_MANUFACTURER_ID_REG
	.comm	_TMP421_MANUFACTURER_ID,4,2     ## @TMP421_MANUFACTURER_ID
	.comm	_TMP421_CONVERSION_RATE_REG,4,2 ## @TMP421_CONVERSION_RATE_REG
	.comm	_TMP421_STATUS_REG,4,2          ## @TMP421_STATUS_REG
	.comm	_TMP421_DEVICE_ID_REG,4,2       ## @TMP421_DEVICE_ID_REG
	.comm	_tmp421,4,2                     ## @tmp421
	.comm	_tmp422,4,2                     ## @tmp422
	.comm	_tmp423,4,2                     ## @tmp423
	.comm	_tmp441,4,2                     ## @tmp441
	.comm	_tmp442,4,2                     ## @tmp442
	.comm	_tmp421_id,8,3                  ## @tmp421_id
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"Detected TI %s chip at 0x%02x\n"

	.no_dead_strip	_tmp421_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp421_detect
_tmp421_detect:                         ; @tmp421_detect
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _TMP421_MANUFACTURER_ID_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMP421_MANUFACTURER_ID_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
Lloh6:
	adrp	x8, _TMP421_MANUFACTURER_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMP421_MANUFACTURER_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _TMP421_CONVERSION_RATE_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TMP421_CONVERSION_RATE_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0xf8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _TMP421_STATUS_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TMP421_STATUS_REG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	tst	w0, #0x7f
	b.eq	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
Lloh18:
	adrp	x8, _TMP421_DEVICE_ID_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TMP421_DEVICE_ID_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	sub	w9, w0, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.7:
Lloh21:
	adrp	x8, _tmp421@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tmp421@GOTPAGEOFF]
Lloh23:
	adrp	x10, lJTI0_0@PAGE
Lloh24:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	and	w8, w22, #0xfffffffe
	cmp	w8, #76
	b.ne	LBB0_4
; %bb.9:
Lloh25:
	adrp	x8, _tmp442@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tmp442@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh27:
	adrp	x8, _tmp441@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tmp441@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	and	w8, w22, #0xfffffffe
	cmp	w8, #76
	b.ne	LBB0_4
; %bb.12:
Lloh29:
	adrp	x8, _tmp423@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tmp423@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	cmp	w22, #42
	b.eq	LBB0_4
; %bb.14:
Lloh31:
	adrp	x8, _tmp422@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tmp422@GOTPAGEOFF]
LBB0_15:
	ldr	w22, [x8]
	ldr	w0, [x21]
Lloh33:
	adrp	x8, _tmp421_id@GOTPAGE
Lloh34:
	ldr	x8, [x8, _tmp421_id@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
Lloh36:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_strlcpy
Lloh39:
	adrp	x8, _tmp421_detect.names@PAGE
Lloh40:
	add	x8, x8, _tmp421_detect.names@PAGEOFF
	ldr	x2, [x8, x22, lsl #3]
	ldr	w3, [x20]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @tmp421_detect.names
_tmp421_detect.names:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMP421"

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

l_.str.2:                               ; @.str.2
	.asciz	"TMP423"

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

l_.str.4:                               ; @.str.4
	.asciz	"TMP442"

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TMP421_MANUFACTURER_ID_REG,4,2 ; @TMP421_MANUFACTURER_ID_REG
	.comm	_TMP421_MANUFACTURER_ID,4,2     ; @TMP421_MANUFACTURER_ID
	.comm	_TMP421_CONVERSION_RATE_REG,4,2 ; @TMP421_CONVERSION_RATE_REG
	.comm	_TMP421_STATUS_REG,4,2          ; @TMP421_STATUS_REG
	.comm	_TMP421_DEVICE_ID_REG,4,2       ; @TMP421_DEVICE_ID_REG
	.comm	_tmp421,4,2                     ; @tmp421
	.comm	_tmp422,4,2                     ; @tmp422
	.comm	_tmp423,4,2                     ; @tmp423
	.comm	_tmp441,4,2                     ; @tmp441
	.comm	_tmp442,4,2                     ; @tmp442
	.comm	_tmp421_id,8,3                  ; @tmp421_id
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"Detected TI %s chip at 0x%02x\n"

	.no_dead_strip	_tmp421_detect
.subsections_via_symbols
