	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_parse_ld1
_gb_parse_ld1:                          ## @gb_parse_ld1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_strlen
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %r8d
	callq	_r_str_replace_in
	movq	%rbx, %rdi
	callq	_strlen
	xorl	%r15d, %r15d
	cmpl	%r12d, %eax
	jl	LBB0_10
## %bb.1:
	movq	_str_op@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_r_str_do_until_token
	leaq	3(%rbx), %rdi
	cmpb	$44, 4(%rbx)
	jne	LBB0_5
## %bb.2:
	movsbl	(%rdi), %edi
	callq	_gb_reg_idx
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.3:
	leal	64(,%rax,8), %eax
	movl	%eax, (%r14)
	movsbl	5(%rbx), %edi
	callq	_gb_reg_idx
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:
	orl	(%r14), %eax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movsbl	8(%rbx), %edi
	callq	_gb_reg_idx
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	orl	$112, %eax
LBB0_9:
	movl	%eax, (%r14)
	movl	$1, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	", "

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

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

	.no_dead_strip	_gb_parse_ld1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_parse_ld1
_gb_parse_ld1:                          ; @gb_parse_ld1
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
	mov	x1, 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, x20
	mov	w4, #1
	bl	_r_str_replace_in
	mov	x0, x20
	bl	_strlen
	cmp	w0, w21
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
Lloh4:
	adrp	x8, _str_op@GOTPAGE
Lloh5:
	ldr	x8, [x8, _str_op@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_r_str_do_until_token
	ldrb	w8, [x20, #4]
	add	x0, x20, #3
	cmp	w8, #44
	b.ne	LBB0_6
; %bb.3:
	ldrsb	w0, [x0]
	bl	_gb_reg_idx
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.4:
	lsl	w8, w0, #3
	add	w8, w8, #64
	str	w8, [x19]
	ldrsb	w0, [x20, #5]
	bl	_gb_reg_idx
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.5:
	ldr	w8, [x19]
	orr	w8, w8, w0
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbnz	w0, LBB0_10
; %bb.7:
	ldrsb	w0, [x20, #8]
	bl	_gb_reg_idx
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.8:
	orr	w8, w0, #0x70
LBB0_9:
	str	w8, [x19]
LBB0_10:
	mov	w0, #1
LBB0_11:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	", "

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

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

	.no_dead_strip	_gb_parse_ld1
.subsections_via_symbols
