	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newsr_generate_preget_query    ## -- Begin function newsr_generate_preget_query
	.p2align	4, 0x90
_newsr_generate_preget_query:           ## @newsr_generate_preget_query
	.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	%rcx, %r13
	movq	_Rlen@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r8d, %rax
	movl	(%rcx,%rax,4), %r12d
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_Rfirst@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	_R_common_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpl	$825241648, (%rax)              ## imm = 0x31303030
	sete	%dil
	callq	_assert
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rbx
	movq	_QN@GOTPCREL(%rip), %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r15d
	movq	_R@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setl	%dil
	callq	_assert
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	(%r14,%r14), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	(%r12), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	leal	1(%r14,%r14), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 4(%rdx,%rbx,4)
	addq	$2, %rbx
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %r14d
	decl	%r15d
	jne	LBB0_4
## %bb.5:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_6:
	testl	%r12d, %r12d
	setg	%al
	cmpl	$-1, %r14d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leal	(,%rbx,4), %r12d
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_sprintf
	movslq	%eax, %r14
	addq	%r14, %r15
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	leal	(%r14,%rbx,4), %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Rlen,8,3                       ## @Rlen
	.comm	_Rfirst,8,3                     ## @Rfirst
	.comm	_R_common_len,4,2               ## @R_common_len
	.comm	_R,8,3                          ## @R
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_Q,8,3                          ## @Q
	.comm	_QN,8,3                         ## @QN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set urlist%d 0 0 %d\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newsr_generate_preget_query    ; -- Begin function newsr_generate_preget_query
	.p2align	2
_newsr_generate_preget_query:           ; @newsr_generate_preget_query
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w4 killed $w4 def $x4
Lloh0:
	adrp	x8, _Rlen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Rlen@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w21, [x8, w4, sxtw #2]
	cbz	w21, LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x19, x0
	sxtw	x8, w4
Lloh3:
	adrp	x9, _Rfirst@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Rfirst@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w23, [x9, x8, lsl #2]
Lloh6:
	adrp	x8, _R_common_len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_common_len@GOTPAGEOFF]
Lloh8:
	adrp	x22, _R@GOTPAGE
Lloh9:
	ldr	x22, [x22, _R@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	ldr	x8, [x22]
	ldr	w8, [x8]
	mov	w9, #12336
	movk	w9, #12592, lsl #16
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.2:
Lloh11:
	adrp	x25, _MAX_RES@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MAX_RES@GOTPAGEOFF]
	sxtw	x24, w24
Lloh13:
	adrp	x26, _Q@GOTPAGE
Lloh14:
	ldr	x26, [x26, _Q@GOTPAGEOFF]
	mov	x27, x21
Lloh15:
	adrp	x28, _QN@GOTPAGE
Lloh16:
	ldr	x28, [x28, _QN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w8, w23
	lsr	w0, w8, #31
	bl	_assert
	ldrsw	x8, [x25]
	cmp	x24, x8
	cset	w0, lt
	bl	_assert
	ldr	x8, [x26]
	lsl	w9, w23, #1
	ldr	w9, [x8, w9, sxtw #2]
	ldr	x10, [x22]
	add	x10, x10, x24, lsl #2
	str	w9, [x10]
	add	x8, x8, w23, sxtw #3
	ldr	w8, [x8, #4]
	add	x24, x24, #2
	str	w8, [x10, #4]
	ldr	x8, [x28]
	ldr	w23, [x8, w23, sxtw #2]
	subs	w27, w27, #1
	b.ne	LBB0_3
; %bb.4:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_5:
	cmn	w23, #1
	ccmp	w21, #0, #4, eq
	cset	w0, gt
	bl	_assert
	lsl	w21, w24, #2
	ldr	w2, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_sprintf
	mov	x20, x0
	add	x0, x19, w0, sxtw
	ldr	x1, [x22]
	mov	x2, x21
	bl	_memcpy
	add	w0, w20, w21
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Rlen,8,3                       ; @Rlen
	.comm	_Rfirst,8,3                     ; @Rfirst
	.comm	_R_common_len,4,2               ; @R_common_len
	.comm	_R,8,3                          ; @R
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_Q,8,3                          ; @Q
	.comm	_QN,8,3                         ; @QN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set urlist%d 0 0 %d\r\n"

.subsections_via_symbols
