	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dirmatch
_dirmatch:                              ## @dirmatch
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rsi
	movl	%r8d, %edx
	callq	_rrip_lookup_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_3:
	movl	8(%rbx), %edi
	callq	_isonum_711
	movq	%rax, -48(%rbp)
	movq	(%rbx), %r15
	movb	$1, %r13b
LBB0_4:
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	subq	%r12, %rbx
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_7:
	xorl	%r14d, %r14d
	cmpq	-48(%rbp), %rbx
	jne	LBB0_31
## %bb.8:
	leal	-1(%rbx), %eax
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.9:
	movl	%eax, %eax
	addq	%r15, %rax
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	incq	%r15
	decl	%ebx
	jle	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %ecx
	testb	%cl, %cl
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$47, %cl
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	(%r15), %cl
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movsbl	%cl, %edi
	callq	_toupper
	cmpb	(%r15), %al
	je	LBB0_10
	jmp	LBB0_31
LBB0_16:
	decl	%ebx
	movb	$1, %dl
	movl	%ebx, %eax
	cmpb	$47, %cl
	jne	LBB0_19
	jmp	LBB0_20
LBB0_17:
	movl	$-1, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movb	(%r12), %cl
	xorl	%edx, %edx
	cmpb	$47, %cl
	je	LBB0_20
LBB0_19:
	testb	%cl, %cl
	jne	LBB0_31
LBB0_20:
	testb	%dl, %dl
	je	LBB0_30
## %bb.21:
	movb	(%r15), %cl
	cmpb	$59, %cl
	je	LBB0_24
## %bb.22:
	cmpb	$46, %cl
	jne	LBB0_30
## %bb.23:
	cmpb	$59, 1(%r15)
	jne	LBB0_31
LBB0_24:
	incq	%r15
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	decl	%eax
	movzbl	(%r15), %ecx
	incq	%r15
	cmpb	$59, %cl
	je	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	addb	$-58, %cl
	cmpb	$-11, %cl
	ja	LBB0_25
	jmp	LBB0_31
LBB0_30:
	movl	$1, %r14d
LBB0_31:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dirmatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dirmatch
_dirmatch:                              ; @dirmatch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	cbz	w3, LBB0_3
; %bb.1:
	add	x3, sp, #8
	mov	x1, x21
	mov	x2, x4
	bl	_rrip_lookup_name
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	mov	w22, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x21, #8]
	bl	_isonum_711
	str	x0, [sp, #8]
	ldr	x19, [x21]
	mov	w22, #1
LBB0_4:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.5:
	sub	x21, x0, x20
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
LBB0_7:
	ldr	x8, [sp, #8]
	cmp	x21, x8
	b.ne	LBB0_27
; %bb.8:
	subs	w8, w21, #1
	b.lt	LBB0_18
; %bb.9:
	add	x8, x19, w8, uxtw
	add	x23, x8, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	add	x19, x19, #1
	sub	w21, w21, #1
	cmp	w21, #0
	b.le	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x20]
	cbz	w9, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #47
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x19]
	cmp	w9, w8
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	tbnz	w22, #0, LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtb	w0, w9
	bl	_toupper
	ldrb	w8, [x19]
	cmp	w8, w0, uxtb
	b.eq	LBB0_10
	b	LBB0_27
LBB0_16:
	sub	w8, w21, #1
	mov	w10, #1
	b	LBB0_19
LBB0_17:
	mov	w8, #-1
	mov	x19, x23
LBB0_18:
	mov	w10, #0
	ldrb	w9, [x20]
LBB0_19:
	cmp	w9, #47
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_27
; %bb.20:
	cbz	w10, LBB0_28
; %bb.21:
	ldrb	w9, [x19]
	cmp	w9, #59
	b.eq	LBB0_24
; %bb.22:
	cmp	w9, #46
	b.ne	LBB0_28
; %bb.23:
	ldrb	w9, [x19, #1]
	cmp	w9, #59
	b.ne	LBB0_27
LBB0_24:
	add	x9, x19, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	subs	w8, w8, #1
	b.lt	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldrb	w10, [x9], #1
	sub	w11, w10, #58
	cmp	w10, #59
	ccmn	w11, #11, #2, ne
	b.hi	LBB0_25
LBB0_27:
	mov	w0, #0
	b	LBB0_29
LBB0_28:
	mov	w0, #1
LBB0_29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dirmatch
.subsections_via_symbols
