	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_peek_on_data_complete
_cs_hsi_peek_on_data_complete:          ## @cs_hsi_peek_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	24(%rdi), %r14
	movq	_HSI_STATUS_ERROR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_CS_STATE_CONFIGURED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	32(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_4:
	leaq	64(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_SSI_CHANNEL_STATE_POLL@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%edi, %edi
	andl	8(%r14), %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%r12), %eax
	notl	%eax
	andl	8(%r14), %eax
	movq	_SSI_CHANNEL_STATE_READING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	56(%r14), %rsi
	movq	48(%r14), %rcx
	movq	16(%r14), %rax
	movq	24(%r14), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	addq	(%rcx,%rdx,8), %rsi
	movl	16(%rbx), %edi
	movl	40(%r14), %edx
	callq	_sg_init_one
	movl	$1, 12(%rbx)
	movq	_cs_hsi_read_on_data_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	32(%r14), %rdi
	movq	%rbx, %rsi
	callq	_hsi_async_read
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs_hsi_data_read_error         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ## @HSI_STATUS_ERROR
	.comm	_CS_STATE_CONFIGURED,8,3        ## @CS_STATE_CONFIGURED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data received in invalid state\n"

	.comm	_SSI_CHANNEL_STATE_POLL,4,2     ## @SSI_CHANNEL_STATE_POLL
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ## @SSI_CHANNEL_STATE_READING
	.comm	_cs_hsi_read_on_data_complete,4,2 ## @cs_hsi_read_on_data_complete
	.no_dead_strip	_cs_hsi_peek_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_peek_on_data_complete
_cs_hsi_peek_on_data_complete:          ; @cs_hsi_peek_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	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [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
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _CS_STATE_CONFIGURED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CS_STATE_CONFIGURED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	add	x21, x20, #64
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x22, _SSI_CHANNEL_STATE_POLL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SSI_CHANNEL_STATE_POLL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x22]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
Lloh10:
	adrp	x9, _SSI_CHANNEL_STATE_READING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSI_CHANNEL_STATE_READING@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_spin_unlock
	ldp	x9, x8, [x20, #48]
	ldp	x10, x11, [x20, #16]
	udiv	x12, x10, x11
	msub	x10, x12, x11, x10
	ldr	x9, [x9, x10, lsl #3]
	add	x1, x9, x8
	ldr	w0, [x19, #16]
	ldr	w2, [x20, #40]
	bl	_sg_init_one
	mov	w8, #1
Lloh13:
	adrp	x9, _cs_hsi_read_on_data_complete@GOTPAGE
Lloh14:
	ldr	x9, [x9, _cs_hsi_read_on_data_complete@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	x0, [x20, #32]
	mov	x1, x19
	bl	_hsi_async_read
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, 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_data_read_error
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ; @HSI_STATUS_ERROR
	.comm	_CS_STATE_CONFIGURED,8,3        ; @CS_STATE_CONFIGURED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data received in invalid state\n"

	.comm	_SSI_CHANNEL_STATE_POLL,4,2     ; @SSI_CHANNEL_STATE_POLL
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ; @SSI_CHANNEL_STATE_READING
	.comm	_cs_hsi_read_on_data_complete,4,2 ; @cs_hsi_read_on_data_complete
	.no_dead_strip	_cs_hsi_peek_on_data_complete
.subsections_via_symbols
