	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pending_data
_send_pending_data:                     ## @send_pending_data
	.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	_cur_resp@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.3:
	movl	%edi, %ebx
	movq	%r14, %rdi
	callq	_io_buffer_head
	movq	(%r14), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_io_buffer_advance
	cmpq	$0, (%r14)
	movq	_write_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_2
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mevent_enable                  ## TAILCALL
LBB0_1:
	movq	_write_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mevent_disable                 ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close_connection               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_resp,8,3                   ## @cur_resp
	.comm	_write_event,4,2                ## @write_event
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write to GDB socket failed"

	.no_dead_strip	_send_pending_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pending_data
_send_pending_data:                     ; @send_pending_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _cur_resp@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cur_resp@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_io_buffer_head
	mov	x1, x0
	ldr	x2, [x19]
	mov	x0, x20
	bl	_write
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_io_buffer_advance
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _write_event@GOTPAGE
Lloh3:
	ldr	x9, [x9, _write_event@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	cbz	x8, LBB0_5
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mevent_enable
LBB0_4:
Lloh5:
	adrp	x8, _write_event@GOTPAGE
Lloh6:
	ldr	x8, [x8, _write_event@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mevent_disable
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close_connection
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_resp,8,3                   ; @cur_resp
	.comm	_write_event,4,2                ; @write_event
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write to GDB socket failed"

	.no_dead_strip	_send_pending_data
.subsections_via_symbols
