	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlc_flush_packet              ## -- Begin function sqlc_flush_packet
	.p2align	4, 0x90
_sqlc_flush_packet:                     ## @sqlc_flush_packet
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	callq	*(%rax)
	movl	%eax, %r15d
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_SQLC_DATA
	movl	(%rax), %ecx
	addl	$4, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	cmovel	%edx, %ecx
	xorl	%edi, %edi
	cmpl	%r15d, %ecx
	sete	%dil
	callq	_assert
LBB0_4:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	cmpl	$16, %r15d
	setb	%dil
	callq	_assert
	leaq	_sqlc_flush_packet.pad_str(%rip), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_write_out
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sqlc_flush_query: padding with %d bytes\n"

.zerofill __DATA,__bss,_sqlc_flush_packet.pad_str,16,4 ## @sqlc_flush_packet.pad_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlc_flush_packet              ; -- Begin function sqlc_flush_packet
	.p2align	2
_sqlc_flush_packet:                     ; @sqlc_flush_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	blr	x8
	mov	x19, x0
	tbnz	w21, #31, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_SQLC_DATA
	ldr	w8, [x0]
	add	w9, w21, #4
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	sub	w8, w8, w9
	cmp	w9, #0
	csel	w8, wzr, w8, eq
	cmp	w8, w19
	cset	w0, eq
	bl	_assert
LBB0_3:
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_5:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.6:
	cmp	w19, #16
	cset	w0, lo
	bl	_assert
Lloh8:
	adrp	x21, _sqlc_flush_packet.pad_str@PAGE
Lloh9:
	add	x21, x21, _sqlc_flush_packet.pad_str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_memset
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_write_out
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sqlc_flush_query: padding with %d bytes\n"

.zerofill __DATA,__bss,_sqlc_flush_packet.pad_str,16,0 ; @sqlc_flush_packet.pad_str
.subsections_via_symbols
