	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_read_on_control_complete
_cs_hsi_read_on_control_complete:       ## @cs_hsi_read_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_cs_get_cmd
	movl	%eax, %r15d
	movq	8(%rbx), %r12
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_SSI_CHANNEL_STATE_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r12)
	movq	(%rbx), %rax
	movq	_HSI_STATUS_ERROR@GOTPCREL(%rip), %rcx
	movq	16(%r12), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_cs_hsi_control_read_error
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_cs_release_cmd
	movq	_CS_FEAT_TSTAMP_RX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rbx
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r15d, %edi
	callq	_cs_notify_control
LBB0_5:
	movq	%r12, %rdi
	callq	_cs_hsi_read_on_control
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ## @SSI_CHANNEL_STATE_READING
	.comm	_HSI_STATUS_ERROR,8,3           ## @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control RX error detected\n"

L_.str.1:                               ## @.str.1
	.asciz	"Read on control: %08X\n"

	.comm	_CS_FEAT_TSTAMP_RX_CTRL,4,2     ## @CS_FEAT_TSTAMP_RX_CTRL
	.no_dead_strip	_cs_hsi_read_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_read_on_control_complete
_cs_hsi_read_on_control_complete:       ; @cs_hsi_read_on_control_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x0
	bl	_cs_get_cmd
	mov	x21, x0
	ldr	x19, [x22, #8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
Lloh0:
	adrp	x8, _SSI_CHANNEL_STATE_READING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSI_CHANNEL_STATE_READING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _HSI_STATUS_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HSI_STATUS_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x0, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	mov	x1, x22
	bl	_cs_hsi_control_read_error
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	mov	x0, x22
	bl	_cs_release_cmd
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _CS_FEAT_TSTAMP_RX_CTRL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CS_FEAT_TSTAMP_RX_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x22, [x19, #8]
	mov	x0, sp
	bl	_ktime_get_ts64
	ldp	x9, x8, [sp]
	stp	x9, x8, [x22]
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	bl	_cs_notify_control
LBB0_5:
	mov	x0, x19
	bl	_cs_hsi_read_on_control
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ; @SSI_CHANNEL_STATE_READING
	.comm	_HSI_STATUS_ERROR,8,3           ; @HSI_STATUS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control RX error detected\n"

l_.str.1:                               ; @.str.1
	.asciz	"Read on control: %08X\n"

	.comm	_CS_FEAT_TSTAMP_RX_CTRL,4,2     ; @CS_FEAT_TSTAMP_RX_CTRL
	.no_dead_strip	_cs_hsi_read_on_control_complete
.subsections_via_symbols
