	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_detect_change
_socket_detect_change:                  ## @socket_detect_change
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movq	_SOCKET_SUSPEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_SOCKET_PRESENT@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.2:
	movl	$20, %edi
	callq	_msleep
LBB0_3:
	movq	8(%rbx), %rax
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	(%rbx), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	movq	_SS_DETECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, -20(%rbp)
	je	LBB0_5
LBB0_6:
	testl	%eax, %ecx
	jne	LBB0_9
LBB0_7:
	movq	_SS_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_socket_insert
	jmp	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_socket_remove
	movl	(%rbx), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_7
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_SUSPEND,4,2             ## @SOCKET_SUSPEND
	.comm	_SOCKET_PRESENT,4,2             ## @SOCKET_PRESENT
	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.no_dead_strip	_socket_detect_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_detect_change
_socket_detect_change:                  ; @socket_detect_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SOCKET_SUSPEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCKET_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _SOCKET_PRESENT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SOCKET_PRESENT@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #20
	bl	_msleep
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w10, [sp, #12]
Lloh5:
	adrp	x11, _SS_DETECT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SS_DETECT@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
LBB0_5:
	tst	w9, w8
	b.ne	LBB0_9
LBB0_6:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _SS_DETECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SS_DETECT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_socket_insert
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_socket_remove
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_SUSPEND,4,2             ; @SOCKET_SUSPEND
	.comm	_SOCKET_PRESENT,4,2             ; @SOCKET_PRESENT
	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.no_dead_strip	_socket_detect_change
.subsections_via_symbols
