	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_match                          ## -- Begin function match
	.p2align	4, 0x90
_match:                                 ## @match
	.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	%rdi, %r14
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, 1(%rbx)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %r12
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %r15d
	movsbl	1(%rbx), %eax
	movq	%r12, %rbx
	cmpl	%eax, %r15d
	je	LBB0_1
## %bb.4:
	cmpq	%r14, %r12
	jbe	LBB0_7
## %bb.5:
	decq	%r12
	decq	%r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r14), %edi
	incq	%r14
	callq	_putchar
	cmpq	%r12, %r14
	jb	LBB0_6
LBB0_7:
	movl	%r15d, %edi
	callq	_ungetchar
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movl	$1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_match                          ; -- Begin function match
	.p2align	2
_match:                                 ; @match
	.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	x19, x0
	sub	x21, x0, #1
	mov	x22, x0
	mov	x24, x0
	mov	x23, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23, #1]!
	cbz	w8, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_getchar
	ldrsb	w8, [x24, #1]
	add	x22, x22, #1
	add	x21, x21, #1
	mov	x24, x23
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.3:
	mov	x20, x0
	cmp	x23, x19
	b.ls	LBB0_6
; %bb.4:
	cmp	x19, x21
	csel	x8, x19, x21, lo
	sub	x21, x22, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x19], #1
	bl	_putchar
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_ungetchar
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
