	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_init_ddbridge              ## -- Begin function ddb_init_ddbridge
	.p2align	4, 0x90
_ddb_init_ddbridge:                     ## @ddb_init_ddbridge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_dma_buf_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %ecx
	cmpl	$8, %edx
	jl	LBB0_2
## %bb.1:
	movl	$32, %ecx
	cmpl	$33, %edx
	jb	LBB0_3
LBB0_2:
	movl	%ecx, (%rax)
LBB0_3:
	movq	_dma_buf_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:
	movl	$43, %ecx
	cmpl	$44, %edx
	jae	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	$1, %ecx
LBB0_6:
	movl	%ecx, (%rax)
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ddb_class_create
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movq	_ddb_wq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movl	$1, %edi
	movl	$-1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ddb_exit_ddbridge              ## TAILCALL
LBB0_8:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_buf_num,4,2                ## @dma_buf_num
	.comm	_dma_buf_size,4,2               ## @dma_buf_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ddbridge"

	.comm	_ddb_wq,4,2                     ## @ddb_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_init_ddbridge              ; -- Begin function ddb_init_ddbridge
	.p2align	2
_ddb_init_ddbridge:                     ; @ddb_init_ddbridge
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _dma_buf_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma_buf_num@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #8
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #8
	b	LBB0_4
LBB0_2:
	cmp	w9, #33
	b.lo	LBB0_5
; %bb.3:
	mov	w9, #32
LBB0_4:
	str	w9, [x8]
LBB0_5:
Lloh2:
	adrp	x8, _dma_buf_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dma_buf_size@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	cmp	w9, #44
	b.lo	LBB0_10
; %bb.7:
	mov	w9, #43
	b	LBB0_9
LBB0_8:
	mov	w9, #1
LBB0_9:
	str	w9, [x8]
LBB0_10:
	bl	_ddb_class_create
	tbnz	x0, #63, LBB0_13
; %bb.11:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_alloc_workqueue
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _ddb_wq@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ddb_wq@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	cbz	w8, LBB0_14
; %bb.12:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #1
	mov	w1, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ddb_exit_ddbridge
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_buf_num,4,2                ; @dma_buf_num
	.comm	_dma_buf_size,4,2               ; @dma_buf_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ddbridge"

	.comm	_ddb_wq,4,2                     ; @ddb_wq
.subsections_via_symbols
