	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_request_cb
_dump_request_cb:                       ## @dump_request_cb
	.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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_evhttp_request_get_command
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.dump_request_cb(%rip), %rcx
	movslq	(%rcx,%rax,4), %rbx
	addq	%rcx, %rbx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.9(%rip), %rbx
LBB0_3:
	movq	%r14, %rdi
	callq	_evhttp_request_get_uri
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_printf
	movq	%r14, %rdi
	callq	_evhttp_request_get_input_headers
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.11(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	callq	_printf
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_evhttp_request_get_input_buffer
	movq	%rax, %rbx
	leaq	L_.str.12(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	-176(%rbp), %r15
	movq	_stdout@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_evbuffer_remove
	testl	%eax, %eax
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.13(%rip), %rdi
	callq	_puts
	leaq	L_.str.14(%rip), %rdx
	movq	%r14, %rdi
	movl	$200, %esi
	xorl	%ecx, %ecx
	callq	_evhttp_send_reply
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET"

L_.str.1:                               ## @.str.1
	.asciz	"POST"

L_.str.2:                               ## @.str.2
	.asciz	"HEAD"

L_.str.3:                               ## @.str.3
	.asciz	"PUT"

L_.str.4:                               ## @.str.4
	.asciz	"DELETE"

L_.str.5:                               ## @.str.5
	.asciz	"OPTIONS"

L_.str.6:                               ## @.str.6
	.asciz	"TRACE"

L_.str.7:                               ## @.str.7
	.asciz	"CONNECT"

L_.str.8:                               ## @.str.8
	.asciz	"PATCH"

L_.str.9:                               ## @.str.9
	.asciz	"unknown"

L_.str.10:                              ## @.str.10
	.asciz	"Received a %s request for %s\nHeaders:\n"

L_.str.11:                              ## @.str.11
	.asciz	"  %s: %s\n"

L_.str.12:                              ## @.str.12
	.asciz	"Input data: <<<"

	.comm	_stdout,4,2                     ## @stdout
L_.str.13:                              ## @.str.13
	.asciz	">>>"

L_.str.14:                              ## @.str.14
	.asciz	"OK"

	.no_dead_strip	_dump_request_cb
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.dump_request_cb
l_reltable.dump_request_cb:
	.long	L_.str.6-l_reltable.dump_request_cb
	.long	L_.str.3-l_reltable.dump_request_cb
	.long	L_.str.1-l_reltable.dump_request_cb
	.long	L_.str.8-l_reltable.dump_request_cb
	.long	L_.str.5-l_reltable.dump_request_cb
	.long	L_.str.2-l_reltable.dump_request_cb
	.long	L_.str-l_reltable.dump_request_cb
	.long	L_.str.4-l_reltable.dump_request_cb
	.long	L_.str.7-l_reltable.dump_request_cb

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_request_cb
_dump_request_cb:                       ; @dump_request_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_evhttp_request_get_command
	sub	w8, w0, #128
	cmp	w8, #8
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.dump_request_cb@PAGE
Lloh4:
	add	x9, x9, l_switch.table.dump_request_cb@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x20, l_.str.9@PAGE
Lloh6:
	add	x20, x20, l_.str.9@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_evhttp_request_get_uri
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.10@PAGE
Lloh8:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x20
	bl	_printf
	mov	x0, x19
	bl	_evhttp_request_get_input_headers
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.4:
Lloh9:
	adrp	x20, l_.str.11@PAGE
Lloh10:
	add	x20, x20, l_.str.11@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x1, x2, [x21]
	mov	x0, x20
	bl	_printf
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_evhttp_request_get_input_buffer
	mov	x20, x0
Lloh11:
	adrp	x0, l_.str.12@PAGE
Lloh12:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_evbuffer_get_length
	cbz	x0, LBB0_11
; %bb.7:
Lloh13:
	adrp	x21, _stdout@GOTPAGE
Lloh14:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_evbuffer_get_length
	cbz	x0, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #128
	bl	_evbuffer_remove
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x0
	ldr	w3, [x21]
	add	x0, sp, #8
	mov	w1, #1
	bl	_fwrite
	b	LBB0_8
LBB0_11:
Lloh15:
	adrp	x0, l_.str.13@PAGE
Lloh16:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_puts
Lloh17:
	adrp	x2, l_.str.14@PAGE
Lloh18:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w1, #200
	mov	x3, #0
	bl	_evhttp_send_reply
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET"

l_.str.1:                               ; @.str.1
	.asciz	"POST"

l_.str.2:                               ; @.str.2
	.asciz	"HEAD"

l_.str.3:                               ; @.str.3
	.asciz	"PUT"

l_.str.4:                               ; @.str.4
	.asciz	"DELETE"

l_.str.5:                               ; @.str.5
	.asciz	"OPTIONS"

l_.str.6:                               ; @.str.6
	.asciz	"TRACE"

l_.str.7:                               ; @.str.7
	.asciz	"CONNECT"

l_.str.8:                               ; @.str.8
	.asciz	"PATCH"

l_.str.9:                               ; @.str.9
	.asciz	"unknown"

l_.str.10:                              ; @.str.10
	.asciz	"Received a %s request for %s\nHeaders:\n"

l_.str.11:                              ; @.str.11
	.asciz	"  %s: %s\n"

l_.str.12:                              ; @.str.12
	.asciz	"Input data: <<<"

	.comm	_stdout,4,2                     ; @stdout
l_.str.13:                              ; @.str.13
	.asciz	">>>"

l_.str.14:                              ; @.str.14
	.asciz	"OK"

	.no_dead_strip	_dump_request_cb
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dump_request_cb
l_switch.table.dump_request_cb:
	.quad	l_.str.6
	.quad	l_.str.3
	.quad	l_.str.1
	.quad	l_.str.8
	.quad	l_.str.5
	.quad	l_.str.2
	.quad	l_.str
	.quad	l_.str.4
	.quad	l_.str.7

.subsections_via_symbols
