	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_get_encoded_size
_nes_get_encoded_size:                  ## @nes_get_encoded_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	cmpl	$33, %ecx
	jge	LBB0_2
## %bb.1:
	movl	$1, %eax
	movl	$32, %ecx
	jmp	LBB0_6
LBB0_2:
	cmpl	$129, %ecx
	jae	LBB0_4
## %bb.3:
	movl	$2, %eax
	movl	$128, %ecx
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	cmpl	$512, %ecx                      ## imm = 0x200
	ja	LBB0_7
## %bb.5:
	movl	$3, %eax
	movl	$512, %ecx                      ## imm = 0x200
LBB0_6:
	movl	%ecx, (%rdi)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nes_get_encoded_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_get_encoded_size
_nes_get_encoded_size:                  ; @nes_get_encoded_size
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #33
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #1
	mov	w9, #32
	b	LBB0_6
LBB0_2:
	cmp	w8, #129
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #2
	mov	w9, #128
	b	LBB0_6
LBB0_4:
	cmp	w8, #512
	b.hi	LBB0_7
; %bb.5:
	mov	w8, #3
	mov	w9, #512
LBB0_6:
	str	w9, [x0]
	mov	x0, x8
	ret
LBB0_7:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nes_get_encoded_size
.subsections_via_symbols
