	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_iw_conn_alloc              ## -- Begin function rds_iw_conn_alloc
	.p2align	4, 0x90
_rds_iw_conn_alloc:                     ## @rds_iw_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
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	movq	_rds_iw_recv_tasklet_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	movq	_rds_iw_sysctl_max_send_wr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rds_iw_ring_init
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	_rds_iw_sysctl_max_recv_wr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rds_iw_ring_init
	movq	%r14, 8(%rbx)
	movq	%rbx, (%r14)
	movq	_iw_nodev_conns_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_iw_nodev_conns@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rds_iw_recv_tasklet_fn,4,2     ## @rds_iw_recv_tasklet_fn
	.comm	_rds_iw_sysctl_max_send_wr,4,2  ## @rds_iw_sysctl_max_send_wr
	.comm	_rds_iw_sysctl_max_recv_wr,4,2  ## @rds_iw_sysctl_max_recv_wr
	.comm	_iw_nodev_conns_lock,4,2        ## @iw_nodev_conns_lock
	.comm	_iw_nodev_conns,4,2             ## @iw_nodev_conns
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p conn ic %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_iw_conn_alloc              ; -- Begin function rds_iw_conn_alloc
	.p2align	2
_rds_iw_conn_alloc:                     ; @rds_iw_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
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_INIT_LIST_HEAD
	add	x0, x20, #32
Lloh0:
	adrp	x8, _rds_iw_recv_tasklet_fn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rds_iw_recv_tasklet_fn@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #28
	bl	_mutex_init
	add	x0, x20, #24
	bl	_spin_lock_init
	add	x0, x20, #20
Lloh3:
	adrp	x8, _rds_iw_sysctl_max_send_wr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rds_iw_sysctl_max_send_wr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rds_iw_ring_init
	add	x0, x20, #16
Lloh6:
	adrp	x8, _rds_iw_sysctl_max_recv_wr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rds_iw_sysctl_max_recv_wr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_rds_iw_ring_init
	str	x19, [x20, #8]
	str	x20, [x19]
Lloh9:
	adrp	x21, _iw_nodev_conns_lock@GOTPAGE
Lloh10:
	ldr	x21, [x21, _iw_nodev_conns_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x1, _iw_nodev_conns@GOTPAGE
Lloh12:
	ldr	x1, [x1, _iw_nodev_conns@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x2, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_rdsdebug
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	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 AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rds_iw_recv_tasklet_fn,4,2     ; @rds_iw_recv_tasklet_fn
	.comm	_rds_iw_sysctl_max_send_wr,4,2  ; @rds_iw_sysctl_max_send_wr
	.comm	_rds_iw_sysctl_max_recv_wr,4,2  ; @rds_iw_sysctl_max_recv_wr
	.comm	_iw_nodev_conns_lock,4,2        ; @iw_nodev_conns_lock
	.comm	_iw_nodev_conns,4,2             ; @iw_nodev_conns
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p conn ic %p\n"

.subsections_via_symbols
