	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_news_generate_preget_query     ## -- Begin function news_generate_preget_query
	.p2align	4, 0x90
_news_generate_preget_query:            ## @news_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	_Rlen@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r8d, %rax
	movl	(%rdx,%rax,4), %r14d
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_Rfirst@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_NEWS_UG_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NEWS_G_EXTENSION@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	movq	(%rbx), %rdx
	orq	%rax, %rdx
	sete	%cl
	shll	$25, %ecx
	orl	$808464432, %ecx                ## imm = 0x30303030
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx)
	xorl	%ecx, %ecx
	orq	(%rbx), %rax
	sete	%cl
	leal	(%rcx,%rcx), %eax
	incl	%eax
	imull	%r14d, %eax
	movq	_MAX_RES@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_assert
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.3:
	xorl	%r12d, %r12d
	movq	_QN@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r15d, %rax
	leal	(%r15,%r15,2), %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %esi
	movq	_R@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rbx, %r8
	leal	(%r12,%r12,2), %ebx
	movl	%esi, 4(%rdi,%rbx,4)
	movl	4(%rcx,%rdx,4), %esi
	movl	%esi, 8(%rdi,%rbx,4)
	movl	8(%rcx,%rdx,4), %ecx
	movl	%ecx, 12(%rdi,%rbx,4)
	movq	%r8, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	(%r13), %rcx
	movl	(%rcx,%rax,4), %r15d
	cmpq	%r14, %r12
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_NEWS_UG_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Q@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rbx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r15d, %rax
	movl	(%rcx,%rax,4), %ecx
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, 4(%rdx,%r12,4)
	jmp	LBB0_7
LBB0_8:
	testl	%r14d, %r14d
	setg	%al
	cmpl	$-1, %r15d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_NEWS_COMM_EXTENSION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leal	(%r14,%r14,2), %r15d
	cmovel	%r14d, %r15d
	movl	$1, %edi
	jne	LBB0_10
## %bb.9:
	movq	_NEWS_UG_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	orq	(%rbx), %rax
	setne	%dil
LBB0_10:
	callq	_assert
	movq	_NEWS_UG_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	orq	(%rbx), %rax
	cmovneq	%rcx, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leal	4(,%r15,4), %r14d
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_sprintf
	movslq	%eax, %r12
	addq	%r12, %rbx
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	leal	(%r12,%r15,4), %eax
	addl	$4, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
LBB0_11:
	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	_NEWS_UG_EXTENSION,8,3          ## @NEWS_UG_EXTENSION
	.comm	_NEWS_G_EXTENSION,8,3           ## @NEWS_G_EXTENSION
	.comm	_R,8,3                          ## @R
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_Q,8,3                          ## @Q
	.comm	_QN,8,3                         ## @QN
	.comm	_NEWS_COMM_EXTENSION,8,3        ## @NEWS_COMM_EXTENSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set %slist%d 0 0 %d\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"user"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_news_generate_preget_query     ; -- Begin function news_generate_preget_query
	.p2align	2
_news_generate_preget_query:            ; @news_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	w24, [x8, w4, sxtw #2]
	cbz	w24, LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x19, x0
Lloh3:
	adrp	x8, _Rfirst@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Rfirst@GOTPAGEOFF]
	sxtw	x9, w4
Lloh5:
	ldr	x8, [x8]
	ldr	w25, [x8, x9, lsl #2]
Lloh6:
	adrp	x21, _NEWS_UG_EXTENSION@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NEWS_UG_EXTENSION@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh8:
	adrp	x23, _NEWS_G_EXTENSION@GOTPAGE
Lloh9:
	ldr	x23, [x23, _NEWS_G_EXTENSION@GOTPAGEOFF]
	ldr	x9, [x23]
	orr	x9, x8, x9
	cmp	x9, #0
	mov	w9, #12336
	movk	w9, #12848, lsl #16
	mov	w10, #808464432
	csel	w9, w10, w9, ne
Lloh10:
	adrp	x22, _R@GOTPAGE
Lloh11:
	ldr	x22, [x22, _R@GOTPAGEOFF]
	ldr	x10, [x22]
	str	w9, [x10]
	ldr	x9, [x23]
	orr	x8, x8, x9
	cmp	x8, #0
	mov	w8, #3
	csinc	w8, w8, wzr, eq
	mul	w8, w8, w24
Lloh12:
	adrp	x9, _MAX_RES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_RES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x26, #0
Lloh15:
	adrp	x27, _Q@GOTPAGE
Lloh16:
	ldr	x27, [x27, _Q@GOTPAGEOFF]
Lloh17:
	adrp	x28, _QN@GOTPAGE
Lloh18:
	ldr	x28, [x28, _QN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x25
	sxtw	x8, w8
	add	x10, x8, w25, sxtw #1
	ldr	w11, [x9, x10, lsl #2]
	ldr	x12, [x22]
	add	w13, w26, w26, lsl #1
	add	w14, w13, #1
	str	w11, [x12, w14, uxtw #2]
	add	x9, x9, w10, sxtw #2
	ldr	w10, [x9, #4]
	add	w11, w13, #2
	str	w10, [x12, w11, uxtw #2]
	ldr	w9, [x9, #8]
	add	w10, w13, #3
	str	w9, [x12, w10, uxtw #2]
	add	x26, x26, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x28]
	ldr	w25, [x9, x8, lsl #2]
	cmp	x26, x24
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w8, w25
	lsr	w0, w8, #31
	bl	_assert
	ldr	x8, [x21]
	ldr	x10, [x23]
	ldr	x9, [x27]
	orr	x8, x8, x10
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w25
	ldr	w9, [x9, w25, sxtw #2]
	ldr	x10, [x22]
	add	x26, x26, #1
	str	w9, [x10, x26, lsl #2]
	b	LBB0_4
LBB0_7:
	cmn	w25, #1
	ccmp	w24, #0, #4, eq
	cset	w0, gt
	bl	_assert
Lloh19:
	adrp	x8, _NEWS_COMM_EXTENSION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NEWS_COMM_EXTENSION@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	w9, w24, w24, lsl #1
	cmp	x8, #0
	csel	w24, w24, w9, eq
	cbz	x8, LBB0_10
; %bb.8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	ldr	x8, [x21]
	ldr	x9, [x23]
	orr	x8, x8, x9
	cmp	x8, #0
	cset	w0, ne
LBB0_11:
	bl	_assert
	ldr	x8, [x21]
	ldr	x9, [x23]
Lloh22:
	adrp	x10, l_.str.2@PAGE
Lloh23:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh24:
	adrp	x11, l_.str.1@PAGE
Lloh25:
	add	x11, x11, l_.str.1@PAGEOFF
	orr	x8, x8, x9
	cmp	x8, #0
	csel	x2, x11, x10, ne
	ldr	w3, [x20]
	lsl	w8, w24, #2
	add	w20, w8, #4
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_sprintf
	mov	x21, x0
	add	x0, x19, w0, sxtw
	ldr	x1, [x22]
	mov	x2, x20
	bl	_memcpy
	add	w0, w21, w20
LBB0_12:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_Rlen,8,3                       ; @Rlen
	.comm	_Rfirst,8,3                     ; @Rfirst
	.comm	_NEWS_UG_EXTENSION,8,3          ; @NEWS_UG_EXTENSION
	.comm	_NEWS_G_EXTENSION,8,3           ; @NEWS_G_EXTENSION
	.comm	_R,8,3                          ; @R
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_Q,8,3                          ; @Q
	.comm	_QN,8,3                         ; @QN
	.comm	_NEWS_COMM_EXTENSION,8,3        ; @NEWS_COMM_EXTENSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set %slist%d 0 0 %d\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"user"

l_.str.2:                               ; @.str.2
	.asciz	"object"

.subsections_via_symbols
