	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsicm_update
_dsicm_update:                          ## @dsicm_update
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	callq	_to_panel_data
	movq	%rax, %r15
	movq	48(%rax), %rdi
	movq	56(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	%r15, %rdi
	callq	_dsicm_wake_up
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 40(%r15)
	je	LBB0_2
## %bb.4:
	movl	32(%r15), %r8d
	movl	36(%r15), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_dsicm_set_update_window
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.7:
	leaq	12(%r15), %rbx
	movl	$250, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	movq	%r15, %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_atomic_set
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_8:
	movq	(%r14), %rax
	movl	4(%r15), %esi
	movq	_dsicm_framedone_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update %d, %d, %d x %d\n"

	.comm	_dsicm_framedone_cb,4,2         ## @dsicm_framedone_cb
	.no_dead_strip	_dsicm_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsicm_update
_dsicm_update:                          ; @dsicm_update
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	bl	_to_panel_data
	mov	x19, x0
	ldp	x0, x20, [x0, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_dev_dbg
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_dsicm_wake_up
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_1:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	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
LBB0_3:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_8
; %bb.4:
	ldp	w4, w3, [x19, #32]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_dsicm_set_update_window
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	add	x20, x19, #12
	mov	w0, #250
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_schedule_delayed_work
	add	x0, x19, #8
	mov	w1, #1
	bl	_atomic_set
	mov	w21, #0
	b	LBB0_2
LBB0_8:
	mov	w21, #0
	b	LBB0_1
LBB0_9:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x19, #4]
Lloh2:
	adrp	x9, _dsicm_framedone_cb@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dsicm_framedone_cb@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x3, x19
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_1
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update %d, %d, %d x %d\n"

	.comm	_dsicm_framedone_cb,4,2         ; @dsicm_framedone_cb
	.no_dead_strip	_dsicm_update
.subsections_via_symbols
