<commit_before>DecrementArrows:
	LDA.l ArrowMode : BNE .rupees
	.normal
    	LDA $7EF377 : BEQ .done
    	DEC A : STA $7EF377
	.rupees
		LDA $7EF340 : AND.b #$01 : BEQ +
			LDA.b #$00 : RTL
		+
		PHX
		REP #$20 ; set 16-bit accumulator
    	LDA $7EF360 : BEQ +
			PHA : LDA $7EF340 : DEC : AND #$0002 : TAX : PLA
			!SUB.l ArrowModeWoodArrowCost, X ; CMP.w #$0000
			BMI .not_enough_money
				STA $7EF360 : BRA +
			.not_enough_money
				LDA.w #$0000
		+
		SEP #$20 ; set 8-bit accumulator
		PLX
	.done
	CMP.b #$00
RTL

ArrowGame:
    LDA $0B99 : BEQ +
    	DEC $0B99 ; reduce minigame arrow count
		LDA.l ArrowMode : BNE .rupees
		.normal
    		LDA $7EF377 : INC #2 : STA $7EF377 ; increment arrow count (by 2 for some reason)
		.rupees
			PHX
			REP #$20 ; set 16-bit accumulator
				PHA : LDA $7EF340 : DEC : AND #$0002 : TAX : PLA
		    	LDA $7EF360 : !ADD.l ArrowModeWoodArrowCost, X : STA $7EF360
			SEP #$20 ; set 8-bit accumulator
			PLX
	+
RTL
<commit_msg>bugfix<commit_after>DecrementArrows:
	LDA.l ArrowMode : BNE .rupees
	.normal
    	LDA $7EF377 : BEQ .done
    	DEC A : STA $7EF377
		BEQ .done
	.rupees
		LDA $7EF340 : AND.b #$01 : BEQ +
			LDA.b #$00 : RTL
		+
		PHX
		REP #$20 ; set 16-bit accumulator
    	LDA $7EF360 : BEQ +
			PHA : LDA $7EF340 : DEC : AND #$0002 : TAX : PLA
			!SUB.l ArrowModeWoodArrowCost, X ; CMP.w #$0000
			BMI .not_enough_money
				STA $7EF360 : INC : BRA +
			.not_enough_money
				LDA.w #$0000
		+
		SEP #$20 ; set 8-bit accumulator
		PLX
	.done
	CMP.b #$00
RTL

ArrowGame:
    LDA $0B99 : BEQ +
    	DEC $0B99 ; reduce minigame arrow count
		LDA.l ArrowMode : BNE .rupees
		.normal
    		LDA $7EF377 : INC #2 : STA $7EF377 ; increment arrow count (by 2 for some reason)
		.rupees
			PHX
			REP #$20 ; set 16-bit accumulator
				PHA : LDA $7EF340 : DEC : AND #$0002 : TAX : PLA
		    	LDA $7EF360 : !ADD.l ArrowModeWoodArrowCost, X : STA $7EF360
			SEP #$20 ; set 8-bit accumulator
			PLX
	+
RTL

{'fraction_non_alphanumeric': 0.11231324059763009, 'fraction_numerical': 0.09067490984028852, 'mean_word_length': 2.359861591695502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3035917', 'n_tokens_mistral': 1083, 'n_tokens_neox': 873, 'n_words': 245}