	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_protocol                ## -- Begin function remove_protocol
	.p2align	4, 0x90
_remove_protocol:                       ## @remove_protocol
	.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	%rdi, %r15
	movq	_timeouts@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	8(%r15), %rdx
	xorl	%ebx, %ebx
	movq	_free_timeouts@GOTPCREL(%rip), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rbx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, 8(%rcx)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rax
	movq	%rax, (%rdi)
	movq	(%rcx), %rax
	movq	(%rsi), %rdi
	movq	%rdi, (%rcx)
	movq	%rcx, (%rsi)
	movq	%rax, %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_8:
	movq	_protocols@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rax
	movq	(%rbx), %rbx
	cmpq	%r15, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, (%r14)
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeouts,8,3                   ## @timeouts
	.comm	_free_timeouts,8,3              ## @free_timeouts
	.comm	_protocols,8,3                  ## @protocols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_protocol                ; -- Begin function remove_protocol
	.p2align	2
_remove_protocol:                       ; @remove_protocol
	.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, x0
Lloh0:
	adrp	x8, _timeouts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timeouts@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.1:
	mov	x11, #0
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x12, _free_timeouts@GOTPAGE
Lloh3:
	ldr	x12, [x12, _free_timeouts@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x9
	ldr	x9, [x9]
	cbz	x9, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, #8]
	cmp	x13, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x9]
	cmp	x11, #0
	csel	x14, x8, x11, eq
	str	x13, [x14]
	ldr	x13, [x9]
	ldr	x14, [x12]
	str	x14, [x9]
	str	x9, [x12]
	mov	x9, x13
	cbnz	x9, LBB0_3
LBB0_5:
Lloh4:
	adrp	x20, _protocols@GOTPAGE
Lloh5:
	ldr	x20, [x20, _protocols@GOTPAGEOFF]
	ldr	x21, [x20]
	cbnz	x21, LBB0_8
LBB0_6:
	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
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x21, LBB0_6
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x21
	ldr	x21, [x21]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	x21, [x20]
	mov	x0, x19
	bl	_free
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_timeouts,8,3                   ; @timeouts
	.comm	_free_timeouts,8,3              ; @free_timeouts
	.comm	_protocols,8,3                  ; @protocols
.subsections_via_symbols
