	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch5627_read_limits
_sch5627_read_limits:                   ## @sch5627_read_limits
	.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, %r15
	movq	_SCH5627_NO_TEMPS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SCH5627_REG_TEMP_ABS@GOTPCREL(%rip), %r12
	movq	_SCH5627_REG_TEMP_HIGH@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	24(%r15), %edi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	_SCH5627_NO_FANS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	_SCH5627_REG_FAN_MIN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg16
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCH5627_NO_TEMPS,4,2           ## @SCH5627_NO_TEMPS
	.comm	_SCH5627_REG_TEMP_ABS,8,3       ## @SCH5627_REG_TEMP_ABS
	.comm	_SCH5627_REG_TEMP_HIGH,8,3      ## @SCH5627_REG_TEMP_HIGH
	.comm	_SCH5627_NO_FANS,4,2            ## @SCH5627_NO_FANS
	.comm	_SCH5627_REG_FAN_MIN,8,3        ## @SCH5627_REG_FAN_MIN
	.no_dead_strip	_sch5627_read_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch5627_read_limits
_sch5627_read_limits:                   ; @sch5627_read_limits
	.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
Lloh0:
	adrp	x20, _SCH5627_NO_TEMPS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SCH5627_NO_TEMPS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _SCH5627_REG_TEMP_ABS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SCH5627_REG_TEMP_ABS@GOTPAGEOFF]
Lloh4:
	adrp	x23, _SCH5627_REG_TEMP_HIGH@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SCH5627_REG_TEMP_HIGH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	bl	_sch56xx_read_virtual_reg
	tbnz	w0, #31, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	lsl	x9, x21, #2
	str	w0, [x8, x9]
	ldr	w0, [x19, #24]
	ldr	x8, [x23]
	ldr	w1, [x8, x9]
	bl	_sch56xx_read_virtual_reg
	tbnz	w0, #31, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_5:
Lloh6:
	adrp	x20, _SCH5627_NO_FANS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SCH5627_NO_FANS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
Lloh8:
	adrp	x22, _SCH5627_REG_FAN_MIN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SCH5627_REG_FAN_MIN@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	bl	_sch56xx_read_virtual_reg16
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SCH5627_NO_TEMPS,4,2           ; @SCH5627_NO_TEMPS
	.comm	_SCH5627_REG_TEMP_ABS,8,3       ; @SCH5627_REG_TEMP_ABS
	.comm	_SCH5627_REG_TEMP_HIGH,8,3      ; @SCH5627_REG_TEMP_HIGH
	.comm	_SCH5627_NO_FANS,4,2            ; @SCH5627_NO_FANS
	.comm	_SCH5627_REG_FAN_MIN,8,3        ; @SCH5627_REG_FAN_MIN
	.no_dead_strip	_sch5627_read_limits
.subsections_via_symbols
