	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_connection_read_on_write_error
_evhttp_connection_read_on_write_error: ## @evhttp_connection_read_on_write_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
	movl	(%rdi), %eax
	movq	_EVHTTP_CON_READING_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_EVREQ_HTTP_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_fail_        ## TAILCALL
LBB0_1:
	movq	_EVHTTP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movl	4(%rbx), %edi
	callq	_bufferevent_get_output
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_evbuffer_unfreeze
	movq	%r14, %rdi
	callq	_evbuffer_get_length
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_evbuffer_drain
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_evbuffer_freeze
	movq	%rbx, %rdi
	callq	_evhttp_start_read_
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVHTTP_CON_READING_ERROR,4,2   ## @EVHTTP_CON_READING_ERROR
	.comm	_EVREQ_HTTP_EOF,4,2             ## @EVREQ_HTTP_EOF
	.comm	_EVHTTP_RESPONSE,4,2            ## @EVHTTP_RESPONSE
	.no_dead_strip	_evhttp_connection_read_on_write_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_connection_read_on_write_error
_evhttp_connection_read_on_write_error: ; @evhttp_connection_read_on_write_error
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _EVHTTP_CON_READING_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EVHTTP_CON_READING_ERROR@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh2:
	adrp	x8, _EVREQ_HTTP_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVREQ_HTTP_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_evhttp_connection_fail_
LBB0_2:
Lloh5:
	adrp	x8, _EVHTTP_RESPONSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVHTTP_RESPONSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	w0, [x19, #4]
	bl	_bufferevent_get_output
	mov	x20, x0
	mov	w1, #1
	bl	_evbuffer_unfreeze
	mov	x0, x20
	bl	_evbuffer_get_length
	mov	x1, x0
	mov	x0, x20
	bl	_evbuffer_drain
	mov	x0, x20
	mov	w1, #1
	bl	_evbuffer_freeze
	mov	x0, x19
	bl	_evhttp_start_read_
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EVHTTP_CON_READING_ERROR,4,2   ; @EVHTTP_CON_READING_ERROR
	.comm	_EVREQ_HTTP_EOF,4,2             ; @EVREQ_HTTP_EOF
	.comm	_EVHTTP_RESPONSE,4,2            ; @EVHTTP_RESPONSE
	.no_dead_strip	_evhttp_connection_read_on_write_error
.subsections_via_symbols
