	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consider_writing
_consider_writing:                      ## @consider_writing
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_OP_MADE_PROGRESS@GOTPCREL(%rip), %r15
	movq	_OP_BLOCKED@GOTPCREL(%rip), %r14
	movq	_EV_READ@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	movq	_OP_ERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	jne	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 32(%r12)
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_do_read
	movl	%eax, %ebx
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bufferevent_trigger_nolock_
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, 32(%r12)
	jne	LBB0_25
LBB0_6:
	movq	24(%r12), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.8:
	movq	8(%r13), %r15
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_WRITE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_do_write
	movq	_OP_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 16(%r12)
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_evbuffer_get_length
	movq	(%r13), %rbx
	cmpq	%rbx, %rax
	jge	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_18
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%r13, %r13
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_evbuffer_get_length
	subl	%eax, %ebx
	jmp	LBB0_20
LBB0_21:
	cmpq	$0, 24(%r12)
	je	LBB0_22
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	cmpq	$0, 16(%r12)
	jne	LBB0_26
## %bb.24:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_25
LBB0_26:
	addq	$4, %r12
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_del                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_MADE_PROGRESS,4,2           ## @OP_MADE_PROGRESS
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_OP_ERR,4,2                     ## @OP_ERR
	.comm	_OP_BLOCKED,4,2                 ## @OP_BLOCKED
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_WRITE_FRAME,4,2                ## @WRITE_FRAME
	.no_dead_strip	_consider_writing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consider_writing
_consider_writing:                      ; @consider_writing
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x24, _OP_MADE_PROGRESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OP_MADE_PROGRESS@GOTPAGEOFF]
Lloh2:
	adrp	x22, _OP_ERR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OP_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x23, _OP_BLOCKED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _OP_BLOCKED@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EV_READ@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EV_READ@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w21
	b.ne	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #1024
	bl	_do_read
	mov	x21, x0
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_bufferevent_trigger_nolock_
	b	LBB0_1
LBB0_5:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_23
LBB0_6:
	ldr	x25, [x19, #24]
	cbz	x25, LBB0_8
; %bb.7:
	ldr	x21, [x25, #8]
	b	LBB0_9
LBB0_8:
	mov	x21, #0
LBB0_9:
Lloh8:
	adrp	x24, _EV_WRITE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EV_WRITE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _WRITE_FRAME@GOTPAGE
Lloh11:
	ldr	x26, [x26, _WRITE_FRAME@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_do_write
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_evbuffer_get_length
	cbz	x0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x21, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_evbuffer_get_length
	ldr	x27, [x25]
	cmp	x0, x27
	b.ge	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	x27, LBB0_21
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	x25, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x27, [x25]
	cbz	x27, LBB0_10
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_evbuffer_get_length
	sub	w1, w27, w0
	b	LBB0_11
LBB0_22:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_24
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	mov	x0, x20
	bl	_evbuffer_get_length
	cbz	x0, LBB0_27
; %bb.25:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_27
; %bb.26:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_23
LBB0_27:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_event_del
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_MADE_PROGRESS,4,2           ; @OP_MADE_PROGRESS
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_OP_ERR,4,2                     ; @OP_ERR
	.comm	_OP_BLOCKED,4,2                 ; @OP_BLOCKED
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_WRITE_FRAME,4,2                ; @WRITE_FRAME
	.no_dead_strip	_consider_writing
.subsections_via_symbols
