	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_strict_fifo
_handle_strict_fifo:                    ## @handle_strict_fifo
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	(%r12), %ecx
	movq	_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	subl	%ecx, %ebx
	jle	LBB0_3
## %bb.1:
	movl	16(%r12), %edi
	movq	8(%r12), %rsi
	movq	%r12, %rdx
	movl	%ebx, %r8d
	callq	_ws_read_fifo
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	cmpl	%ebx, %eax
	jne	LBB0_15
LBB0_3:
	movq	8(%r12), %r15
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_unpack_uint32
	movslq	%eax, %rbx
	addq	%r15, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_unpack_uint32
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	leaq	-40(%rbp), %rsi
	callq	_unpack_uint32
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rdx
	callq	_validate_fifo_packet
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%r12), %edi
	callq	_close
	movq	%r12, %rdi
	callq	_clear_fifo_packet
	movq	%r12, %rdi
	callq	_ws_openfifo_in
	jmp	LBB0_15
LBB0_5:
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_7
## %bb.6:
	movl	$1, %edi
	movl	$32, %esi
	callq	_xcalloc
	movq	%rax, 24(%r12)
	movq	-48(%rbp), %rcx
	movq	%rcx, 24(%rax)
	movq	-40(%rbp), %rdi
	movl	%edi, (%rax)
	movl	$1, %esi
	callq	_xcalloc
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rdx
LBB0_7:
	movl	(%rdx), %r15d
	movl	16(%rdx), %ecx
	subl	%ecx, %r15d
	jle	LBB0_10
## %bb.8:
	movl	16(%r12), %edi
	movq	8(%rdx), %rsi
	addq	$16, %rdx
	movl	%r15d, %r8d
	callq	_ws_read_fifo
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	cmpl	%r15d, %eax
	jne	LBB0_15
LBB0_10:
	movl	(%r14), %edi
	callq	_list_count
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movq	24(%r12), %rdx
	movq	%r14, %rdi
	callq	_ws_send_strict_fifo_to_client
	jmp	LBB0_14
LBB0_13:
	movl	(%r14), %edi
	movq	_ws_broadcast_fifo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r12), %rdx
	callq	_list_foreach
LBB0_14:
	movq	%r12, %rdi
	callq	_clear_fifo_packet
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDR_SIZE,4,2                   ## @HDR_SIZE
	.comm	_ws_broadcast_fifo,4,2          ## @ws_broadcast_fifo
	.no_dead_strip	_handle_strict_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_strict_fifo
_handle_strict_fifo:                    ; @handle_strict_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x19, [x0, #8]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w3, [x19]
Lloh0:
	adrp	x8, _HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w21, w8, w3
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	mov	x2, x19
	mov	x4, x21
	bl	_ws_read_fifo
	tbnz	w0, #31, LBB0_15
; %bb.2:
	cmp	w0, w21
	b.ne	LBB0_15
LBB0_3:
	ldr	x21, [x19, #8]
	add	x1, sp, #24
	mov	x0, x21
	bl	_unpack_uint32
	add	x21, x21, w0, sxtw
	add	x1, sp, #16
	mov	x0, x21
	bl	_unpack_uint32
	add	x0, x21, w0, sxtw
	add	x1, sp, #8
	bl	_unpack_uint32
	ldp	x1, x0, [sp, #16]
	ldr	x2, [sp, #8]
	bl	_validate_fifo_packet
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	bl	_close
	mov	x0, x19
	bl	_clear_fifo_packet
	mov	x0, x19
	bl	_ws_openfifo_in
	b	LBB0_15
LBB0_5:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_7
; %bb.6:
	mov	w0, #1
	mov	w1, #32
	bl	_xcalloc
	str	x0, [x19, #24]
	ldr	x8, [sp, #16]
	str	x8, [x0, #24]
	ldr	x8, [sp, #8]
	str	w8, [x0]
	mov	x0, x8
	mov	w1, #1
	bl	_xcalloc
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19, #24]
LBB0_7:
	mov	x2, x8
	ldr	w3, [x2, #16]!
	ldr	w9, [x8]
	sub	w21, w9, w3
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.8:
	ldr	w0, [x19, #16]
	ldr	x1, [x8, #8]
	mov	x4, x21
	bl	_ws_read_fifo
	tbnz	w0, #31, LBB0_15
; %bb.9:
	cmp	w0, w21
	b.ne	LBB0_15
LBB0_10:
	ldr	w0, [x20]
	bl	_list_count
	cbz	x0, LBB0_14
; %bb.11:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	x2, [x19, #24]
	mov	x0, x20
	bl	_ws_send_strict_fifo_to_client
	b	LBB0_14
LBB0_13:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _ws_broadcast_fifo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ws_broadcast_fifo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	bl	_list_foreach
LBB0_14:
	mov	x0, x19
	bl	_clear_fifo_packet
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDR_SIZE,4,2                   ; @HDR_SIZE
	.comm	_ws_broadcast_fifo,4,2          ; @ws_broadcast_fifo
	.no_dead_strip	_handle_strict_fifo
.subsections_via_symbols
