	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckUDP
_CheckUDP:                              ## @CheckUDP
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	16(%rdi), %r12
	leaq	8(%rsi), %rdx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_FCEUI_CRC32
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_de32
	cmpq	%rax, %r13
	jne	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	callq	_de32
	movq	_magic@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_de32
	movq	_incounter@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	jl	LBB0_6
LBB0_5:
	movl	$1, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	%rcx, %rax
	je	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_magic,8,3                      ## @magic
	.comm	_incounter,8,3                  ## @incounter
	.no_dead_strip	_CheckUDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckUDP
_CheckUDP:                              ; @CheckUDP
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x0
	add	x21, x0, #16
	add	x2, x1, #8
	mov	w0, #0
	mov	x1, x21
	bl	_FCEUI_CRC32
	mov	x22, x0
	mov	x0, x20
	bl	_de32
	mov	x8, x0
	mov	w0, #0
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_de32
Lloh0:
	adrp	x8, _magic@GOTPAGE
Lloh1:
	ldr	x8, [x8, _magic@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	add	x0, x20, #32
	bl	_de32
Lloh3:
	adrp	x8, _incounter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _incounter@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cbz	x19, LBB0_5
; %bb.3:
	b.ge	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_magic,8,3                      ; @magic
	.comm	_incounter,8,3                  ; @incounter
	.no_dead_strip	_CheckUDP
.subsections_via_symbols
