	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_read_trailer
_evhttp_read_trailer:                   ## @evhttp_read_trailer
	.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, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_bufferevent_get_input
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_evhttp_parse_headers_
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_EVREQ_HTTP_DATA_TOO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_evhttp_connection_fail_        ## TAILCALL
LBB0_1:
	cmpl	$132, %eax
	jne	LBB0_2
## %bb.4:
	movl	(%r14), %edi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bufferevent_disable
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_evhttp_connection_done         ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bufferevent_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVREQ_HTTP_DATA_TOO_LONG,4,2   ## @EVREQ_HTTP_DATA_TOO_LONG
	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_evhttp_read_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_read_trailer
_evhttp_read_trailer:                   ; @evhttp_read_trailer
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_bufferevent_get_input
	mov	x1, x0
	mov	x0, x20
	bl	_evhttp_parse_headers_
	sub	w8, w0, #130
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EVREQ_HTTP_DATA_TOO_LONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVREQ_HTTP_DATA_TOO_LONG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_evhttp_connection_fail_
LBB0_2:
	cmp	w0, #132
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _EV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_bufferevent_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_evhttp_connection_done
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _EV_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVREQ_HTTP_DATA_TOO_LONG,4,2   ; @EVREQ_HTTP_DATA_TOO_LONG
	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_evhttp_read_trailer
.subsections_via_symbols
