	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_peek_on_control_complete
_cs_hsi_peek_on_control_complete:       ## @cs_hsi_peek_on_control_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, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r14
	movq	_HSI_STATUS_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_2
LBB0_3:
	movq	_SSI_CHANNEL_STATE_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_WARN_ON
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	$1, 12(%rbx)
	movq	_cs_hsi_read_on_control_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_hsi_async_read
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cs_hsi_control_read_error      ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ## @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control peek RX error detected\n"

	.comm	_SSI_CHANNEL_STATE_READING,4,2  ## @SSI_CHANNEL_STATE_READING
L_.str.1:                               ## @.str.1
	.asciz	"Peek on control complete, reading\n"

	.comm	_cs_hsi_read_on_control_complete,4,2 ## @cs_hsi_read_on_control_complete
	.no_dead_strip	_cs_hsi_peek_on_control_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_control_complete
_cs_hsi_peek_on_control_complete:       ; @cs_hsi_peek_on_control_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
	mov	x19, x0
	ldr	x20, [x0, #16]
	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
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _SSI_CHANNEL_STATE_READING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SSI_CHANNEL_STATE_READING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	x0, [x20, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w8, #1
Lloh10:
	adrp	x9, _cs_hsi_read_on_control_complete@GOTPAGE
Lloh11:
	ldr	x9, [x9, _cs_hsi_read_on_control_complete@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	x0, [x20, #8]
	mov	x1, x19
	bl	_hsi_async_read
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cs_hsi_control_read_error
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_STATUS_ERROR,8,3           ; @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control peek RX error detected\n"

	.comm	_SSI_CHANNEL_STATE_READING,4,2  ; @SSI_CHANNEL_STATE_READING
l_.str.1:                               ; @.str.1
	.asciz	"Peek on control complete, reading\n"

	.comm	_cs_hsi_read_on_control_complete,4,2 ; @cs_hsi_read_on_control_complete
	.no_dead_strip	_cs_hsi_peek_on_control_complete
.subsections_via_symbols
