	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_worker_stop                 ## -- Begin function db_worker_stop
	.p2align	4, 0x90
_db_worker_stop:                        ## @db_worker_stop
	.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
	movq	_db_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_mtx@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	_ring@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_ring_put_exit
	movq	_cnd@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_cnd_signal
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	_thrd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_thrd_join
	movq	%rbx, %rdi
	callq	_cnd_destroy
	movq	_load_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_destroy
	movq	%r15, %rdi
	callq	_mtx_destroy
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ring_free                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db_enabled,4,2                 ## @db_enabled
	.comm	_mtx,4,2                        ## @mtx
	.comm	_ring,4,2                       ## @ring
	.comm	_cnd,4,2                        ## @cnd
	.comm	_thrd,4,2                       ## @thrd
	.comm	_load_mtx,4,2                   ## @load_mtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_worker_stop                 ; -- Begin function db_worker_stop
	.p2align	2
_db_worker_stop:                        ; @db_worker_stop
	.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
Lloh0:
	adrp	x8, _db_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _mtx@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
Lloh5:
	adrp	x20, _ring@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ring@GOTPAGEOFF]
	mov	x0, x20
	bl	_ring_put_exit
Lloh7:
	adrp	x21, _cnd@GOTPAGE
Lloh8:
	ldr	x21, [x21, _cnd@GOTPAGEOFF]
	mov	x0, x21
	bl	_cnd_signal
	mov	x0, x19
	bl	_mtx_unlock
Lloh9:
	adrp	x8, _thrd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _thrd@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_thrd_join
	mov	x0, x21
	bl	_cnd_destroy
Lloh12:
	adrp	x0, _load_mtx@GOTPAGE
Lloh13:
	ldr	x0, [x0, _load_mtx@GOTPAGEOFF]
	bl	_mtx_destroy
	mov	x0, x19
	bl	_mtx_destroy
	mov	x0, x20
	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	_ring_free
LBB0_2:
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_db_enabled,4,2                 ; @db_enabled
	.comm	_mtx,4,2                        ; @mtx
	.comm	_ring,4,2                       ; @ring
	.comm	_cnd,4,2                        ; @cnd
	.comm	_thrd,4,2                       ; @thrd
	.comm	_load_mtx,4,2                   ; @load_mtx
.subsections_via_symbols
