	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_zerolength_write_done
_srpt_zerolength_write_done:            ## @srpt_zerolength_write_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	8(%rbx), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r14), %eax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_srpt_process_wait_list         ## TAILCALL
LBB0_1:
	movq	_CH_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_srpt_set_ch_state
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	addq	$12, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_2:
	movl	8(%rbx), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%d wc->status %d\n"

	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_CH_DISCONNECTED,4,2            ## @CH_DISCONNECTED
L_.str.1:                               ## @.str.1
	.asciz	"%s-%d: already disconnected.\n"

	.no_dead_strip	_srpt_zerolength_write_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_zerolength_write_done
_srpt_zerolength_write_done:            ; @srpt_zerolength_write_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	ldr	x19, [x0]
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_srpt_process_wait_list
LBB0_2:
Lloh5:
	adrp	x8, _CH_DISCONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CH_DISCONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_srpt_set_ch_state
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #12
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_schedule_work
LBB0_4:
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_pr_debug
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%d wc->status %d\n"

	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_CH_DISCONNECTED,4,2            ; @CH_DISCONNECTED
l_.str.1:                               ; @.str.1
	.asciz	"%s-%d: already disconnected.\n"

	.no_dead_strip	_srpt_zerolength_write_done
.subsections_via_symbols
