	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_connection_remove      ## -- Begin function service_connection_remove
	.p2align	4, 0x90
_service_connection_remove:             ## @service_connection_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SERVICE_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_SERVICE_CONNECTION_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	addq	$8, %r14
	movq	_sc_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	$0, (%rbx)
	movl	12(%rbx), %edi
	callq	_nvlist_destroy
	movl	8(%rbx), %edi
	callq	_cap_close
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVICE_MAGIC,8,3              ## @SERVICE_MAGIC
	.comm	_SERVICE_CONNECTION_MAGIC,8,3   ## @SERVICE_CONNECTION_MAGIC
	.comm	_sc_next,4,2                    ## @sc_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_service_connection_remove      ; -- Begin function service_connection_remove
	.p2align	2
_service_connection_remove:             ; @service_connection_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x20], #8
Lloh0:
	adrp	x9, _SERVICE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVICE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SERVICE_CONNECTION_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SERVICE_CONNECTION_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _sc_next@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sc_next@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_TAILQ_REMOVE
	str	xzr, [x19]
	ldr	w0, [x19, #12]
	bl	_nvlist_destroy
	ldr	w0, [x19, #8]
	bl	_cap_close
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVICE_MAGIC,8,3              ; @SERVICE_MAGIC
	.comm	_SERVICE_CONNECTION_MAGIC,8,3   ; @SERVICE_CONNECTION_MAGIC
	.comm	_sc_next,4,2                    ; @sc_next
.subsections_via_symbols
