	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_worker_run                  ## -- Begin function db_worker_run
	.p2align	4, 0x90
_db_worker_run:                         ## @db_worker_run
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mtx@GOTPCREL(%rip), %rbx
	movq	_ring@GOTPCREL(%rip), %r14
	leaq	-72(%rbp), %r15
	movq	_cnd@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_1
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	__db_commit
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, %rdi
	callq	_mtx_lock
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ring_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_cnd_wait
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movl	-72(%rbp), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movl	-52(%rbp), %r8d
	movl	-56(%rbp), %r9d
	callq	__db_insert_light
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-60(%rbp), %edi
	movl	-68(%rbp), %edx
	movl	-64(%rbp), %esi
	callq	__db_set_key
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movl	-52(%rbp), %r8d
	movl	-56(%rbp), %r9d
	callq	__db_insert_block
	jmp	LBB0_1
LBB0_10:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_mtx,4,2                        ## @mtx
	.comm	_ring,4,2                       ## @ring
	.comm	_cnd,4,2                        ## @cnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_worker_run                  ; -- Begin function db_worker_run
	.p2align	2
_db_worker_run:                         ; @db_worker_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x19, _mtx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mtx@GOTPAGEOFF]
Lloh2:
	adrp	x20, _ring@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ring@GOTPAGEOFF]
Lloh4:
	adrp	x22, lJTI0_0@PAGE
Lloh5:
	add	x22, x22, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x21, _cnd@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cnd@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	__db_commit
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x19
	bl	_mtx_lock
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x20
	bl	_ring_get
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x21
	mov	x1, x19
	bl	_cnd_wait
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_mtx_unlock
	ldr	w8, [sp]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [sp, #8]
	ldp	w3, w2, [sp, #24]
	ldp	w5, w4, [sp, #16]
	bl	__db_insert_light
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [sp, #8]
	ldr	w2, [sp, #4]
	bl	__db_set_key
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [sp, #8]
	ldp	w3, w2, [sp, #24]
	ldp	w5, w4, [sp, #16]
	bl	__db_insert_block
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
                                        ; -- End function
	.comm	_mtx,4,2                        ; @mtx
	.comm	_ring,4,2                       ; @ring
	.comm	_cnd,4,2                        ; @cnd
.subsections_via_symbols
