	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_wildcard_trgm         ## -- Begin function generate_wildcard_trgm
	.p2align	4, 0x90
_generate_wildcard_trgm:                ## @generate_wildcard_trgm
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_protect_out_of_mem
	movq	_TRGMHDRSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%r15d, %ecx
	shrl	$31, %ecx
	addl	%r15d, %ecx
	sarl	%ecx
	leal	(%rcx,%rcx,2), %ecx
	leal	(%rax,%rcx,4), %edi
	addl	$12, %edi
	callq	_palloc
	movq	%rax, %r13
	movq	_ARRKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_SET_VARSIZE
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.1:
	movq	_LPADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	movq	_RPADDING@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	$3, %eax
	jl	LBB0_9
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_GETARR
	movq	%rax, %rbx
	leal	4(%r15), %edi
	callq	_palloc
	movq	%rax, %r13
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_get_wildcard_part
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_make_trigrams
	movq	%rax, %rbx
	movl	%r12d, %esi
	subl	%r14d, %esi
	addl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_get_wildcard_part
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_pfree
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_GETARR
	subq	%rax, %rbx
	shrq	$2, %rbx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.6:
	cmpl	$2, %ebx
	jl	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_GETARR
	movq	_comp_trgm@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_qsort
	movq	%r13, %rdi
	callq	_GETARR
	movl	(%r14), %ecx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_qunique
	movl	%eax, %ebx
LBB0_8:
	movq	_ARRKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_CALCGTSIZE
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE
LBB0_9:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRGMHDRSIZE,4,2                ## @TRGMHDRSIZE
	.comm	_ARRKEY,4,2                     ## @ARRKEY
	.comm	_LPADDING,4,2                   ## @LPADDING
	.comm	_RPADDING,4,2                   ## @RPADDING
	.comm	_comp_trgm,4,2                  ## @comp_trgm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_wildcard_trgm         ; -- Begin function generate_wildcard_trgm
	.p2align	2
_generate_wildcard_trgm:                ; @generate_wildcard_trgm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_protect_out_of_mem
Lloh0:
	adrp	x22, _TRGMHDRSIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TRGMHDRSIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, #0
	cinc	w9, w20, lt
	asr	w9, w9, #1
	mov	w10, #12
	madd	w8, w9, w10, w8
	add	w0, w8, #12
	bl	_palloc
	mov	x19, x0
Lloh2:
	adrp	x25, _ARRKEY@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ARRKEY@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x0]
	ldr	w1, [x22]
	bl	_SET_VARSIZE
	cbz	w20, LBB0_9
; %bb.1:
Lloh4:
	adrp	x8, _LPADDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LPADDING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _RPADDING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RPADDING@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	add	w8, w8, w20
	add	w8, w8, w9
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_GETARR
	mov	x22, x0
	add	w0, w20, #4
	bl	_palloc
	mov	x23, x0
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_get_wildcard_part
	cbz	x0, LBB0_5
; %bb.3:
	mov	x24, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w3, [sp, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_make_trigrams
	mov	x22, x0
	sub	w8, w21, w24
	add	w1, w8, w20
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x24
	mov	x2, x23
	bl	_get_wildcard_part
	mov	x24, x0
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x23
	bl	_pfree
	mov	x0, x19
	bl	_GETARR
	sub	x8, x22, x0
	lsr	x20, x8, #2
	cbz	w20, LBB0_9
; %bb.6:
	cmp	w20, #2
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_GETARR
Lloh10:
	adrp	x21, _comp_trgm@GOTPAGE
Lloh11:
	ldr	x21, [x21, _comp_trgm@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x1, x20
	mov	w2, #4
	bl	_qsort
	mov	x0, x19
	bl	_GETARR
	ldr	w3, [x21]
	mov	x1, x20
	mov	w2, #4
	bl	_qunique
	mov	x20, x0
LBB0_8:
	ldr	w0, [x25]
	mov	x1, x20
	bl	_CALCGTSIZE
	mov	x1, x0
	mov	x0, x19
	bl	_SET_VARSIZE
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TRGMHDRSIZE,4,2                ; @TRGMHDRSIZE
	.comm	_ARRKEY,4,2                     ; @ARRKEY
	.comm	_LPADDING,4,2                   ; @LPADDING
	.comm	_RPADDING,4,2                   ; @RPADDING
	.comm	_comp_trgm,4,2                  ; @comp_trgm
.subsections_via_symbols
