	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_dev_add
_bnxt_re_dev_add:                       ## @bnxt_re_dev_add
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_bnxt_re_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ibdev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_alloc_device
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, 56(%rbx)
	movq	%r15, %rdi
	callq	_dev_hold
	movq	%r14, 40(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_mutex_init
	leaq	28(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	20(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	12(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%rbx), %rax
	movabsq	$281470681808895, %rcx          ## imm = 0xFFFF0000FFFF
	movq	%rcx, (%rax)
	movq	_bnxt_re_dev_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_bnxt_re_dev_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail_rcu
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	_ROCE_DRV_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_dev_err
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bnxt_re_dev,4,2                ## @bnxt_re_dev
	.comm	_ibdev,4,2                      ## @ibdev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bnxt_re_dev allocation failure!"

	.comm	_ROCE_DRV_MODULE_NAME,4,2       ## @ROCE_DRV_MODULE_NAME
	.comm	_bnxt_re_dev_lock,4,2           ## @bnxt_re_dev_lock
	.comm	_bnxt_re_dev_list,4,2           ## @bnxt_re_dev_list
	.no_dead_strip	_bnxt_re_dev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_dev_add
_bnxt_re_dev_add:                       ; @bnxt_re_dev_add
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _bnxt_re_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bnxt_re_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ibdev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ibdev@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ib_alloc_device
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x21, [x19, #56]
	mov	x0, x21
	bl	_dev_hold
	str	x20, [x19, #40]
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19, #48]
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #24
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #20
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #12
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19]
	movi	d0, #0x00ffff0000ffff
	str	d0, [x8]
Lloh6:
	adrp	x20, _bnxt_re_dev_lock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _bnxt_re_dev_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #8
Lloh8:
	adrp	x1, _bnxt_re_dev_list@GOTPAGE
Lloh9:
	ldr	x1, [x1, _bnxt_re_dev_list@GOTPAGEOFF]
	bl	_list_add_tail_rcu
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ROCE_DRV_MODULE_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ROCE_DRV_MODULE_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_bnxt_re_dev,4,2                ; @bnxt_re_dev
	.comm	_ibdev,4,2                      ; @ibdev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bnxt_re_dev allocation failure!"

	.comm	_ROCE_DRV_MODULE_NAME,4,2       ; @ROCE_DRV_MODULE_NAME
	.comm	_bnxt_re_dev_lock,4,2           ; @bnxt_re_dev_lock
	.comm	_bnxt_re_dev_list,4,2           ; @bnxt_re_dev_list
	.no_dead_strip	_bnxt_re_dev_add
.subsections_via_symbols
