	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_handle_error
_pdc_handle_error:                      ## @pdc_handle_error
	.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
	callq	_pdc_first_active
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	callq	_list_del
	leaq	8(%rbx), %rdi
	leaq	4(%rbx), %r15
	movl	4(%rbx), %esi
	callq	_list_splice_init
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pdc_first_active
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pdc_dostart
LBB0_2:
	movq	%rbx, %rdi
	callq	_chan2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_crit
	movq	%rbx, %rdi
	callq	_chan2dev
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_crit
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pdc_chain_complete             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad descriptor submitted\n"

L_.str.1:                               ## @.str.1
	.asciz	"descriptor cookie: %d\n"

	.no_dead_strip	_pdc_handle_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_handle_error
_pdc_handle_error:                      ; @pdc_handle_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_pdc_first_active
	mov	x20, x0
	add	x0, x0, #4
	bl	_list_del
	mov	x21, x19
	ldr	w1, [x21, #4]!
	add	x0, x21, #4
	bl	_list_splice_init
	mov	x0, x21
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pdc_first_active
	mov	x1, x0
	mov	x0, x19
	bl	_pdc_dostart
LBB0_2:
	mov	x0, x19
	bl	_chan2dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_crit
	mov	x0, x19
	bl	_chan2dev
	ldr	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_crit
	mov	x0, x19
	mov	x1, 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
	add	sp, sp, #64
	b	_pdc_chain_complete
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad descriptor submitted\n"

l_.str.1:                               ; @.str.1
	.asciz	"descriptor cookie: %d\n"

	.no_dead_strip	_pdc_handle_error
.subsections_via_symbols
