	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_write_on_data_complete
_cs_hsi_write_on_data_complete:         ## @cs_hsi_write_on_data_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	_HSI_STATUS_COMPLETED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SSI_CHANNEL_STATE_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_waitqueue_active
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_wake_up_interruptible
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_4:
	movq	%rdi, %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cs_hsi_data_write_error        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_STATUS_COMPLETED,8,3       ## @HSI_STATUS_COMPLETED
	.comm	_SSI_CHANNEL_STATE_WRITING,4,2  ## @SSI_CHANNEL_STATE_WRITING
	.no_dead_strip	_cs_hsi_write_on_data_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_write_on_data_complete
_cs_hsi_write_on_data_complete:         ; @cs_hsi_write_on_data_complete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _HSI_STATUS_COMPLETED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_STATUS_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_spin_lock
Lloh3:
	adrp	x8, _SSI_CHANNEL_STATE_WRITING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSI_CHANNEL_STATE_WRITING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_waitqueue_active
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_wake_up_interruptible
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_4:
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cs_hsi_data_write_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_STATUS_COMPLETED,8,3       ; @HSI_STATUS_COMPLETED
	.comm	_SSI_CHANNEL_STATE_WRITING,4,2  ; @SSI_CHANNEL_STATE_WRITING
	.no_dead_strip	_cs_hsi_write_on_data_complete
.subsections_via_symbols
