	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_send_error              ## -- Begin function evhttp_send_error
	.p2align	4, 0x90
_evhttp_send_error:                     ## @evhttp_send_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_evbuffer_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_evhttp_response_phrase_internal
	movq	%rax, %rbx
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_evhttp_response_code_
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movq	%rbx, %r8
	callq	_evbuffer_add_printf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_evhttp_send_page_
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evbuffer_free                  ## TAILCALL
LBB0_4:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_free         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<HTML><HEAD>\n<TITLE>%d %s</TITLE>\n</HEAD><BODY>\n<H1>%s</H1>\n</BODY></HTML>\n"

	.comm	_ERR_FORMAT,4,2                 ## @ERR_FORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_send_error              ; -- Begin function evhttp_send_error
	.p2align	2
_evhttp_send_error:                     ; @evhttp_send_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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_evbuffer_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	cbnz	x22, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_evhttp_response_phrase_internal
	mov	x22, x0
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_evhttp_response_code_
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	mov	x3, x22
	mov	x4, x22
	bl	_evbuffer_add_printf
	mov	x0, x19
	mov	x1, x20
	bl	_evhttp_send_page_
	mov	x0, x20
	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	_evbuffer_free
LBB0_4:
	ldr	w0, [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_free
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<HTML><HEAD>\n<TITLE>%d %s</TITLE>\n</HEAD><BODY>\n<H1>%s</H1>\n</BODY></HTML>\n"

	.comm	_ERR_FORMAT,4,2                 ; @ERR_FORMAT
.subsections_via_symbols
