	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp401_detect
_tmp401_detect:                         ## @tmp401_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movq	_TMP401_MANUFACTURER_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_TMP401_MANUFACTURER_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.2:
	movq	_TMP401_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	$6, %eax
	ja	LBB0_18
## %bb.3:
	movq	_tmp435@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_4:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$76, %eax
	jne	LBB0_18
## %bb.5:
	movq	_tmp432@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_6:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$76, %eax
	jne	LBB0_18
## %bb.7:
	movq	_tmp431@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_8:
	cmpl	$78, (%rbx)
	je	LBB0_13
	jmp	LBB0_18
LBB0_10:
	cmpl	$77, (%rbx)
	je	LBB0_13
	jmp	LBB0_18
LBB0_12:
	cmpl	$76, (%rbx)
	jne	LBB0_18
LBB0_13:
	movq	_tmp411@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	cmpl	$76, (%rbx)
	jne	LBB0_18
## %bb.15:
	movq	_tmp401@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %r15d
	movq	_TMP401_CONFIG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$27, %al
	jne	LBB0_18
## %bb.17:
	movq	_TMP401_CONVERSION_RATE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$16, %eax
	jl	LBB0_20
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	(%r14), %edi
	movq	_tmp401_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TMP401_MANUFACTURER_ID_REG,4,2 ## @TMP401_MANUFACTURER_ID_REG
	.comm	_TMP401_MANUFACTURER_ID,4,2     ## @TMP401_MANUFACTURER_ID
	.comm	_TMP401_DEVICE_ID_REG,4,2       ## @TMP401_DEVICE_ID_REG
	.comm	_tmp401,4,2                     ## @tmp401
	.comm	_tmp411,4,2                     ## @tmp411
	.comm	_tmp431,4,2                     ## @tmp431
	.comm	_tmp432,4,2                     ## @tmp432
	.comm	_tmp435,4,2                     ## @tmp435
	.comm	_TMP401_CONFIG_READ,4,2         ## @TMP401_CONFIG_READ
	.comm	_TMP401_CONVERSION_RATE_READ,4,2 ## @TMP401_CONVERSION_RATE_READ
	.comm	_tmp401_id,8,3                  ## @tmp401_id
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_tmp401_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp401_detect
_tmp401_detect:                         ; @tmp401_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	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
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_16
; %bb.1:
Lloh3:
	adrp	x8, _TMP401_MANUFACTURER_ID_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMP401_MANUFACTURER_ID_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
Lloh6:
	adrp	x8, _TMP401_MANUFACTURER_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMP401_MANUFACTURER_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.2:
Lloh9:
	adrp	x8, _TMP401_DEVICE_ID_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TMP401_DEVICE_ID_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	sub	w9, w0, #128
	cmp	w9, #6
	b.hi	LBB0_16
; %bb.3:
Lloh12:
	adrp	x8, _tmp435@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tmp435@GOTPAGEOFF]
Lloh14:
	adrp	x10, lJTI0_0@PAGE
Lloh15:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #76
	b.ne	LBB0_16
; %bb.5:
Lloh16:
	adrp	x8, _tmp432@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tmp432@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #76
	b.ne	LBB0_16
; %bb.7:
Lloh18:
	adrp	x8, _tmp431@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tmp431@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, #78
	b.eq	LBB0_11
	b	LBB0_16
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #77
	b.eq	LBB0_11
	b	LBB0_16
LBB0_10:
	ldr	w8, [x20]
	cmp	w8, #76
	b.ne	LBB0_16
LBB0_11:
Lloh20:
	adrp	x8, _tmp411@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tmp411@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	ldr	w8, [x20]
	cmp	w8, #76
	b.ne	LBB0_16
; %bb.13:
Lloh22:
	adrp	x8, _tmp401@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tmp401@GOTPAGEOFF]
LBB0_14:
	ldr	w21, [x8]
Lloh24:
	adrp	x8, _TMP401_CONFIG_READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TMP401_CONFIG_READ@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	w8, #27
	tst	w0, w8
	b.ne	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _TMP401_CONVERSION_RATE_READ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TMP401_CONVERSION_RATE_READ@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #16
	b.lt	LBB0_18
LBB0_16:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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_18:
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _tmp401_id@GOTPAGE
Lloh34:
	ldr	x8, [x8, _tmp401_id@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w1, [x8, x21, lsl #2]
Lloh36:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TMP401_MANUFACTURER_ID_REG,4,2 ; @TMP401_MANUFACTURER_ID_REG
	.comm	_TMP401_MANUFACTURER_ID,4,2     ; @TMP401_MANUFACTURER_ID
	.comm	_TMP401_DEVICE_ID_REG,4,2       ; @TMP401_DEVICE_ID_REG
	.comm	_tmp401,4,2                     ; @tmp401
	.comm	_tmp411,4,2                     ; @tmp411
	.comm	_tmp431,4,2                     ; @tmp431
	.comm	_tmp432,4,2                     ; @tmp432
	.comm	_tmp435,4,2                     ; @tmp435
	.comm	_TMP401_CONFIG_READ,4,2         ; @TMP401_CONFIG_READ
	.comm	_TMP401_CONVERSION_RATE_READ,4,2 ; @TMP401_CONVERSION_RATE_READ
	.comm	_tmp401_id,8,3                  ; @tmp401_id
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_tmp401_detect
.subsections_via_symbols
