	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpci_start_thread
_cpci_start_thread:                     ## @cpci_start_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_controller@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_event_thread@GOTPCREL(%rip), %rax
	cmoveq	_poll_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_kthread_run
	movq	_cpci_thread@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_err
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_thread_finished@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_controller,8,3                 ## @controller
	.comm	_event_thread,4,2               ## @event_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpci_hp_eventd"

	.comm	_cpci_thread,4,2                ## @cpci_thread
	.comm	_poll_thread,4,2                ## @poll_thread
L_.str.1:                               ## @.str.1
	.asciz	"cpci_hp_polld"

L_.str.2:                               ## @.str.2
	.asciz	"Can't start up our thread"

	.comm	_thread_finished,8,3            ## @thread_finished
	.no_dead_strip	_cpci_start_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpci_start_thread
_cpci_start_thread:                     ; @cpci_start_thread
	.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
Lloh0:
	adrp	x8, _controller@GOTPAGE
Lloh1:
	ldr	x8, [x8, _controller@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh7:
	adrp	x8, _poll_thread@GOTPAGE
Lloh8:
	ldr	x8, [x8, _poll_thread@GOTPAGEOFF]
Lloh9:
	adrp	x9, _event_thread@GOTPAGE
Lloh10:
	ldr	x9, [x9, _event_thread@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	mov	x1, #0
	bl	_kthread_run
Lloh11:
	adrp	x19, _cpci_thread@GOTPAGE
Lloh12:
	ldr	x19, [x19, _cpci_thread@GOTPAGEOFF]
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh15:
	adrp	x8, _thread_finished@GOTPAGE
Lloh16:
	ldr	x8, [x8, _thread_finished@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_controller,8,3                 ; @controller
	.comm	_event_thread,4,2               ; @event_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpci_hp_eventd"

	.comm	_cpci_thread,4,2                ; @cpci_thread
	.comm	_poll_thread,4,2                ; @poll_thread
l_.str.1:                               ; @.str.1
	.asciz	"cpci_hp_polld"

l_.str.2:                               ; @.str.2
	.asciz	"Can't start up our thread"

	.comm	_thread_finished,8,3            ; @thread_finished
	.no_dead_strip	_cpci_start_thread
.subsections_via_symbols
