	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_alloc
_rs_alloc:                              ## @rs_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$72, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	%r14d, (%rbx)
	movl	$-1, 4(%rbx)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	$-1, 8(%rbx)
LBB0_3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movl	68(%r15), %eax
	movl	%eax, 68(%rbx)
	movups	52(%r15), %xmm0
	movups	%xmm0, 52(%rbx)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
## %bb.5:
	movl	48(%r15), %eax
	movl	%eax, 48(%rbx)
	addq	$44, %r15
	jmp	LBB0_8
LBB0_6:
	movq	_def_wmem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_def_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_def_inline@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_def_sqsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_def_rqsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	_RS_QP_CTRL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_def_iomap_size@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	movl	%eax, 44(%rbx)
LBB0_9:
	leaq	40(%rbx), %rdi
	callq	_fastlock_init
	leaq	36(%rbx), %rdi
	callq	_fastlock_init
	leaq	32(%rbx), %rdi
	callq	_fastlock_init
	leaq	28(%rbx), %rdi
	callq	_fastlock_init
	leaq	24(%rbx), %rdi
	callq	_fastlock_init
	leaq	20(%rbx), %rdi
	callq	_dlist_init
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_dlist_init
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_def_wmem,4,2                   ## @def_wmem
	.comm	_def_mem,4,2                    ## @def_mem
	.comm	_def_inline,4,2                 ## @def_inline
	.comm	_def_sqsize,4,2                 ## @def_sqsize
	.comm	_def_rqsize,4,2                 ## @def_rqsize
	.comm	_RS_QP_CTRL_SIZE,4,2            ## @RS_QP_CTRL_SIZE
	.comm	_def_iomap_size,4,2             ## @def_iomap_size
	.no_dead_strip	_rs_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_alloc
_rs_alloc:                              ; @rs_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #72
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	w8, #-1
	stp	w20, w8, [x19]
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19, #8]
LBB0_3:
	cbz	x21, LBB0_6
; %bb.4:
	ldr	w8, [x21, #68]
	str	w8, [x19, #68]
	ldur	q0, [x21, #52]
	stur	q0, [x19, #52]
Lloh3:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x21, #48]
	str	w8, [x19, #48]
	add	x8, x21, #44
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _def_wmem@GOTPAGE
Lloh7:
	ldr	x8, [x8, _def_wmem@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #68]
Lloh9:
	adrp	x8, _def_mem@GOTPAGE
Lloh10:
	ldr	x8, [x8, _def_mem@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _def_inline@GOTPAGE
Lloh13:
	ldr	x9, [x9, _def_inline@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #60]
Lloh15:
	adrp	x8, _def_sqsize@GOTPAGE
Lloh16:
	ldr	x8, [x8, _def_sqsize@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _def_rqsize@GOTPAGE
Lloh19:
	ldr	x9, [x9, _def_rqsize@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #52]
Lloh21:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.7:
Lloh24:
	adrp	x8, _RS_QP_CTRL_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RS_QP_CTRL_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh27:
	adrp	x8, _def_iomap_size@GOTPAGE
Lloh28:
	ldr	x8, [x8, _def_iomap_size@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #44]
LBB0_9:
	add	x0, x19, #40
	bl	_fastlock_init
	add	x0, x19, #36
	bl	_fastlock_init
	add	x0, x19, #32
	bl	_fastlock_init
	add	x0, x19, #28
	bl	_fastlock_init
	add	x0, x19, #24
	bl	_fastlock_init
	add	x0, x19, #20
	bl	_dlist_init
	add	x0, x19, #16
	bl	_dlist_init
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_def_wmem,4,2                   ; @def_wmem
	.comm	_def_mem,4,2                    ; @def_mem
	.comm	_def_inline,4,2                 ; @def_inline
	.comm	_def_sqsize,4,2                 ; @def_sqsize
	.comm	_def_rqsize,4,2                 ; @def_rqsize
	.comm	_RS_QP_CTRL_SIZE,4,2            ; @RS_QP_CTRL_SIZE
	.comm	_def_iomap_size,4,2             ; @def_iomap_size
	.no_dead_strip	_rs_alloc
.subsections_via_symbols
