	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm63_detect
_lm63_detect:                           ## @lm63_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
	subq	$24, %rsp
	.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, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jns	LBB0_10
## %bb.3:
	movq	_LM63_REG_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_LM63_REG_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LM63_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_LM63_REG_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	_LM63_REG_ALERT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	movq	_LM63_REG_ALERT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	$1, %edx
	jne	LBB0_9
## %bb.4:
	cmpl	$65, %ecx
	jne	LBB0_9
## %bb.5:
	andl	$24, -48(%rbp)                  ## 4-byte Folded Spill
	jne	LBB0_9
## %bb.6:
	andl	$248, %ebx
	jne	LBB0_9
## %bb.7:
	andl	$32, %r15d
	jne	LBB0_9
## %bb.8:
	andl	$164, %eax
	cmpl	$164, %eax
	jne	LBB0_9
LBB0_10:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_LM63_REG_MAN_ID,4,2            ## @LM63_REG_MAN_ID
	.comm	_LM63_REG_CHIP_ID,4,2           ## @LM63_REG_CHIP_ID
	.comm	_LM63_REG_CONFIG1,4,2           ## @LM63_REG_CONFIG1
	.comm	_LM63_REG_CONFIG2,4,2           ## @LM63_REG_CONFIG2
	.comm	_LM63_REG_ALERT_STATUS,4,2      ## @LM63_REG_ALERT_STATUS
	.comm	_LM63_REG_ALERT_MASK,4,2        ## @LM63_REG_ALERT_MASK
	.comm	_lm63,4,2                       ## @lm63
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported chip (man_id=0x%02X, chip_id=0x%02X).\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm63_detect
_lm63_detect:                           ; @lm63_detect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x19, [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_7
; %bb.1:
	tbz	w21, #31, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _LM63_REG_MAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM63_REG_MAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
Lloh6:
	adrp	x8, _LM63_REG_CHIP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LM63_REG_CHIP_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh9:
	adrp	x8, _LM63_REG_CONFIG1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LM63_REG_CONFIG1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x24, x0
Lloh12:
	adrp	x8, _LM63_REG_CONFIG2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LM63_REG_CONFIG2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x25, x0
Lloh15:
	adrp	x8, _LM63_REG_ALERT_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LM63_REG_ALERT_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x26, x0
Lloh18:
	adrp	x8, _LM63_REG_ALERT_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LM63_REG_ALERT_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
	and	w8, w24, #0x18
	and	w9, w25, #0xf8
	and	w10, w26, #0x20
	cmp	w22, #65
	ccmp	w8, #0, #0, eq
	ccmp	w9, #0, #0, eq
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_6
; %bb.4:
	mov	w8, #164
	and	w8, w0, w8
	cmp	w8, #164
	b.ne	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
LBB0_7:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LM63_REG_MAN_ID,4,2            ; @LM63_REG_MAN_ID
	.comm	_LM63_REG_CHIP_ID,4,2           ; @LM63_REG_CHIP_ID
	.comm	_LM63_REG_CONFIG1,4,2           ; @LM63_REG_CONFIG1
	.comm	_LM63_REG_CONFIG2,4,2           ; @LM63_REG_CONFIG2
	.comm	_LM63_REG_ALERT_STATUS,4,2      ; @LM63_REG_ALERT_STATUS
	.comm	_LM63_REG_ALERT_MASK,4,2        ; @LM63_REG_ALERT_MASK
	.comm	_lm63,4,2                       ; @lm63
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported chip (man_id=0x%02X, chip_id=0x%02X).\n"

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

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