	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1029_detect
_adm1029_detect:                        ## @adm1029_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	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	_ADM1029_REG_MAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_ADM1029_REG_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	movq	_ADM1029_REG_TEMP_DEVICES_INSTALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	movq	_ADM1029_REG_NB_FAN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$65, %r13d
	jne	LBB0_1
## %bb.3:
	andl	$249, %r12d
	cmpl	$1, %r12d
	jne	LBB0_1
## %bb.4:
	cmpl	$3, %eax
	jne	LBB0_1
## %bb.5:
	testb	$-16, %r15b
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_info
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	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_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ADM1029_REG_MAN_ID,4,2         ## @ADM1029_REG_MAN_ID
	.comm	_ADM1029_REG_CHIP_ID,4,2        ## @ADM1029_REG_CHIP_ID
	.comm	_ADM1029_REG_TEMP_DEVICES_INSTALLED,4,2 ## @ADM1029_REG_TEMP_DEVICES_INSTALLED
	.comm	_ADM1029_REG_NB_FAN_SUPPORT,4,2 ## @ADM1029_REG_NB_FAN_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown major revision %x, please let us know\n"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1029_detect
_adm1029_detect:                        ; @adm1029_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, x1
	mov	x20, x0
	ldr	x0, [x0]
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_2
; %bb.1:
Lloh3:
	adrp	x8, _ADM1029_REG_MAN_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADM1029_REG_MAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh6:
	adrp	x8, _ADM1029_REG_CHIP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADM1029_REG_CHIP_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
Lloh9:
	adrp	x8, _ADM1029_REG_TEMP_DEVICES_INSTALLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADM1029_REG_TEMP_DEVICES_INSTALLED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
Lloh12:
	adrp	x8, _ADM1029_REG_NB_FAN_SUPPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADM1029_REG_NB_FAN_SUPPORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	cmp	w22, #65
	mov	w8, #249
	and	w8, w23, w8
	ccmp	w8, #1, #0, eq
	ccmp	w0, #3, #0, eq
	b.eq	LBB0_4
LBB0_2:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	tst	w21, #0xf0
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_info
	b	LBB0_2
LBB0_6:
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ADM1029_REG_MAN_ID,4,2         ; @ADM1029_REG_MAN_ID
	.comm	_ADM1029_REG_CHIP_ID,4,2        ; @ADM1029_REG_CHIP_ID
	.comm	_ADM1029_REG_TEMP_DEVICES_INSTALLED,4,2 ; @ADM1029_REG_TEMP_DEVICES_INSTALLED
	.comm	_ADM1029_REG_NB_FAN_SUPPORT,4,2 ; @ADM1029_REG_NB_FAN_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown major revision %x, please let us know\n"

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

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