	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch5636_update_device
_sch5636_update_device:                 ## @sch5636_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	48(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r15), %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_25
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_SCH5636_NO_INS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SCH5636_REG_IN_VAL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	64(%r15), %edi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	movq	_SCH5636_NO_TEMPS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.8:
	xorl	%ebx, %ebx
	movq	_SCH5636_TEMP_DEACTIVATED@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%r13), %ecx
	testl	%ecx, (%rax,%rbx,4)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	64(%r15), %edi
	movq	_SCH5636_REG_TEMP_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_sch56xx_read_virtual_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	movl	64(%r15), %r12d
	movl	%ebx, %edi
	callq	_SCH5636_REG_TEMP_CTRL
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_sch56xx_read_virtual_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	movq	_SCH5636_TEMP_ALARM@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %r14
	movl	64(%r15), %r13d
	movl	%ebx, %edi
	callq	_SCH5636_REG_TEMP_CTRL
	movl	%r13d, %edi
	movq	%r14, %r13
	movq	_SCH5636_NO_TEMPS@GOTPCREL(%rip), %r14
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_sch56xx_write_virtual_reg
	jmp	LBB0_14
LBB0_15:
	movq	_SCH5636_NO_FANS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.16:
	xorl	%ebx, %ebx
	movq	_SCH5636_FAN_DEACTIVATED@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%r13), %ecx
	testl	%ecx, (%rax,%rbx,4)
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	64(%r15), %edi
	movq	_SCH5636_REG_FAN_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %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_5
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	40(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	movl	64(%r15), %r12d
	movl	%ebx, %edi
	callq	_SCH5636_REG_FAN_CTRL
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_sch56xx_read_virtual_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	32(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	movq	_SCH5636_FAN_ALARM@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %r14
	movl	64(%r15), %r13d
	movl	%ebx, %edi
	callq	_SCH5636_REG_FAN_CTRL
	movl	%r13d, %edi
	movq	%r14, %r13
	movq	_SCH5636_NO_FANS@GOTPCREL(%rip), %r14
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_sch56xx_write_virtual_reg
	jmp	LBB0_22
LBB0_5:
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
	jmp	LBB0_24
LBB0_23:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
	movl	$1, (%r15)
LBB0_24:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	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,8,3                         ## @HZ
	.comm	_SCH5636_NO_INS,4,2             ## @SCH5636_NO_INS
	.comm	_SCH5636_REG_IN_VAL,8,3         ## @SCH5636_REG_IN_VAL
	.comm	_SCH5636_NO_TEMPS,4,2           ## @SCH5636_NO_TEMPS
	.comm	_SCH5636_TEMP_DEACTIVATED,4,2   ## @SCH5636_TEMP_DEACTIVATED
	.comm	_SCH5636_REG_TEMP_VAL,8,3       ## @SCH5636_REG_TEMP_VAL
	.comm	_SCH5636_TEMP_ALARM,4,2         ## @SCH5636_TEMP_ALARM
	.comm	_SCH5636_NO_FANS,4,2            ## @SCH5636_NO_FANS
	.comm	_SCH5636_FAN_DEACTIVATED,4,2    ## @SCH5636_FAN_DEACTIVATED
	.comm	_SCH5636_REG_FAN_VAL,8,3        ## @SCH5636_REG_FAN_VAL
	.comm	_SCH5636_FAN_ALARM,4,2          ## @SCH5636_FAN_ALARM
	.no_dead_strip	_sch5636_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch5636_update_device
_sch5636_update_device:                 ; @sch5636_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, #48
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x20, #56]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	w0, LBB0_26
LBB0_2:
Lloh6:
	adrp	x22, _SCH5636_NO_INS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SCH5636_NO_INS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
Lloh8:
	adrp	x24, _SCH5636_REG_IN_VAL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SCH5636_REG_IN_VAL@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #64]
	ldr	x8, [x24]
	ldr	w1, [x8, x23, lsl #2]
	bl	_sch56xx_read_virtual_reg
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	str	w21, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_6:
Lloh10:
	adrp	x24, _SCH5636_NO_TEMPS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SCH5636_NO_TEMPS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	mov	x21, #0
Lloh12:
	adrp	x25, _SCH5636_TEMP_DEACTIVATED@GOTPAGE
Lloh13:
	ldr	x25, [x25, _SCH5636_TEMP_DEACTIVATED@GOTPAGEOFF]
Lloh14:
	adrp	x26, _SCH5636_REG_TEMP_VAL@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SCH5636_REG_TEMP_VAL@GOTPAGEOFF]
Lloh16:
	adrp	x27, _SCH5636_TEMP_ALARM@GOTPAGE
Lloh17:
	ldr	x27, [x27, _SCH5636_TEMP_ALARM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x21, lsl #2]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, #64]
	ldr	x8, [x26]
	ldr	w1, [x8, x21, lsl #2]
	bl	_sch56xx_read_virtual_reg
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #24]
	str	w22, [x8, x21, lsl #2]
	ldr	w22, [x20, #64]
	mov	x0, x21
	bl	_SCH5636_REG_TEMP_CTRL
	mov	x1, x0
	mov	x0, x22
	bl	_sch56xx_read_virtual_reg
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	str	w22, [x8, x21, lsl #2]
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w23, [x20, #64]
	mov	x0, x21
	bl	_SCH5636_REG_TEMP_CTRL
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_sch56xx_write_virtual_reg
	b	LBB0_8
LBB0_14:
Lloh18:
	adrp	x24, _SCH5636_NO_FANS@GOTPAGE
Lloh19:
	ldr	x24, [x24, _SCH5636_NO_FANS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.15:
	mov	x21, #0
Lloh20:
	adrp	x25, _SCH5636_FAN_DEACTIVATED@GOTPAGE
Lloh21:
	ldr	x25, [x25, _SCH5636_FAN_DEACTIVATED@GOTPAGEOFF]
Lloh22:
	adrp	x26, _SCH5636_REG_FAN_VAL@GOTPAGE
Lloh23:
	ldr	x26, [x26, _SCH5636_REG_FAN_VAL@GOTPAGEOFF]
Lloh24:
	adrp	x27, _SCH5636_FAN_ALARM@GOTPAGE
Lloh25:
	ldr	x27, [x27, _SCH5636_FAN_ALARM@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.ge	LBB0_22
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x21, lsl #2]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x20, #64]
	ldr	x8, [x26]
	ldr	w1, [x8, x21, lsl #2]
	bl	_sch56xx_read_virtual_reg16
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #40]
	str	w22, [x8, x21, lsl #2]
	ldr	w22, [x20, #64]
	mov	x0, x21
	bl	_SCH5636_REG_FAN_CTRL
	mov	x1, x0
	mov	x0, x22
	bl	_sch56xx_read_virtual_reg
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x20, #32]
	str	w22, [x8, x21, lsl #2]
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w23, [x20, #64]
	mov	x0, x21
	bl	_SCH5636_REG_FAN_CTRL
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_sch56xx_write_virtual_reg
	b	LBB0_16
LBB0_22:
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x20, #56]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_26
LBB0_23:
	mov	x0, x21
	b	LBB0_25
LBB0_24:
	mov	x0, x22
LBB0_25:
	bl	_ERR_PTR
	mov	x20, x0
LBB0_26:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_SCH5636_NO_INS,4,2             ; @SCH5636_NO_INS
	.comm	_SCH5636_REG_IN_VAL,8,3         ; @SCH5636_REG_IN_VAL
	.comm	_SCH5636_NO_TEMPS,4,2           ; @SCH5636_NO_TEMPS
	.comm	_SCH5636_TEMP_DEACTIVATED,4,2   ; @SCH5636_TEMP_DEACTIVATED
	.comm	_SCH5636_REG_TEMP_VAL,8,3       ; @SCH5636_REG_TEMP_VAL
	.comm	_SCH5636_TEMP_ALARM,4,2         ; @SCH5636_TEMP_ALARM
	.comm	_SCH5636_NO_FANS,4,2            ; @SCH5636_NO_FANS
	.comm	_SCH5636_FAN_DEACTIVATED,4,2    ; @SCH5636_FAN_DEACTIVATED
	.comm	_SCH5636_REG_FAN_VAL,8,3        ; @SCH5636_REG_FAN_VAL
	.comm	_SCH5636_FAN_ALARM,4,2          ; @SCH5636_FAN_ALARM
	.no_dead_strip	_sch5636_update_device
.subsections_via_symbols
