	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_recv_init               ## -- Begin function rds_ib_recv_init
	.p2align	4, 0x90
_rds_ib_recv_init:                      ## @rds_ib_recv_init
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	-40(%rbp), %rdi
	callq	_si_meminfo
	movslq	-40(%rbp), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_RDS_FRAG_SIZE@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	movq	_rds_ib_sysctl_max_recv_allocation@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	_rds_ib_incoming_slab@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	_rds_ib_frag_slab@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r15), %rdi
	callq	_kmem_cache_destroy
LBB0_3:
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RDS_FRAG_SIZE,4,2              ## @RDS_FRAG_SIZE
	.comm	_rds_ib_sysctl_max_recv_allocation,4,2 ## @rds_ib_sysctl_max_recv_allocation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rds_ib_incoming"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_rds_ib_incoming_slab,8,3       ## @rds_ib_incoming_slab
L_.str.1:                               ## @.str.1
	.asciz	"rds_ib_frag"

	.comm	_rds_ib_frag_slab,8,3           ## @rds_ib_frag_slab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_ib_recv_init               ; -- Begin function rds_ib_recv_init
	.p2align	2
_rds_ib_recv_init:                      ; @rds_ib_recv_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	add	x0, sp, #8
	bl	_si_meminfo
	ldrsw	x8, [sp, #8]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w8, w8, w9
Lloh6:
	adrp	x9, _RDS_FRAG_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDS_FRAG_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
Lloh9:
	adrp	x9, _rds_ib_sysctl_max_recv_allocation@GOTPAGE
Lloh10:
	ldr	x9, [x9, _rds_ib_sysctl_max_recv_allocation@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
Lloh12:
	adrp	x21, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
Lloh16:
	adrp	x20, _rds_ib_incoming_slab@GOTPAGE
Lloh17:
	ldr	x20, [x20, _rds_ib_incoming_slab@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w3, [x21]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
	mov	x8, x0
	mov	w0, #0
Lloh20:
	adrp	x9, _rds_ib_frag_slab@GOTPAGE
Lloh21:
	ldr	x9, [x9, _rds_ib_frag_slab@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x20]
	bl	_kmem_cache_destroy
LBB0_3:
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RDS_FRAG_SIZE,4,2              ; @RDS_FRAG_SIZE
	.comm	_rds_ib_sysctl_max_recv_allocation,4,2 ; @rds_ib_sysctl_max_recv_allocation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rds_ib_incoming"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_rds_ib_incoming_slab,8,3       ; @rds_ib_incoming_slab
l_.str.1:                               ; @.str.1
	.asciz	"rds_ib_frag"

	.comm	_rds_ib_frag_slab,8,3           ; @rds_ib_frag_slab
.subsections_via_symbols
