	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_client_probe
_cs_hsi_client_probe:                   ## @cs_hsi_client_probe
	.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, %r14
	callq	_to_hsi_client
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_cs_char_data@GOTPCREL(%rip), %r12
	leaq	44(%r12), %rdi
	callq	_init_waitqueue_head
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	movq	$0, 32(%r12)
	movq	%r15, 24(%r12)
	movq	$0, 16(%r12)
	leaq	12(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hsi_get_channel_id_by_name
	movq	%rax, %rbx
	movl	%ebx, (%r12)
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_hsi_get_channel_id_by_name
	movq	%rax, %rbx
	movl	%ebx, 4(%r12)
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.4:
	movq	_cs_char_miscdev@GOTPCREL(%rip), %rdi
	callq	_misc_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hsi_client_probe\n"

	.comm	_cs_char_data,48,3              ## @cs_char_data
L_.str.1:                               ## @.str.1
	.asciz	"speech-control"

L_.str.2:                               ## @.str.2
	.asciz	"Could not get cmd channel (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"speech-data"

L_.str.4:                               ## @.str.4
	.asciz	"Could not get data channel (%d)\n"

	.comm	_cs_char_miscdev,4,2            ## @cs_char_miscdev
L_.str.5:                               ## @.str.5
	.asciz	"Failed to register: %d\n"

	.no_dead_strip	_cs_hsi_client_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_client_probe
_cs_hsi_client_probe:                   ; @cs_hsi_client_probe
	.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
	bl	_to_hsi_client
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh2:
	adrp	x22, _cs_char_data@GOTPAGE
Lloh3:
	ldr	x22, [x22, _cs_char_data@GOTPAGEOFF]
	add	x0, x22, #44
	bl	_init_waitqueue_head
	add	x0, x22, #40
	bl	_spin_lock_init
	stp	x20, xzr, [x22, #24]
	str	xzr, [x22, #16]
	add	x0, x22, #12
	bl	_INIT_LIST_HEAD
	add	x0, x22, #8
	bl	_INIT_LIST_HEAD
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_hsi_get_channel_id_by_name
	str	w0, [x22]
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_hsi_get_channel_id_by_name
	mov	x21, x0
	str	w21, [x22, #4]
	tbnz	w21, #31, LBB0_5
; %bb.2:
Lloh8:
	adrp	x0, _cs_char_miscdev@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cs_char_miscdev@GOTPAGEOFF]
	bl	_misc_register
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hsi_client_probe\n"

	.comm	_cs_char_data,48,3              ; @cs_char_data
l_.str.1:                               ; @.str.1
	.asciz	"speech-control"

l_.str.2:                               ; @.str.2
	.asciz	"Could not get cmd channel (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"speech-data"

l_.str.4:                               ; @.str.4
	.asciz	"Could not get data channel (%d)\n"

	.comm	_cs_char_miscdev,4,2            ; @cs_char_miscdev
l_.str.5:                               ; @.str.5
	.asciz	"Failed to register: %d\n"

	.no_dead_strip	_cs_hsi_client_probe
.subsections_via_symbols
