	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_reject                     ## -- Begin function nes_reject
	.p2align	4, 0x90
_nes_reject:                            ## @nes_reject
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_cm_rejects@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	(%rbx), %r13
	movq	40(%r13), %r15
	movq	48(%r13), %r12
	movq	%rbx, 32(%r13)
	leaq	4(%r14), %rax
	movq	_MAX_CM_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_1
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	leaq	16(%r12), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r14, 24(%r12)
	movq	%r14, 8(%r12)
	jmp	LBB0_4
LBB0_3:
	movq	(%r13), %rdi
	addq	$32, %rdi
	movq	%r14, 8(%r13)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_rejects,4,2                 ## @cm_rejects
	.comm	_MAX_CM_BUFFER,8,3              ## @MAX_CM_BUFFER
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_reject                     ; -- Begin function nes_reject
	.p2align	2
_nes_reject:                            ; @nes_reject
	.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, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x0, _cm_rejects@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cm_rejects@GOTPAGEOFF]
	bl	_atomic_inc
	ldr	x19, [x23]
	ldp	x21, x24, [x19, #40]
	str	x23, [x19, #32]
	add	x8, x20, #4
Lloh2:
	adrp	x9, _MAX_CM_BUFFER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_CM_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_2:
	cbz	x24, LBB0_4
; %bb.3:
	add	x0, x24, #16
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	str	x20, [x24, #24]
	str	x20, [x24, #8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	add	x0, x8, #32
	str	x20, [x19, #8]
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
LBB0_5:
	ldr	x8, [x21]
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x19
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_rejects,4,2                 ; @cm_rejects
	.comm	_MAX_CM_BUFFER,8,3              ; @MAX_CM_BUFFER
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
