	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7411_detect
_adt7411_detect:                        ## @adt7411_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	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	_ADT7411_REG_MANUFACTURER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_ADT7411_MANUFACTURER_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.6:
	movq	_ADT7411_REG_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_ADT7411_DEVICE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	cmpl	%ecx, %eax
	jne	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ADT7411_REG_MANUFACTURER_ID,4,2 ## @ADT7411_REG_MANUFACTURER_ID
	.comm	_ADT7411_MANUFACTURER_ID,4,2    ## @ADT7411_MANUFACTURER_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong manufacturer ID. Got %d, expected %d\n"

	.comm	_ADT7411_REG_DEVICE_ID,4,2      ## @ADT7411_REG_DEVICE_ID
	.comm	_ADT7411_DEVICE_ID,4,2          ## @ADT7411_DEVICE_ID
L_.str.1:                               ## @.str.1
	.asciz	"Wrong device ID. Got %d, expected %d\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_adt7411_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7411_detect
_adt7411_detect:                        ; @adt7411_detect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
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_9
; %bb.1:
Lloh3:
	adrp	x8, _ADT7411_REG_MANUFACTURER_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADT7411_REG_MANUFACTURER_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
Lloh6:
	adrp	x8, _ADT7411_MANUFACTURER_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADT7411_MANUFACTURER_ID@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	tbnz	w0, #31, LBB0_6
; %bb.2:
	cmp	w2, w3
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _ADT7411_REG_DEVICE_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADT7411_REG_DEVICE_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x2, x0
Lloh12:
	adrp	x8, _ADT7411_DEVICE_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADT7411_DEVICE_ID@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	tbnz	w0, #31, LBB0_7
; %bb.4:
	cmp	w2, w3
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_dbg
LBB0_9:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ADT7411_REG_MANUFACTURER_ID,4,2 ; @ADT7411_REG_MANUFACTURER_ID
	.comm	_ADT7411_MANUFACTURER_ID,4,2    ; @ADT7411_MANUFACTURER_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong manufacturer ID. Got %d, expected %d\n"

	.comm	_ADT7411_REG_DEVICE_ID,4,2      ; @ADT7411_REG_DEVICE_ID
	.comm	_ADT7411_DEVICE_ID,4,2          ; @ADT7411_DEVICE_ID
l_.str.1:                               ; @.str.1
	.asciz	"Wrong device ID. Got %d, expected %d\n"

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

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_adt7411_detect
.subsections_via_symbols
