	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoib_dev_init
_ipoib_dev_init:                        ## @ipoib_dev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ipoib_priv
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	subl	(%rcx), %r14d
	movq	%rax, %rbx
	movq	$0, 32(%rax)
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_alloc_ordered_workqueue
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_ib_alloc_pd
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_14
LBB0_1:
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_16
LBB0_4:
	movq	16(%rbx), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movl	4(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_ipoib_neigh_hash_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movl	4(%r15), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_11
LBB0_8:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.9:
	movq	%r15, %rdi
	callq	_ipoib_ib_dev_open
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movl	4(%r15), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_ipoib_neigh_hash_uninit
LBB0_11:
	movq	%r15, %rdi
	callq	_ipoib_ib_dev_cleanup
LBB0_12:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_ib_dealloc_pd
	movq	$0, 8(%rbx)
LBB0_14:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_destroy_workqueue
	movq	$0, (%rbx)
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipoib_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
L_.str.1:                               ## @.str.1
	.asciz	"%s: failed to allocate device WQ\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: failed to allocate PD\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s failed to init HW resource\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s failed to init neigh hash\n"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
L_.str.5:                               ## @.str.5
	.asciz	"%s failed to open device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ipoib_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoib_dev_init
_ipoib_dev_init:                        ; @ipoib_dev_init
	.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	x21, x0
	bl	_ipoib_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	str	xzr, [x0, #32]
Lloh3:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_alloc_ordered_workqueue
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #24]
	mov	w1, #0
	bl	_ib_alloc_pd
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	b	LBB0_7
LBB0_3:
	ldr	w1, [x21, #4]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	b	LBB0_9
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_10
; %bb.5:
	mov	x20, x0
	ldr	w1, [x21, #4]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_warn
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
LBB0_6:
	bl	_ib_dealloc_pd
	str	xzr, [x19, #8]
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_destroy_workqueue
	str	xzr, [x19]
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	mov	x0, x19
	bl	_ipoib_neigh_hash_init
	cbz	w0, LBB0_13
; %bb.11:
	mov	x20, x0
	ldr	w1, [x21, #4]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warn
LBB0_12:
	mov	x0, x21
	bl	_ipoib_ib_dev_cleanup
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_13:
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_ipoib_ib_dev_open
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w1, [x21, #4]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_warn
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x21
	bl	_ipoib_neigh_hash_uninit
	b	LBB0_12
LBB0_16:
	mov	w20, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipoib_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
l_.str.1:                               ; @.str.1
	.asciz	"%s: failed to allocate device WQ\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to allocate PD\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s failed to init HW resource\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s failed to init neigh hash\n"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
l_.str.5:                               ; @.str.5
	.asciz	"%s failed to open device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ipoib_dev_init
.subsections_via_symbols
