	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch5627_update_device
_sch5627_update_device:                 ## @sch5627_update_device
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	32(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_HZ@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	imulq	$300, %rax, %rsi                ## imm = 0x12C
	addq	56(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edx
	movl	48(%r15), %edi
	movq	_SCH5627_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$16, %edx
	callq	_sch56xx_write_virtual_reg
	movq	(%r12), %rdi
	movq	%rdi, 56(%r15)
	jmp	LBB0_3
LBB0_1:
	movq	(%r12), %rdi
LBB0_3:
	movslq	(%r14), %rsi
	addq	40(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_SCH5627_NO_TEMPS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.6:
	xorl	%r12d, %r12d
	movq	_SCH5627_REG_TEMP_LSN@GOTPCREL(%rip), %r13
	movq	_SCH5627_REG_TEMP_HIGH_NIBBLE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%r15), %edi
	movq	_SCH5627_REG_TEMP_MSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %edx
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %ecx
	callq	_sch56xx_read_virtual_reg12
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rax
	movl	%ebx, (%rax,%r12,4)
	incq	%r12
	movq	_SCH5627_NO_TEMPS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_11:
	movq	_SCH5627_NO_FANS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	movq	_SCH5627_REG_FAN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	48(%r15), %edi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg16
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_16:
	movq	_SCH5627_NO_IN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	movq	_SCH5627_REG_IN_LSN@GOTPCREL(%rip), %r13
	movq	_SCH5627_REG_IN_HIGH_NIBBLE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	48(%r15), %edi
	movq	_SCH5627_REG_IN_MSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	callq	_sch56xx_read_virtual_reg12
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	incq	%rbx
	movq	_SCH5627_NO_IN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_20:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r15)
	movl	$1, 4(%r15)
	jmp	LBB0_21
LBB0_4:
	cmpl	$0, 4(%r15)
	jne	LBB0_22
	jmp	LBB0_5
LBB0_14:
	movl	%r12d, %edi
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
LBB0_9:
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SCH5627_REG_CTRL,4,2           ## @SCH5627_REG_CTRL
	.comm	_SCH5627_NO_TEMPS,4,2           ## @SCH5627_NO_TEMPS
	.comm	_SCH5627_REG_TEMP_MSB,8,3       ## @SCH5627_REG_TEMP_MSB
	.comm	_SCH5627_REG_TEMP_LSN,8,3       ## @SCH5627_REG_TEMP_LSN
	.comm	_SCH5627_REG_TEMP_HIGH_NIBBLE,8,3 ## @SCH5627_REG_TEMP_HIGH_NIBBLE
	.comm	_SCH5627_NO_FANS,4,2            ## @SCH5627_NO_FANS
	.comm	_SCH5627_REG_FAN,8,3            ## @SCH5627_REG_FAN
	.comm	_SCH5627_NO_IN,4,2              ## @SCH5627_NO_IN
	.comm	_SCH5627_REG_IN_MSB,8,3         ## @SCH5627_REG_IN_MSB
	.comm	_SCH5627_REG_IN_LSN,8,3         ## @SCH5627_REG_IN_LSN
	.comm	_SCH5627_REG_IN_HIGH_NIBBLE,8,3 ## @SCH5627_REG_IN_HIGH_NIBBLE
	.no_dead_strip	_sch5627_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch5627_update_device
_sch5627_update_device:                 ; @sch5627_update_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x19, x0, #32
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x20, #56]
Lloh2:
	adrp	x21, _HZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
	ldrsw	x9, [x21]
	mov	w10, #300
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #48]
Lloh4:
	adrp	x8, _SCH5627_REG_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCH5627_REG_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x20]
	orr	w2, w8, #0x10
	bl	_sch56xx_write_virtual_reg
	ldr	x0, [x22]
	str	x0, [x20, #56]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x22]
LBB0_3:
	ldr	x8, [x20, #40]
	ldrsw	x9, [x21]
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_18
LBB0_4:
Lloh7:
	adrp	x23, _SCH5627_NO_TEMPS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SCH5627_NO_TEMPS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x24, #0
Lloh9:
	adrp	x25, _SCH5627_REG_TEMP_MSB@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SCH5627_REG_TEMP_MSB@GOTPAGEOFF]
Lloh11:
	adrp	x26, _SCH5627_REG_TEMP_LSN@GOTPAGE
Lloh12:
	ldr	x26, [x26, _SCH5627_REG_TEMP_LSN@GOTPAGEOFF]
Lloh13:
	adrp	x27, _SCH5627_REG_TEMP_HIGH_NIBBLE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _SCH5627_REG_TEMP_HIGH_NIBBLE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #48]
	ldr	x8, [x25]
	lsl	x9, x24, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x26]
	ldr	w2, [x8, x9]
	ldr	x8, [x27]
	ldr	w3, [x8, x9]
	bl	_sch56xx_read_virtual_reg12
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	str	w21, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_8:
Lloh15:
	adrp	x23, _SCH5627_NO_FANS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SCH5627_NO_FANS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x24, #0
Lloh17:
	adrp	x25, _SCH5627_REG_FAN@GOTPAGE
Lloh18:
	ldr	x25, [x25, _SCH5627_REG_FAN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #48]
	ldr	x8, [x25]
	ldr	w1, [x8, x24, lsl #2]
	bl	_sch56xx_read_virtual_reg16
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	str	w21, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_10
LBB0_12:
Lloh19:
	adrp	x23, _SCH5627_NO_IN@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SCH5627_NO_IN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x24, #0
Lloh21:
	adrp	x25, _SCH5627_REG_IN_MSB@GOTPAGE
Lloh22:
	ldr	x25, [x25, _SCH5627_REG_IN_MSB@GOTPAGEOFF]
Lloh23:
	adrp	x26, _SCH5627_REG_IN_LSN@GOTPAGE
Lloh24:
	ldr	x26, [x26, _SCH5627_REG_IN_LSN@GOTPAGEOFF]
Lloh25:
	adrp	x27, _SCH5627_REG_IN_HIGH_NIBBLE@GOTPAGE
Lloh26:
	ldr	x27, [x27, _SCH5627_REG_IN_HIGH_NIBBLE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #48]
	ldr	x8, [x25]
	lsl	x9, x24, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x26]
	ldr	w2, [x8, x9]
	ldr	x8, [x27]
	ldr	w3, [x8, x9]
	bl	_sch56xx_read_virtual_reg12
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20, #24]
	str	w21, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_14
LBB0_16:
	ldr	x8, [x22]
	str	x8, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #4]
	b	LBB0_19
LBB0_17:
	mov	x0, x21
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_19
LBB0_18:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SCH5627_REG_CTRL,4,2           ; @SCH5627_REG_CTRL
	.comm	_SCH5627_NO_TEMPS,4,2           ; @SCH5627_NO_TEMPS
	.comm	_SCH5627_REG_TEMP_MSB,8,3       ; @SCH5627_REG_TEMP_MSB
	.comm	_SCH5627_REG_TEMP_LSN,8,3       ; @SCH5627_REG_TEMP_LSN
	.comm	_SCH5627_REG_TEMP_HIGH_NIBBLE,8,3 ; @SCH5627_REG_TEMP_HIGH_NIBBLE
	.comm	_SCH5627_NO_FANS,4,2            ; @SCH5627_NO_FANS
	.comm	_SCH5627_REG_FAN,8,3            ; @SCH5627_REG_FAN
	.comm	_SCH5627_NO_IN,4,2              ; @SCH5627_NO_IN
	.comm	_SCH5627_REG_IN_MSB,8,3         ; @SCH5627_REG_IN_MSB
	.comm	_SCH5627_REG_IN_LSN,8,3         ; @SCH5627_REG_IN_LSN
	.comm	_SCH5627_REG_IN_HIGH_NIBBLE,8,3 ; @SCH5627_REG_IN_HIGH_NIBBLE
	.no_dead_strip	_sch5627_update_device
.subsections_via_symbols
