	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__ib_alloc_device               ## -- Begin function _ib_alloc_device
	.p2align	4, 0x90
__ib_alloc_device:                      ## @_ib_alloc_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$48, %rbx
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rdma_restrack_init
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_1
LBB0_7:
	movq	40(%rbx), %rax
	movq	_ib_dev_attr_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	36(%rbx), %rdi
	movq	_init_net@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_rdma_init_coredev
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	24(%rbx), %rdi
	callq	_mutex_init
	leaq	20(%rbx), %rdi
	movq	_XA_FLAGS_ALLOC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_xa_init_flags
	leaq	16(%rbx), %rdi
	callq	_init_rwsem
	leaq	12(%rbx), %rdi
	movl	(%r14), %esi
	callq	_xa_init_flags
	leaq	8(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_init_completion
	movq	_ib_unregister_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ib_dev_attr_group,4,2          ## @ib_dev_attr_group
	.comm	_init_net,4,2                   ## @init_net
	.comm	_XA_FLAGS_ALLOC,4,2             ## @XA_FLAGS_ALLOC
	.comm	_ib_unregister_work,4,2         ## @ib_unregister_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__ib_alloc_device               ; -- Begin function _ib_alloc_device
	.p2align	2
__ib_alloc_device:                      ; @_ib_alloc_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #48
	cset	w0, lo
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.4:
	mov	x0, x19
	bl	_rdma_restrack_init
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_kfree
	b	LBB0_1
LBB0_6:
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x9, _ib_dev_attr_group@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ib_dev_attr_group@GOTPAGEOFF]
	str	x9, [x8]
	add	x0, x19, #36
Lloh5:
	adrp	x2, _init_net@GOTPAGE
Lloh6:
	ldr	x2, [x2, _init_net@GOTPAGEOFF]
	mov	x1, x19
	bl	_rdma_init_coredev
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x0, x19, #24
	bl	_mutex_init
	add	x0, x19, #20
Lloh7:
	adrp	x20, _XA_FLAGS_ALLOC@GOTPAGE
Lloh8:
	ldr	x20, [x20, _XA_FLAGS_ALLOC@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_xa_init_flags
	add	x0, x19, #16
	bl	_init_rwsem
	add	x0, x19, #12
	ldr	w1, [x20]
	bl	_xa_init_flags
	add	x0, x19, #8
	bl	_mutex_init
	add	x0, x19, #4
	bl	_init_completion
Lloh9:
	adrp	x8, _ib_unregister_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ib_unregister_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ib_dev_attr_group,4,2          ; @ib_dev_attr_group
	.comm	_init_net,4,2                   ; @init_net
	.comm	_XA_FLAGS_ALLOC,4,2             ; @XA_FLAGS_ALLOC
	.comm	_ib_unregister_work,4,2         ; @ib_unregister_work
.subsections_via_symbols
