	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_data_destructor
_cs_hsi_data_destructor:                ## @cs_hsi_data_destructor
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rdi), %r12
	movq	_HSI_MSG_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_cs_char_data@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%r12), %rax
	movq	_CS_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_err
LBB0_2:
	movq	(%r15), %rax
	movq	_HSI_MSG_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	_SSI_CHANNEL_STATE_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	movq	_SSI_CHANNEL_STATE_POLL@GOTPCREL(%rip), %rcx
	movq	_SSI_CHANNEL_STATE_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_5:
	notl	%eax
	andl	%eax, 8(%r12)
	movq	_HSI_STATUS_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_waitqueue_active
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_wake_up_interruptible
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI_MSG_READ,8,3               ## @HSI_MSG_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX"

L_.str.1:                               ## @.str.1
	.asciz	"RX"

	.comm	_cs_char_data,8,3               ## @cs_char_data
L_.str.2:                               ## @.str.2
	.asciz	"Freeing data %s message\n"

	.comm	_CS_STATE_CLOSED,8,3            ## @CS_STATE_CLOSED
L_.str.3:                               ## @.str.3
	.asciz	"Data %s flush while device active\n"

	.comm	_SSI_CHANNEL_STATE_POLL,4,2     ## @SSI_CHANNEL_STATE_POLL
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ## @SSI_CHANNEL_STATE_READING
	.comm	_SSI_CHANNEL_STATE_WRITING,4,2  ## @SSI_CHANNEL_STATE_WRITING
	.comm	_HSI_STATUS_COMPLETED,4,2       ## @HSI_STATUS_COMPLETED
	.no_dead_strip	_cs_hsi_data_destructor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_data_destructor
_cs_hsi_data_destructor:                ; @cs_hsi_data_destructor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _HSI_MSG_READ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HSI_MSG_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	ldr	x11, [x23]
	cmp	x8, x11
	csel	x21, x10, x9, eq
Lloh6:
	adrp	x24, _cs_char_data@GOTPAGE
Lloh7:
	ldr	x24, [x24, _cs_char_data@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	add	x19, x22, #12
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _CS_STATE_CLOSED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CS_STATE_CLOSED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x24]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_2:
	ldr	x8, [x20]
	ldr	x9, [x23]
Lloh15:
	adrp	x10, _SSI_CHANNEL_STATE_WRITING@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SSI_CHANNEL_STATE_WRITING@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _SSI_CHANNEL_STATE_POLL@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SSI_CHANNEL_STATE_POLL@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _SSI_CHANNEL_STATE_READING@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SSI_CHANNEL_STATE_READING@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x8, x9
	csel	w8, w11, w10, eq
	ldr	w9, [x22, #8]
	bic	w8, w9, w8
	str	w8, [x22, #8]
Lloh24:
	adrp	x8, _HSI_STATUS_COMPLETED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HSI_STATUS_COMPLETED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	add	x20, x22, #16
	mov	x0, x20
	bl	_waitqueue_active
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_wake_up_interruptible
LBB0_4:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI_MSG_READ,8,3               ; @HSI_MSG_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX"

l_.str.1:                               ; @.str.1
	.asciz	"RX"

	.comm	_cs_char_data,8,3               ; @cs_char_data
l_.str.2:                               ; @.str.2
	.asciz	"Freeing data %s message\n"

	.comm	_CS_STATE_CLOSED,8,3            ; @CS_STATE_CLOSED
l_.str.3:                               ; @.str.3
	.asciz	"Data %s flush while device active\n"

	.comm	_SSI_CHANNEL_STATE_POLL,4,2     ; @SSI_CHANNEL_STATE_POLL
	.comm	_SSI_CHANNEL_STATE_READING,4,2  ; @SSI_CHANNEL_STATE_READING
	.comm	_SSI_CHANNEL_STATE_WRITING,4,2  ; @SSI_CHANNEL_STATE_WRITING
	.comm	_HSI_STATUS_COMPLETED,4,2       ; @HSI_STATUS_COMPLETED
	.no_dead_strip	_cs_hsi_data_destructor
.subsections_via_symbols
