	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_started_ok
_check_started_ok:                      ## @check_started_ok
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_smcVersion@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_FST_RDW
	movq	_SMC_VERSION@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_endOfSmcSignature@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_FST_RDL
	movq	_END_SIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	movq	_taskStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_FST_RDB
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$255, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.10:
	movq	_FST_RUNNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_11:
	movq	_numberOfPorts@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_FST_RDL
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.12:
	movl	8(%r15), %r14d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_FST_RDL
	movq	(%r15), %rcx
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_1:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_FST_RDW
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_4:
	movq	_FST_BADVERSION@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_FST_HALTED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_FST_HALTED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_smcVersion,4,2                 ## @smcVersion
	.comm	_SMC_VERSION,8,3                ## @SMC_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad shared memory version %d expected %d\n"

	.comm	_FST_BADVERSION,8,3             ## @FST_BADVERSION
	.comm	_endOfSmcSignature,4,2          ## @endOfSmcSignature
	.comm	_END_SIG,8,3                    ## @END_SIG
L_.str.1:                               ## @.str.1
	.asciz	"Missing shared memory signature\n"

	.comm	_taskStatus,4,2                 ## @taskStatus
	.comm	_FST_RUNNING,8,3                ## @FST_RUNNING
L_.str.2:                               ## @.str.2
	.asciz	"Firmware initialisation failed. Card halted\n"

	.comm	_FST_HALTED,8,3                 ## @FST_HALTED
L_.str.3:                               ## @.str.3
	.asciz	"Unknown firmware status 0x%x\n"

	.comm	_numberOfPorts,4,2              ## @numberOfPorts
L_.str.4:                               ## @.str.4
	.asciz	"Port count mismatch on card %d.  Firmware thinks %d we say %d\n"

	.no_dead_strip	_check_started_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_started_ok
_check_started_ok:                      ; @check_started_ok
	.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	x19, x0
Lloh0:
	adrp	x20, _smcVersion@GOTPAGE
Lloh1:
	ldr	x20, [x20, _smcVersion@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_FST_RDW
Lloh2:
	adrp	x21, _SMC_VERSION@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SMC_VERSION@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
Lloh4:
	adrp	x8, _endOfSmcSignature@GOTPAGE
Lloh5:
	ldr	x8, [x8, _endOfSmcSignature@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FST_RDL
Lloh7:
	adrp	x8, _END_SIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _END_SIG@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
Lloh10:
	adrp	x8, _taskStatus@GOTPAGE
Lloh11:
	ldr	x8, [x8, _taskStatus@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FST_RDB
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.3:
	cmp	w0, #255
	b.eq	LBB0_13
; %bb.4:
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.5:
Lloh13:
	adrp	x8, _FST_RUNNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FST_RUNNING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_6:
Lloh16:
	adrp	x21, _numberOfPorts@GOTPAGE
Lloh17:
	ldr	x21, [x21, _numberOfPorts@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_FST_RDL
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.7:
	ldr	w20, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_FST_RDL
	mov	x2, x0
	ldr	x3, [x19]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	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
	b	_pr_warn
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_FST_RDW
	ldr	x8, [x21]
	stp	x0, x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_pr_err
Lloh24:
	adrp	x8, _FST_BADVERSION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FST_BADVERSION@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_12:
	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
LBB0_13:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_14:
	str	x0, [sp]
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_pr_err
Lloh30:
	adrp	x8, _FST_HALTED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FST_HALTED@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_smcVersion,4,2                 ; @smcVersion
	.comm	_SMC_VERSION,8,3                ; @SMC_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad shared memory version %d expected %d\n"

	.comm	_FST_BADVERSION,8,3             ; @FST_BADVERSION
	.comm	_endOfSmcSignature,4,2          ; @endOfSmcSignature
	.comm	_END_SIG,8,3                    ; @END_SIG
l_.str.1:                               ; @.str.1
	.asciz	"Missing shared memory signature\n"

	.comm	_taskStatus,4,2                 ; @taskStatus
	.comm	_FST_RUNNING,8,3                ; @FST_RUNNING
l_.str.2:                               ; @.str.2
	.asciz	"Firmware initialisation failed. Card halted\n"

	.comm	_FST_HALTED,8,3                 ; @FST_HALTED
l_.str.3:                               ; @.str.3
	.asciz	"Unknown firmware status 0x%x\n"

	.comm	_numberOfPorts,4,2              ; @numberOfPorts
l_.str.4:                               ; @.str.4
	.asciz	"Port count mismatch on card %d.  Firmware thinks %d we say %d\n"

	.no_dead_strip	_check_started_ok
.subsections_via_symbols
