	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function conv_pat
_conv_pat:                              ## @conv_pat
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	leaq	1(%r15), %rbx
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isalpha
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,2), %eax
	addl	%eax, %r14d
	incl	%r14d
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %r14
	movb	(%r15), %al
	movq	%r14, %rbx
	testb	%al, %al
	je	LBB0_14
## %bb.6:
	movq	%r14, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movb	$91, (%rbx)
	movzbl	(%r15), %eax
	movb	%al, 1(%rbx)
	movzbl	(%r15), %edi
	callq	_toupper
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movb	%al, 2(%rbx)
	movb	$93, 3(%rbx)
	addq	$4, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	1(%r15), %eax
	incq	%r15
	testb	%al, %al
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_islower
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%r15), %edi
	callq	_isupper
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$91, (%rbx)
	movzbl	(%r15), %eax
	movb	%al, 1(%rbx)
	movzbl	(%r15), %edi
	callq	_tolower
	jmp	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%r15), %eax
	movb	%al, (%rbx)
	incq	%rbx
	jmp	LBB0_13
LBB0_14:
	movb	$0, (%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pattern too long for ignoring case\n"

	.no_dead_strip	_conv_pat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function conv_pat
_conv_pat:                              ; @conv_pat
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	add	x21, x19, #1
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isalpha
	cmp	x0, #0
	add	w8, w20, #4
	csinc	w20, w8, w20, ne
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #1
LBB0_4:
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x20, x0
	ldrb	w8, [x19]
	mov	x21, x0
	cbz	w8, LBB0_13
; %bb.6:
	mov	w22, #91
	mov	w23, #93
	mov	x21, x20
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w22, [x21]
	ldrb	w8, [x19]
	strb	w8, [x21, #1]
	ldrb	w0, [x19]
	bl	_toupper
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w0, [x21, #2]
	strb	w23, [x21, #3]
	add	x21, x21, #4
	ldrb	w8, [x19, #1]!
	cbz	w8, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_islower
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w0, [x19]
	bl	_isupper
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w22, [x21]
	ldrb	w8, [x19]
	strb	w8, [x21, #1]
	ldrb	w0, [x19]
	bl	_tolower
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x19]
	strb	w8, [x21], #1
	ldrb	w8, [x19, #1]!
	cbnz	w8, LBB0_9
LBB0_13:
	strb	wzr, [x21]
	mov	x0, x20
	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_14:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pattern too long for ignoring case\n"

	.no_dead_strip	_conv_pat
.subsections_via_symbols
