	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_allowed_methods_eventcb
_http_allowed_methods_eventcb:          ## @http_allowed_methods_eventcb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	movl	$4104, %eax                     ## imm = 0x1008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orw	(%rax), %cx
	testw	%si, %cx
	je	LBB0_6
## %bb.1:
	movq	%rdx, %rbx
	callq	_bufferevent_get_input
	leaq	-4112(%rbp), %rsi
	movl	%eax, %edi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_evbuffer_remove
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%eax, %eax
	movb	$0, -4112(%rbp,%rax)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	leaq	-4112(%rbp), %rdi
	callq	_strdup
	movq	%rax, (%rbx)
LBB0_5:
	movq	_exit_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_event_base_loopexit
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$4104, %rsp                     ## imm = 0x1008
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_ERROR,2,1            ## @BEV_EVENT_ERROR
	.comm	_BEV_EVENT_EOF,2,1              ## @BEV_EVENT_EOF
	.comm	_exit_base,4,2                  ## @exit_base
	.no_dead_strip	_http_allowed_methods_eventcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_allowed_methods_eventcb
_http_allowed_methods_eventcb:          ; @http_allowed_methods_eventcb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
Lloh2:
	adrp	x8, _BEV_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BEV_EVENT_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _BEV_EVENT_EOF@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BEV_EVENT_EOF@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldrh	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	tst	w1, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x2
	bl	_bufferevent_get_input
	add	x20, sp, #8
	add	x1, sp, #8
	mov	w2, #4095
	bl	_evbuffer_remove
	tbnz	w0, #31, LBB0_5
; %bb.2:
	strb	wzr, [x20, w0, uxtw]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	add	x0, sp, #8
	bl	_strdup
	str	x0, [x19]
LBB0_5:
Lloh9:
	adrp	x8, _exit_base@GOTPAGE
Lloh10:
	ldr	x8, [x8, _exit_base@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_event_base_loopexit
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_ERROR,2,1            ; @BEV_EVENT_ERROR
	.comm	_BEV_EVENT_EOF,2,1              ; @BEV_EVENT_EOF
	.comm	_exit_base,4,2                  ; @exit_base
	.no_dead_strip	_http_allowed_methods_eventcb
.subsections_via_symbols
