	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dblib_handle_last_id           ## -- Begin function dblib_handle_last_id
	.p2align	4, 0x90
_dblib_handle_last_id:                  ## @dblib_handle_last_id
	.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
	movq	%rdx, %r14
	movq	(%rdi), %r12
	movq	_FAIL@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dbcmd
	cmpq	%rax, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_dbsqlexec
	cmpq	%rax, %rbx
	jne	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_4:
	movl	(%r12), %edi
	callq	_dbresults
	xorl	%r13d, %r13d
	movl	(%r12), %edi
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.5:
	movq	_NO_MORE_RESULTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.6:
	callq	_dbnextrow
	xorl	%r13d, %r13d
	movl	(%r12), %edi
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.7:
	movq	_NO_MORE_ROWS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.8:
	movl	$1, %esi
	callq	_dbdatlen
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$32, %edi
	callq	_emalloc
	movq	%rax, %r13
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_dbcoltype
	movl	%eax, %r15d
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_dbdata
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_dbdatlen
	movq	_SQLCHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	$-1, (%rsp)
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%rax, %rcx
	movq	%r13, %r9
	callq	_dbconvert
	movq	%rax, (%r14)
	jmp	LBB0_11
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movl	(%r12), %edi
LBB0_12:
	callq	_dbcancel
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAIL,8,3                       ## @FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT @@IDENTITY"

	.comm	_NO_MORE_RESULTS,8,3            ## @NO_MORE_RESULTS
	.comm	_NO_MORE_ROWS,8,3               ## @NO_MORE_ROWS
	.comm	_SQLCHAR,4,2                    ## @SQLCHAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dblib_handle_last_id           ; -- Begin function dblib_handle_last_id
	.p2align	2
_dblib_handle_last_id:                  ; @dblib_handle_last_id
	.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	x19, x2
	ldr	x23, [x0]
Lloh0:
	adrp	x20, _FAIL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FAIL@GOTPAGEOFF]
	ldr	x21, [x20]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dbcmd
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	x21, [x20]
	ldr	w0, [x23]
	bl	_dbsqlexec
	cmp	x21, x0
	b.ne	LBB0_3
LBB0_2:
	mov	x20, #0
	b	LBB0_11
LBB0_3:
	ldr	w0, [x23]
	bl	_dbresults
	mov	x8, x0
	ldr	x9, [x20]
Lloh4:
	adrp	x10, _NO_MORE_RESULTS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NO_MORE_RESULTS@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	ldr	w0, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.4:
	bl	_dbnextrow
	mov	x8, x0
	ldr	x9, [x20]
Lloh7:
	adrp	x10, _NO_MORE_ROWS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NO_MORE_ROWS@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	w0, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
LBB0_5:
	mov	x20, #0
	b	LBB0_10
LBB0_6:
	mov	w1, #1
	bl	_dbdatlen
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #32
	bl	_emalloc
	mov	x20, x0
	ldr	w0, [x23]
	mov	w1, #1
	bl	_dbcoltype
	mov	x21, x0
	ldr	w0, [x23]
	mov	w1, #1
	bl	_dbdata
	mov	x22, x0
	ldr	w0, [x23]
	mov	w1, #1
	bl	_dbdatlen
	mov	x3, x0
Lloh10:
	adrp	x8, _SQLCHAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLCHAR@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, #0
	mov	x1, x21
	mov	x2, x22
	mov	x5, x20
	mov	w6, #-1
	bl	_dbconvert
	str	x0, [x19]
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldr	w0, [x23]
LBB0_10:
	bl	_dbcancel
LBB0_11:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FAIL,8,3                       ; @FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT @@IDENTITY"

	.comm	_NO_MORE_RESULTS,8,3            ; @NO_MORE_RESULTS
	.comm	_NO_MORE_ROWS,8,3               ; @NO_MORE_ROWS
	.comm	_SQLCHAR,4,2                    ; @SQLCHAR
.subsections_via_symbols
