	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_fifo_packet
_validate_fifo_packet:                  ## @validate_fifo_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	movq	_WS_OPCODE_TEXT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_WS_OPCODE_BIN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	_wsconfig@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edx, (%rcx)
	jge	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	callq	_LOG
	movl	$1, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_SETSIZE,8,3                 ## @FD_SETSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid listener\n"

	.comm	_WS_OPCODE_TEXT,8,3             ## @WS_OPCODE_TEXT
	.comm	_WS_OPCODE_BIN,8,3              ## @WS_OPCODE_BIN
L_.str.1:                               ## @.str.1
	.asciz	"Invalid fifo packet type\n"

	.comm	_wsconfig,4,2                   ## @wsconfig
L_.str.2:                               ## @.str.2
	.asciz	"Invalid fifo packet size\n"

	.no_dead_strip	_validate_fifo_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_fifo_packet
_validate_fifo_packet:                  ; @validate_fifo_packet
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _FD_SETSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_SETSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _WS_OPCODE_TEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WS_OPCODE_TEXT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _WS_OPCODE_BIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WS_OPCODE_BIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _wsconfig@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wsconfig@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ge	LBB0_7
; %bb.4:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_LOG
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_SETSIZE,8,3                 ; @FD_SETSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid listener\n"

	.comm	_WS_OPCODE_TEXT,8,3             ; @WS_OPCODE_TEXT
	.comm	_WS_OPCODE_BIN,8,3              ; @WS_OPCODE_BIN
l_.str.1:                               ; @.str.1
	.asciz	"Invalid fifo packet type\n"

	.comm	_wsconfig,4,2                   ; @wsconfig
l_.str.2:                               ; @.str.2
	.asciz	"Invalid fifo packet size\n"

	.no_dead_strip	_validate_fifo_packet
.subsections_via_symbols
