	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_read_on_data_complete
_cs_hsi_read_on_data_complete:          ## @cs_hsi_read_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	_HSI_STATUS_ERROR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs_hsi_data_read_error         ## TAILCALL
LBB0_1:
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_SSI_CHANNEL_STATE_READING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	xorl	%edi, %edi
	andl	(%r12), %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	_CS_RX_DATA_RECEIVED@GOTPCREL(%rip), %rcx
	movl	16(%r12), %eax
	movl	(%rcx), %r15d
	orl	%eax, %r15d
	incl	%eax
	cltd
	idivl	32(%r12)
	movl	%edx, 16(%r12)
	movq	24(%r12), %rax
	movl	%edx, (%rax)
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_waitqueue_active
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	4(%r12), %esi
	movl	%r15d, %edi
	callq	_cs_notify_data
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs_hsi_read_on_data            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ## @HSI_STATUS_ERROR
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ## @SSI_CHANNEL_STATE_READING
	.comm	_CS_RX_DATA_RECEIVED,4,2        ## @CS_RX_DATA_RECEIVED
	.no_dead_strip	_cs_hsi_read_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_read_on_data_complete
_cs_hsi_read_on_data_complete:          ; @cs_hsi_read_on_data_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _HSI_STATUS_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_STATUS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cs_hsi_data_read_error
LBB0_2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _SSI_CHANNEL_STATE_READING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SSI_CHANNEL_STATE_READING@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh5:
	adrp	x9, _CS_RX_DATA_RECEIVED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CS_RX_DATA_RECEIVED@GOTPAGEOFF]
	str	w8, [x19]
Lloh7:
	ldr	w8, [x9]
	ldr	w9, [x19, #16]
	orr	w21, w9, w8
	add	w8, w9, #1
	ldr	w9, [x19, #32]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #16]
	ldr	x9, [x19, #24]
	str	w8, [x9]
	add	x22, x19, #12
	mov	x0, x22
	bl	_waitqueue_active
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_wake_up_interruptible
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_cs_notify_data
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cs_hsi_read_on_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ; @HSI_STATUS_ERROR
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ; @SSI_CHANNEL_STATE_READING
	.comm	_CS_RX_DATA_RECEIVED,4,2        ; @CS_RX_DATA_RECEIVED
	.no_dead_strip	_cs_hsi_read_on_data_complete
.subsections_via_symbols
