	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7x10_fill_cache
_adt7x10_fill_cache:                    ## @adt7x10_fill_cache
	.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	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.1:
	movl	$1, %ebx
	movq	_ADT7X10_REG_TEMP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_adt7x10_read_word
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	movl	%r12d, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	_ADT7X10_T_HYST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_adt7x10_read_byte
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	%r12d, 8(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_3:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %edx
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_dev_dbg
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADT7X10_REG_TEMP,8,3           ## @ADT7X10_REG_TEMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read value: reg %d, error %d\n"

	.comm	_ADT7X10_T_HYST,4,2             ## @ADT7X10_T_HYST
	.no_dead_strip	_adt7x10_fill_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7x10_fill_cache
_adt7x10_fill_cache:                    ; @adt7x10_fill_cache
	.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, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #1
Lloh0:
	adrp	x23, _ADT7X10_REG_TEMP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADT7X10_REG_TEMP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_adt7x10_read_word
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20]
	str	w21, [x0, x22, lsl #2]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x22, _ADT7X10_T_HYST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ADT7X10_T_HYST@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_adt7x10_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:
	str	w21, [x20, #8]
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	ldr	x8, [x23]
	ldr	w2, [x8, x22, lsl #2]
	b	LBB0_8
LBB0_7:
	ldr	w2, [x22]
LBB0_8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_dev_dbg
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADT7X10_REG_TEMP,8,3           ; @ADT7X10_REG_TEMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read value: reg %d, error %d\n"

	.comm	_ADT7X10_T_HYST,4,2             ; @ADT7X10_T_HYST
	.no_dead_strip	_adt7x10_fill_cache
.subsections_via_symbols
