	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsm_set_and_search
_fsm_set_and_search:                    ## @fsm_set_and_search
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movl	$1, %edx
	callq	_fsm_readbuf
	movl	%eax, %ebx
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_fsm_set_avail
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_MarkBufferDirtyHint
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	_FSM_BOTTOM_LEVEL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	%r15, (%rax)
	sete	%dl
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_fsm_search_avail
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movl	%ebx, %edi
	callq	_UnlockReleaseBuffer
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_FSM_BOTTOM_LEVEL,8,3           ## @FSM_BOTTOM_LEVEL
	.no_dead_strip	_fsm_set_and_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsm_set_and_search
_fsm_set_and_search:                    ; @fsm_set_and_search
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	w2, #1
	bl	_fsm_readbuf
	mov	x19, x0
Lloh0:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x19
	bl	_BufferGetPage
	mov	x1, x23
	mov	x2, x22
	bl	_fsm_set_avail
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_MarkBufferDirtyHint
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _FSM_BOTTOM_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSM_BOTTOM_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w2, eq
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_fsm_search_avail
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	mov	x0, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_FSM_BOTTOM_LEVEL,8,3           ; @FSM_BOTTOM_LEVEL
	.no_dead_strip	_fsm_set_and_search
.subsections_via_symbols
