	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetSocket
_GetSocket:                             ## @GetSocket
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_LIBALIAS_LOCK_ASSERT
	movq	_LINK_TCP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LINK_UDP@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_AF_INET@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -60(%rbp)
	movl	%r12d, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_bind
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_8
LBB0_6:
	incl	(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_TCP,4,2                   ## @LINK_TCP
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_LINK_UDP,4,2                   ## @LINK_UDP
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_GetSocket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetSocket
_GetSocket:                             ; @GetSocket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_LIBALIAS_LOCK_ASSERT
Lloh0:
	adrp	x8, _LINK_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINK_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _LINK_UDP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LINK_UDP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
LBB0_4:
Lloh10:
	adrp	x23, _AF_INET@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x22, x0
	ldr	w8, [x23]
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htonl
	stp	w21, w0, [sp]
	mov	x1, sp
	mov	x0, x22
	mov	w2, #12
	bl	_bind
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_close
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	w22, [x19]
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_TCP,4,2                   ; @LINK_TCP
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_LINK_UDP,4,2                   ; @LINK_UDP
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_GetSocket
.subsections_via_symbols
