	.file	"extr_bufferevent_ratelim.c_bufferevent_set_max_single_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bufferevent_set_max_single_read
	.type	bufferevent_set_max_single_read, @function
bufferevent_set_max_single_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	call	BEV_LOCK@PLT
	mov	rdi, r12
	call	BEV_UPCAST@PLT
	test	rbp, rbp
	je	.L2
	cmp	QWORD PTR EV_SSIZE_MAX[rip], rbp
	jnb	.L3
.L2:
	mov	rbp, QWORD PTR MAX_SINGLE_READ_DEFAULT[rip]
.L3:
	mov	QWORD PTR [rax], rbp
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	call	evbuffer_set_max_read@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	BEV_UNLOCK@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bufferevent_set_max_single_read, .-bufferevent_set_max_single_read
	.comm	MAX_SINGLE_READ_DEFAULT,8,8
	.comm	EV_SSIZE_MAX,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bufferevent_ratelim.c_bufferevent_set_max_single_read.c"
	.text
	.align	2
	.global	bufferevent_set_max_single_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	bufferevent_set_max_single_read, %function
bufferevent_set_max_single_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	BEV_LOCK
	mov	r0, r5
	bl	BEV_UPCAST
	cmp	r4, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, r4
	bcs	.L3
.L2:
	ldr	r3, .L9+4
	ldr	r4, [r3]
.L3:
	mov	r1, r4
	str	r4, [r0]
	ldr	r0, [r5]
	bl	evbuffer_set_max_read
	mov	r4, r0
	mov	r0, r5
	bl	BEV_UNLOCK
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	EV_SSIZE_MAX
	.word	MAX_SINGLE_READ_DEFAULT
	.size	bufferevent_set_max_single_read, .-bufferevent_set_max_single_read
	.comm	MAX_SINGLE_READ_DEFAULT,4,4
	.comm	EV_SSIZE_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
