	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_hook_remove_header
_rpc_hook_remove_header:                ## @rpc_hook_remove_header
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %r15
	movq	%r15, %rsi
	callq	_evhttp_find_header
	movq	%rax, %rbx
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_evhttp_remove_header
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_evhttp_add_header
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_evrpc_hook_find_meta
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$5, -48(%rbp)
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_evrpc_hook_get_connection
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_EVRPC_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X-Hook"

L_.str.1:                               ## @.str.1
	.asciz	"X-Pool-Hook"

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

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

	.comm	_EVRPC_CONTINUE,4,2             ## @EVRPC_CONTINUE
	.no_dead_strip	_rpc_hook_remove_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_hook_remove_header
_rpc_hook_remove_header:                ; @rpc_hook_remove_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x1, x22
	bl	_evhttp_find_header
	mov	x23, x0
	stp	xzr, xzr, [sp]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	mov	x1, x20
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [x21]
	mov	x1, x22
	bl	_evhttp_remove_header
	ldr	w0, [x21]
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
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_evrpc_hook_find_meta
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [sp]
	cmp	x8, #5
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_evrpc_hook_get_connection
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh8:
	adrp	x8, _EVRPC_CONTINUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVRPC_CONTINUE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X-Hook"

l_.str.1:                               ; @.str.1
	.asciz	"X-Pool-Hook"

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

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

	.comm	_EVRPC_CONTINUE,4,2             ; @EVRPC_CONTINUE
	.no_dead_strip	_rpc_hook_remove_header
.subsections_via_symbols
