	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dblib_handle_doer
_dblib_handle_doer:                     ## @dblib_handle_doer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movl	(%r12), %edi
	leaq	4(%r12), %rsi
	callq	_dbsetuserdata
	movq	_FAIL@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_dbcmd
	cmpq	%rax, %rbx
	je	LBB0_7
## %bb.1:
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_dbsqlexec
	cmpq	%rax, %rbx
	je	LBB0_7
## %bb.2:
	movl	(%r12), %edi
	callq	_dbresults
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.3:
	movl	(%r12), %edi
	callq	_dbnextrow
	cmpq	(%r15), %rax
	jne	LBB0_4
LBB0_7:
	movl	$-1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %edi
	callq	_dbnumcols
	movl	(%r12), %edi
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	callq	_dbcanquery
	movl	(%r12), %edi
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBCOUNT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FAIL,8,3                       ## @FAIL
	.no_dead_strip	_dblib_handle_doer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dblib_handle_doer
_dblib_handle_doer:                     ; @dblib_handle_doer
	.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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w0, [x20]
	add	x1, x20, #4
	bl	_dbsetuserdata
Lloh0:
	adrp	x21, _FAIL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FAIL@GOTPAGEOFF]
	ldr	x22, [x21]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_dbcmd
	cmp	x22, x0
	b.eq	LBB0_4
; %bb.1:
	ldr	x19, [x21]
	ldr	w0, [x20]
	bl	_dbsqlexec
	cmp	x19, x0
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_dbresults
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_dbnextrow
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #-1
	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
LBB0_5:
	ldr	w0, [x20]
	bl	_dbnumcols
	mov	x8, x0
	ldr	w0, [x20]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	bl	_dbcanquery
	ldr	w0, [x20]
LBB0_7:
	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
	b	_DBCOUNT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FAIL,8,3                       ; @FAIL
	.no_dead_strip	_dblib_handle_doer
.subsections_via_symbols
