	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_tcp_conn_alloc
_rds_tcp_conn_alloc:                    ## @rds_tcp_conn_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
	movq	%rdi, %r14
	movq	_rds_tcp_conn_slab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movl	$4, (%rax)
	movq	$0, 8(%rax)
	movq	%rax, (%r14)
	movq	_rds_tcp_conn_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$4, %rbx
	movq	_rds_tcp_conn_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_rdsdebug
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rds_tcp_conn_slab,4,2          ## @rds_tcp_conn_slab
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rds_tcp_conn_lock,4,2          ## @rds_tcp_conn_lock
	.comm	_rds_tcp_conn_list,4,2          ## @rds_tcp_conn_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloced tc %p\n"

	.no_dead_strip	_rds_tcp_conn_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_tcp_conn_alloc
_rds_tcp_conn_alloc:                    ; @rds_tcp_conn_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	x19, x0
Lloh0:
	adrp	x8, _rds_tcp_conn_slab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rds_tcp_conn_slab@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	stp	xzr, xzr, [x0, #16]
	mov	w8, #4
	str	w8, [x0]
	str	xzr, [x0, #8]
	str	x0, [x19]
Lloh3:
	adrp	x21, _rds_tcp_conn_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _rds_tcp_conn_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x20, #4
Lloh5:
	adrp	x1, _rds_tcp_conn_list@GOTPAGE
Lloh6:
	ldr	x1, [x1, _rds_tcp_conn_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	x1, [x19]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rdsdebug
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_rds_tcp_conn_slab,4,2          ; @rds_tcp_conn_slab
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rds_tcp_conn_lock,4,2          ; @rds_tcp_conn_lock
	.comm	_rds_tcp_conn_list,4,2          ; @rds_tcp_conn_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloced tc %p\n"

	.no_dead_strip	_rds_tcp_conn_alloc
.subsections_via_symbols
