	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function targ_generate_new_key
_targ_generate_new_key:                 ## @targ_generate_new_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_is_search@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_Q_slice_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movslq	%r15d, %r13
	cmpb	$35, (%rbx,%r13)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addq	%r13, %r12
	movq	%r12, %rdi
	callq	_targ_regenerate_search_extras
	movq	%rax, %rbx
	addl	%r15d, %ebx
	addl	$3, %r14d
	xorl	%edi, %edi
	cmpl	%r14d, %ebx
	setl	%dil
	callq	_assert
	movl	%ebx, %r14d
	jmp	LBB0_12
LBB0_4:
	movq	_Q_raw@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	leal	1(%r14), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	jmp	LBB0_12
LBB0_6:
	movq	_targ_extra@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	leal	-1(%r14), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movslq	%r15d, %rax
	cmpb	$35, (%rbx,%rax)
	movslq	%r14d, %rax
	leaq	-1(%r12,%rax), %rdi
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_memcpy
	incl	%r14d
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
LBB0_11:
	callq	_memcpy
	addl	$2, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_search,8,3                  ## @is_search
	.comm	_Q_slice_limit,8,3              ## @Q_slice_limit
	.comm	_Q_limit,8,3                    ## @Q_limit
	.comm	_Q_raw,8,3                      ## @Q_raw
	.comm	_targ_extra,8,3                 ## @targ_extra
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%)"

L_.str.1:                               ## @.str.1
	.asciz	"#%)"

L_.str.2:                               ## @.str.2
	.asciz	"#%"

	.no_dead_strip	_targ_generate_new_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function targ_generate_new_key
_targ_generate_new_key:                 ; @targ_generate_new_key
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _is_search@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_search@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _Q_slice_limit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_slice_limit@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _Q_limit@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Q_limit@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	sxtw	x23, w20
	ldrb	w8, [x22, x23]
	cmp	w8, #35
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	add	x0, x21, x23
	bl	_targ_regenerate_search_extras
	add	w8, w19, #3
	add	w19, w0, w20
	cmp	w19, w8
	cset	w0, lt
	bl	_assert
	b	LBB0_12
LBB0_4:
Lloh9:
	adrp	x8, _Q_raw@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Q_raw@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	add	w2, w19, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _targ_extra@GOTPAGE
Lloh13:
	ldr	x8, [x8, _targ_extra@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
	sub	w2, w19, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	ldrb	w8, [x22, w20, sxtw]
	add	x9, x21, w19, sxtw
	sub	x0, x9, #1
	cmp	w8, #35
	b.ne	LBB0_10
; %bb.8:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_memcpy
	add	w19, w19, #1
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	add	x0, x21, w19, sxtw
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #3
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
LBB0_11:
	bl	_memcpy
	add	w19, w19, #2
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_is_search,8,3                  ; @is_search
	.comm	_Q_slice_limit,8,3              ; @Q_slice_limit
	.comm	_Q_limit,8,3                    ; @Q_limit
	.comm	_Q_raw,8,3                      ; @Q_raw
	.comm	_targ_extra,8,3                 ; @targ_extra
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%)"

l_.str.1:                               ; @.str.1
	.asciz	"#%)"

l_.str.2:                               ; @.str.2
	.asciz	"#%"

	.no_dead_strip	_targ_generate_new_key
.subsections_via_symbols
