	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_make_header_request
_evhttp_make_header_request:            ## @evhttp_make_header_request
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	8(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_evhttp_remove_header
	movq	(%rbx), %rdi
	callq	_evhttp_method
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_bufferevent_get_output
	movl	24(%rbx), %ecx
	movl	16(%rbx), %r9d
	movl	20(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_evbuffer_add_printf
	movq	(%rbx), %rax
	movq	_EVHTTP_REQ_POST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_EVHTTP_REQ_PUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_evhttp_find_header
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EV_SIZE_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	12(%rbx), %edi
	callq	_evbuffer_get_length
	movl	%eax, %edi
	callq	_EV_SIZE_ARG
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$22, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_evutil_snprintf
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_evhttp_add_header
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Proxy-Connection"

L_.str.1:                               ## @.str.1
	.asciz	"%s %s HTTP/%d.%d\r\n"

	.comm	_EVHTTP_REQ_POST,8,3            ## @EVHTTP_REQ_POST
	.comm	_EVHTTP_REQ_PUT,8,3             ## @EVHTTP_REQ_PUT
L_.str.2:                               ## @.str.2
	.asciz	"Content-Length"

	.comm	_EV_SIZE_FMT,4,2                ## @EV_SIZE_FMT
	.no_dead_strip	_evhttp_make_header_request
.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_request
_evhttp_make_header_request:            ; @evhttp_make_header_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x1, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_evhttp_remove_header
	ldr	x0, [x19]
	bl	_evhttp_method
	mov	x21, x0
	ldr	w0, [x20]
	bl	_bufferevent_get_output
	ldp	w4, w3, [x19, #20]
	ldr	w5, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_evbuffer_add_printf
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _EVHTTP_REQ_POST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EVHTTP_REQ_POST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _EVHTTP_REQ_PUT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _EVHTTP_REQ_PUT@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_evhttp_find_header
	cbnz	x0, LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _EV_SIZE_FMT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_SIZE_FMT@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	w0, [x19, #12]
	bl	_evbuffer_get_length
	bl	_EV_SIZE_ARG
	mov	x3, x0
	add	x0, sp, #2
	mov	w1, #22
	mov	x2, x20
	bl	_evutil_snprintf
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #2
	bl	_evhttp_add_header
LBB0_3:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Proxy-Connection"

l_.str.1:                               ; @.str.1
	.asciz	"%s %s HTTP/%d.%d\r\n"

	.comm	_EVHTTP_REQ_POST,8,3            ; @EVHTTP_REQ_POST
	.comm	_EVHTTP_REQ_PUT,8,3             ; @EVHTTP_REQ_PUT
l_.str.2:                               ; @.str.2
	.asciz	"Content-Length"

	.comm	_EV_SIZE_FMT,4,2                ; @EV_SIZE_FMT
	.no_dead_strip	_evhttp_make_header_request
.subsections_via_symbols
