	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_unredirect
_ddb_unredirect:                        ## @ddb_unredirect
	.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	%rdi, %rbx
	movq	_redirect_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_redirect_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.4:
	movq	(%rsi), %rdx
	movq	8(%rsi), %r15
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	8(%rdx), %rax
	movq	8(%rax), %rsi
	movq	%r14, (%rsi)
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, (%rax)
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	movl	(%rdx), %edx
	callq	_ddb_redirect_dma
	movq	8(%rbx), %rcx
LBB0_7:
	movq	(%rcx), %rax
	movq	$0, (%rax)
	movq	(%rcx), %rdi
	callq	_ddb_set_dma_table
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
LBB0_8:
	movq	%r15, 8(%r14)
	movq	(%rcx), %rcx
	movq	$0, 8(%rcx)
LBB0_9:
	movq	$0, (%r14)
	movq	$0, (%rax)
	movq	%r14, %rdi
	callq	_ddb_set_dma_table
LBB0_10:
	movq	_redirect_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_redirect_lock,4,2              ## @redirect_lock
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ddb_unredirect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_unredirect
_ddb_unredirect:                        ; @ddb_unredirect
	.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	x20, x0
Lloh0:
	adrp	x0, _redirect_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _redirect_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _redirect_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _redirect_lock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	ldr	x19, [x8]
	cbz	x19, LBB0_10
; %bb.3:
	ldr	x9, [x20, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_9
; %bb.4:
	ldp	x10, x21, [x10]
	cbz	x10, LBB0_8
; %bb.5:
	ldr	x8, [x10, #8]
	ldp	x8, x11, [x8]
	str	x19, [x11]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	str	x21, [x8]
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	ldr	w2, [x10]
	bl	_ddb_redirect_dma
	ldr	x9, [x20, #8]
LBB0_7:
	ldr	x8, [x9]
	str	xzr, [x8]
	ldr	x0, [x9]
	bl	_ddb_set_dma_table
	ldp	x8, x9, [x20]
LBB0_8:
	str	x21, [x19, #8]
	ldr	x9, [x9]
	str	xzr, [x9, #8]
LBB0_9:
	str	xzr, [x19]
	str	xzr, [x8]
	mov	x0, x19
	bl	_ddb_set_dma_table
LBB0_10:
Lloh7:
	adrp	x0, _redirect_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _redirect_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_redirect_lock,4,2              ; @redirect_lock
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ddb_unredirect
.subsections_via_symbols
