	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssdp_listener_stop             ## -- Begin function ssdp_listener_stop
	.p2align	4, 0x90
_ssdp_listener_stop:                    ## @ssdp_listener_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_EVENT_TYPE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eloop_unregister_sock
	movq	$0, 8(%rbx)
LBB0_2:
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	callq	_close
	movl	$-1, (%rbx)
LBB0_4:
	movq	_msearchreply_state_machine_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ELOOP_ALL_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_eloop_cancel_timeout           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_TYPE_READ,4,2            ## @EVENT_TYPE_READ
	.comm	_msearchreply_state_machine_handler,4,2 ## @msearchreply_state_machine_handler
	.comm	_ELOOP_ALL_CTX,4,2              ## @ELOOP_ALL_CTX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssdp_listener_stop             ; -- Begin function ssdp_listener_stop
	.p2align	2
_ssdp_listener_stop:                    ; @ssdp_listener_stop
	.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, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _EVENT_TYPE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT_TYPE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_eloop_unregister_sock
	str	xzr, [x19, #8]
LBB0_2:
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_4:
Lloh3:
	adrp	x8, _msearchreply_state_machine_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _msearchreply_state_machine_handler@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ELOOP_ALL_CTX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ELOOP_ALL_CTX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eloop_cancel_timeout
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_TYPE_READ,4,2            ; @EVENT_TYPE_READ
	.comm	_msearchreply_state_machine_handler,4,2 ; @msearchreply_state_machine_handler
	.comm	_ELOOP_ALL_CTX,4,2              ; @ELOOP_ALL_CTX
.subsections_via_symbols
