	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function allocate_socket
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_allocate_socket:                       ## @allocate_socket
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movl	$200, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	$0, 192(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movq	%r15, 184(%rax)
	movl	%r12d, 176(%rax)
	movl	$-1, (%rax)
	movups	%xmm0, 160(%rax)
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ISC_LINK_INIT
	movq	$0, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	152(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 144(%rbx)
	movl	136(%rbx), %edi
	callq	_ISC_LIST_INIT
	movl	132(%rbx), %edi
	callq	_ISC_LIST_INIT
	movl	128(%rbx), %edi
	callq	_ISC_LIST_INIT
	leaq	56(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 80(%rbx)
	movups	%xmm0, 96(%rbx)
	movups	%xmm0, 112(%rbx)
	callq	_isc_mutex_init
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.9:
	leaq	52(%rbx), %rdi
	movq	_ISC_EVENTATTR_NOPURGE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_ISC_SOCKEVENT_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%rbx, 8(%rsp)
	movq	%rbx, (%rsp)
	movl	$4, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_ISC_EVENT_INIT
	movq	%rbx, %rdi
	addq	$48, %rdi
	movl	(%r15), %edx
	movq	_ISC_SOCKEVENT_INTW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%rbx, 8(%rsp)
	movq	%rbx, (%rsp)
	movl	$4, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_ISC_EVENT_INIT
	movq	_ISCAPI_SOCKET_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_SOCKET_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, (%r14)
	movq	(%r13), %r12
	jmp	LBB0_8
LBB0_1:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_8
LBB0_3:
	movq	%rax, %r12
	leaq	32(%rbx), %rax
	movq	%rbx, %r14
	addq	$16, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	4(%rbx), %edx
	callq	_isc_mem_put
LBB0_5:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	callq	_isc_mem_put
LBB0_7:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$200, %edx
	callq	_isc_mem_put
LBB0_8:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ## @ISC_R_NOMEMORY
	.comm	_link,4,2                       ## @link
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_ISC_EVENTATTR_NOPURGE,4,2      ## @ISC_EVENTATTR_NOPURGE
	.comm	_ISC_SOCKEVENT_INTR,4,2         ## @ISC_SOCKEVENT_INTR
	.comm	_ISC_SOCKEVENT_INTW,4,2         ## @ISC_SOCKEVENT_INTW
	.comm	_ISCAPI_SOCKET_MAGIC,8,3        ## @ISCAPI_SOCKET_MAGIC
	.comm	_SOCKET_MAGIC,8,3               ## @SOCKET_MAGIC
	.no_dead_strip	_allocate_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_socket
_allocate_socket:                       ; @allocate_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	mov	w1, #200
	bl	_isc_mem_get
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x23, x0
	str	xzr, [x23, #32]!
	str	xzr, [x0, #40]
	stp	x21, xzr, [x0, #184]
	str	w22, [x0, #176]
	mov	w8, #-1
	str	w8, [x0]
	stp	xzr, xzr, [x0, #160]
Lloh0:
	adrp	x8, _link@GOTPAGE
Lloh1:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ISC_LINK_INIT
	mov	x24, x19
	str	xzr, [x24, #16]!
	stur	xzr, [x24, #-12]
	str	xzr, [x24, #8]
	ldr	w0, [x24, #136]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x24, #128]
	ldr	w0, [x24, #120]
	bl	_ISC_LIST_INIT
	ldr	w0, [x24, #116]
	bl	_ISC_LIST_INIT
	ldr	w0, [x24, #112]
	bl	_ISC_LIST_INIT
	add	x0, x24, #40
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x24, #48]
	stp	q0, q0, [x24, #80]
	bl	_isc_mutex_init
Lloh3:
	adrp	x25, _ISC_R_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	add	x0, x19, #52
Lloh5:
	adrp	x21, _ISC_EVENTATTR_NOPURGE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ISC_EVENTATTR_NOPURGE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh7:
	adrp	x8, _ISC_SOCKEVENT_INTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISC_SOCKEVENT_INTR@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	stp	xzr, xzr, [sp]
	mov	w1, #4
	mov	x3, #0
	mov	x5, #0
	mov	x6, x19
	mov	x7, x19
	bl	_ISC_EVENT_INIT
	add	x0, x19, #48
	ldr	w2, [x21]
Lloh10:
	adrp	x8, _ISC_SOCKEVENT_INTW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_SOCKEVENT_INTW@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	stp	xzr, xzr, [sp]
	mov	w1, #4
	mov	x3, #0
	mov	x5, #0
	mov	x6, x19
	mov	x7, x19
	bl	_ISC_EVENT_INIT
Lloh13:
	adrp	x8, _ISCAPI_SOCKET_MAGIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISCAPI_SOCKET_MAGIC@GOTPAGEOFF]
Lloh15:
	adrp	x9, _SOCKET_MAGIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOCKET_MAGIC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #32]
	str	x19, [x20]
	ldr	x22, [x25]
	b	LBB0_9
LBB0_3:
Lloh19:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
	b	LBB0_9
LBB0_4:
	mov	x22, x0
	stp	xzr, xzr, [x23]
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	ldr	w2, [x19, #4]
	bl	_isc_mem_put
LBB0_6:
	ldr	x1, [x24]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	ldr	w2, [x19, #8]
	bl	_isc_mem_put
LBB0_8:
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #200
	bl	_isc_mem_put
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ; @ISC_R_NOMEMORY
	.comm	_link,4,2                       ; @link
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_ISC_EVENTATTR_NOPURGE,4,2      ; @ISC_EVENTATTR_NOPURGE
	.comm	_ISC_SOCKEVENT_INTR,4,2         ; @ISC_SOCKEVENT_INTR
	.comm	_ISC_SOCKEVENT_INTW,4,2         ; @ISC_SOCKEVENT_INTW
	.comm	_ISCAPI_SOCKET_MAGIC,8,3        ; @ISCAPI_SOCKET_MAGIC
	.comm	_SOCKET_MAGIC,8,3               ; @SOCKET_MAGIC
	.no_dead_strip	_allocate_socket
.subsections_via_symbols
