	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95241_detect
_lm95241_detect:                        ## @lm95241_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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	(%rdi), %r13d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.6:
	jne	LBB0_11
	jmp	LBB0_7
LBB0_3:
	movq	_LM95241_REG_R_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_MANUFACTURER_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_LM95241_REG_R_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_DEFAULT_REVISION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_LM95241_REG_R_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_MANUFACTURER_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	_LM95241_REG_R_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_DEFAULT_REVISION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.9:
	movq	_lm95241@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_10
LBB0_11:
	movq	_lm95241@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LM95241_REG_R_MAN_ID,4,2       ## @LM95241_REG_R_MAN_ID
	.comm	_MANUFACTURER_ID,8,3            ## @MANUFACTURER_ID
	.comm	_LM95241_REG_R_CHIP_ID,4,2      ## @LM95241_REG_R_CHIP_ID
	.comm	_DEFAULT_REVISION,8,3           ## @DEFAULT_REVISION
L_.str.1:                               ## @.str.1
	.asciz	"LM95241 detection failed at 0x%02x.\n"

	.comm	_lm95241,4,2                    ## @lm95241
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported chip\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95241_detect
_lm95241_detect:                        ; @lm95241_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, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	ldr	w23, [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, x21
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
	tbnz	w20, #31, LBB0_3
; %bb.2:
	cbnz	w20, LBB0_10
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _LM95241_REG_R_MAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM95241_REG_R_MAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_read_byte_data
Lloh6:
	adrp	x8, _MANUFACTURER_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MANUFACTURER_ID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _LM95241_REG_R_CHIP_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LM95241_REG_R_CHIP_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_read_byte_data
Lloh12:
	adrp	x8, _DEFAULT_REVISION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFAULT_REVISION@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_7
LBB0_5:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_dbg
LBB0_6:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _LM95241_REG_R_MAN_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM95241_REG_R_MAN_ID@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_read_byte_data
Lloh23:
	adrp	x8, _MANUFACTURER_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MANUFACTURER_ID@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
Lloh26:
	adrp	x8, _LM95241_REG_R_CHIP_ID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LM95241_REG_R_CHIP_ID@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_smbus_read_byte_data
Lloh29:
	adrp	x8, _DEFAULT_REVISION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DEFAULT_REVISION@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_10
; %bb.9:
Lloh32:
	adrp	x8, _lm95241@GOTPAGE
Lloh33:
	ldr	x8, [x8, _lm95241@GOTPAGEOFF]
Lloh34:
	ldr	w20, [x8]
	cmp	w20, #0
	b.le	LBB0_12
LBB0_10:
Lloh35:
	adrp	x8, _lm95241@GOTPAGE
Lloh36:
	ldr	x8, [x8, _lm95241@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, l_.str@PAGE
Lloh39:
	add	x9, x9, l_.str@PAGEOFF
Lloh40:
	adrp	x10, l_.str.3@PAGE
Lloh41:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w20, w8
	csel	x1, x10, x9, eq
	ldr	w0, [x19]
Lloh42:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
LBB0_11:
	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_12:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	b	LBB0_6
	.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	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LM95241_REG_R_MAN_ID,4,2       ; @LM95241_REG_R_MAN_ID
	.comm	_MANUFACTURER_ID,8,3            ; @MANUFACTURER_ID
	.comm	_LM95241_REG_R_CHIP_ID,4,2      ; @LM95241_REG_R_CHIP_ID
	.comm	_DEFAULT_REVISION,8,3           ; @DEFAULT_REVISION
l_.str.1:                               ; @.str.1
	.asciz	"LM95241 detection failed at 0x%02x.\n"

	.comm	_lm95241,4,2                    ; @lm95241
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported chip\n"

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

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