	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_parse_arith1
_gb_parse_arith1:                       ## @gb_parse_arith1
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_strlen
	xorl	%ecx, %ecx
	cmpl	%r14d, %eax
	jl	LBB0_5
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, (%rbx)
	movq	%rbx, %r13
	movslq	%r14d, %rbx
	leaq	(%r15,%rbx), %r12
	decq	%r12
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %r8d
	callq	_r_str_replace_in
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_r_str_replace_in
	movq	_str_op@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_r_str_do_until_token
	movsbl	-1(%r15,%rbx), %edi
	callq	_gb_reg_idx
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_4:
	orl	%eax, (%r13)
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_r_num_get
	movzbl	%al, %eax
	movl	%eax, 4(%r13)
	movl	$2, %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$6, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[ "

L_.str.1:                               ## @.str.1
	.asciz	"["

L_.str.2:                               ## @.str.2
	.asciz	" ]"

L_.str.3:                               ## @.str.3
	.asciz	"]"

	.comm	_str_op,4,2                     ## @str_op
L_.str.4:                               ## @.str.4
	.asciz	"[hl]"

	.no_dead_strip	_gb_parse_arith1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_parse_arith1
_gb_parse_arith1:                       ; @gb_parse_arith1
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
	cmp	w0, w23
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	str	w21, [x19]
	add	x24, x22, w23, sxtw
	sub	x21, x24, #1
	mov	x0, x21
	bl	_strlen
	mov	x23, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	w4, #1
	bl	_r_str_replace_in
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	w4, #1
	bl	_r_str_replace_in
Lloh8:
	adrp	x8, _str_op@GOTPAGE
Lloh9:
	ldr	x8, [x8, _str_op@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	mov	w2, #32
	bl	_r_str_do_until_token
	ldursb	w0, [x24, #-1]
	bl	_gb_reg_idx
	cmn	w0, #1
	b.eq	LBB0_4
LBB0_3:
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_strncmp
	cbz	w0, LBB0_7
; %bb.5:
	str	w20, [x19]
	mov	x0, #0
	mov	x1, x21
	bl	_r_num_get
	and	w8, w0, #0xff
	str	w8, [x19, #4]
	mov	w0, #2
LBB0_6:
	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_7:
	mov	w0, #6
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[ "

l_.str.1:                               ; @.str.1
	.asciz	"["

l_.str.2:                               ; @.str.2
	.asciz	" ]"

l_.str.3:                               ; @.str.3
	.asciz	"]"

	.comm	_str_op,4,2                     ; @str_op
l_.str.4:                               ; @.str.4
	.asciz	"[hl]"

	.no_dead_strip	_gb_parse_arith1
.subsections_via_symbols
