	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSGetAdapterInfo               ## -- Begin function DSGetAdapterInfo
	.p2align	4, 0x90
_DSGetAdapterInfo:                      ## @DSGetAdapterInfo
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ApiLock
	movl	(%rbx), %edi
	callq	_AdapterFindIndex
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	movl	%eax, -56(%rbp)
	je	LBB0_8
## %bb.1:
	movq	_S_STATIC@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, (%rax)
	setne	%dl
	movl	%edx, -48(%rbp)
	movq	_S_BOUND@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
	cmpl	$8, %esi
	jne	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rdi
	movl	20(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_6:
	movq	_INADDR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT1
	movq	_INADDR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -24(%rbp)
LBB0_5:
	movq	8(%rbx), %rax
	movups	(%rax), %xmm0
LBB0_7:
	movups	%xmm0, -40(%rbp)
LBB0_8:
	xorl	%eax, %eax
	callq	_ApiUnlock
	leaq	-56(%rbp), %rdi
	callq	*%r14
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_STATIC,8,3                   ## @S_STATIC
	.comm	_S_BOUND,8,3                    ## @S_BOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected server address len %d\n"

	.comm	_INADDR_NONE,4,2                ## @INADDR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSGetAdapterInfo               ; -- Begin function DSGetAdapterInfo
	.p2align	2
_DSGetAdapterInfo:                      ; @DSGetAdapterInfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	bl	_ApiLock
	ldr	w0, [x20]
	bl	_AdapterFindIndex
	cmp	x0, #0
	cset	w8, ne
	str	w8, [sp, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _S_STATIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_STATIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _S_BOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_BOUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #16]
	cmp	w1, #8
	b.ne	LBB0_5
; %bb.3:
	add	x9, sp, #8
	add	x0, x9, #32
	ldr	w1, [x8, #20]
	mov	w2, #8
	bl	_memcpy
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htonl
	stp	xzr, x0, [sp, #32]
	str	xzr, [sp, #24]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
Lloh11:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [sp, #40]
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	q0, [x8]
	stur	q0, [sp, #24]
LBB0_7:
	bl	_ApiUnlock
	add	x0, sp, #8
	blr	x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_S_STATIC,8,3                   ; @S_STATIC
	.comm	_S_BOUND,8,3                    ; @S_BOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected server address len %d\n"

	.comm	_INADDR_NONE,4,2                ; @INADDR_NONE
.subsections_via_symbols
