	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_make_header_response
_evhttp_make_header_response:           ## @evhttp_make_header_response
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_evhttp_is_connection_keepalive
	movl	%eax, %r15d
	movl	8(%r14), %edi
	callq	_bufferevent_get_output
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_evbuffer_add_printf
	cmpl	$1, (%rbx)
	jne	LBB0_10
## %bb.1:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	callq	_evhttp_maybe_add_date_header
	movl	4(%rbx), %eax
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_evhttp_add_header
	movl	4(%rbx), %eax
LBB0_6:
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_evhttp_response_needs_body
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	12(%rbx), %r15d
	movl	20(%rbx), %edi
	callq	_evbuffer_get_length
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_evhttp_maybe_add_content_length_header
LBB0_10:
	movq	%rbx, %rdi
	callq	_evhttp_response_needs_body
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movl	12(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_evhttp_find_header
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	(%r14), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movl	12(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_evhttp_add_header
LBB0_14:
	movl	8(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_evhttp_is_connection_close
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_evhttp_remove_header
	movq	_EVHTTP_PROXY_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_17
## %bb.16:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_evhttp_add_header
LBB0_17:
	movl	12(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_remove_header           ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP/%d.%d %d %s\r\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"keep-alive"

L_.str.3:                               ## @.str.3
	.asciz	"Content-Type"

	.comm	_EVHTTP_PROXY_REQUEST,4,2       ## @EVHTTP_PROXY_REQUEST
L_.str.4:                               ## @.str.4
	.asciz	"close"

L_.str.5:                               ## @.str.5
	.asciz	"Proxy-Connection"

	.no_dead_strip	_evhttp_make_header_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_make_header_response
_evhttp_make_header_response:           ; @evhttp_make_header_response
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	bl	_evhttp_is_connection_keepalive
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_bufferevent_get_output
	ldp	w2, w3, [x19]
	ldp	w5, w4, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_evbuffer_add_printf
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_evhttp_maybe_add_date_header
	ldr	w8, [x19, #4]
LBB0_3:
	cbnz	w8, LBB0_6
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_evhttp_add_header
	ldr	w8, [x19, #4]
LBB0_6:
	cmp	w8, #0
	b.gt	LBB0_8
; %bb.7:
	cbz	w21, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_evhttp_response_needs_body
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w21, [x19, #12]
	ldr	w0, [x19, #20]
	bl	_evbuffer_get_length
	mov	x1, x0
	mov	x0, x21
	bl	_evhttp_maybe_add_content_length_header
LBB0_10:
	mov	x0, x19
	bl	_evhttp_response_needs_body
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_evhttp_find_header
	cbnz	x0, LBB0_14
; %bb.12:
	ldr	x8, [x20]
	ldr	x2, [x8]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_evhttp_add_header
LBB0_14:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_evhttp_is_connection_close
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [x19, #12]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_evhttp_remove_header
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _EVHTTP_PROXY_REQUEST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EVHTTP_PROXY_REQUEST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
	ldr	w0, [x19, #12]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_evhttp_add_header
LBB0_17:
	ldr	w0, [x19, #12]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	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_remove_header
LBB0_18:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP/%d.%d %d %s\r\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"keep-alive"

l_.str.3:                               ; @.str.3
	.asciz	"Content-Type"

	.comm	_EVHTTP_PROXY_REQUEST,4,2       ; @EVHTTP_PROXY_REQUEST
l_.str.4:                               ; @.str.4
	.asciz	"close"

l_.str.5:                               ; @.str.5
	.asciz	"Proxy-Connection"

	.no_dead_strip	_evhttp_make_header_response
.subsections_via_symbols
