	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _be_roce_dev_add
__be_roce_dev_add:                      ## @_be_roce_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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ocrdma_drv@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	movq	(%r14), %rax
	movq	_OC_DEVICE_ID5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_msix_enabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_pci_resource_start
	movq	%rax, -32(%rbp)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_pci_resource_len
	movq	%rax, -40(%rbp)
	movq	56(%rbx), %r14
	jmp	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -40(%rbp)
LBB0_5:
	movq	%r14, -48(%rbp)
	movups	40(%rbx), %xmm0
	movups	%xmm0, -64(%rbp)
	movq	32(%rbx), %rax
	movq	%rax, -72(%rbp)
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	28(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	%rbx, %rdi
	callq	_msix_enabled
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	4(%rbx), %edi
	addl	(%rbx), %edi
	movq	_BE_INTERRUPT_MODE_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_MAX_MSIX_VECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movl	%eax, -104(%rbp)
	movl	24(%rbx), %ecx
	movl	%ecx, -88(%rbp)
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	jmp	LBB0_8
LBB0_9:
	movl	$0, -104(%rbp)
	movq	_BE_INTERRUPT_MODE_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
LBB0_10:
	movq	(%r15), %rax
	leaq	-112(%rbp), %rdi
	callq	*(%rax)
	movl	%eax, 8(%rbx)
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ocrdma_drv,8,3                 ## @ocrdma_drv
	.comm	_OC_DEVICE_ID5,8,3              ## @OC_DEVICE_ID5
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_BE_INTERRUPT_MODE_MSIX,4,2     ## @BE_INTERRUPT_MODE_MSIX
	.comm	_MAX_MSIX_VECTORS,4,2           ## @MAX_MSIX_VECTORS
	.comm	_BE_INTERRUPT_MODE_INTX,4,2     ## @BE_INTERRUPT_MODE_INTX
	.no_dead_strip	__be_roce_dev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _be_roce_dev_add
__be_roce_dev_add:                      ; @_be_roce_dev_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x21, _ocrdma_drv@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ocrdma_drv@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _OC_DEVICE_ID5@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OC_DEVICE_ID5@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_msix_enabled
	cbz	x0, LBB0_11
; %bb.3:
	mov	x0, x20
	mov	w1, #2
	bl	_pci_resource_start
	str	x0, [sp, #88]
	mov	x0, x20
	mov	w1, #2
	bl	_pci_resource_len
	str	x0, [sp, #80]
	ldr	x20, [x19, #56]
	b	LBB0_5
LBB0_4:
	stp	xzr, xzr, [sp, #80]
LBB0_5:
	str	x20, [sp, #72]
	ldur	q0, [x19, #40]
	stur	q0, [sp, #56]
	ldr	x8, [x19, #32]
	str	x8, [sp, #48]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x19, #28]
	str	w8, [sp, #40]
	mov	x0, x19
	bl	_msix_enabled
	cbz	x0, LBB0_9
; %bb.6:
	ldp	w8, w9, [x19]
Lloh8:
	adrp	x10, _BE_INTERRUPT_MODE_MSIX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BE_INTERRUPT_MODE_MSIX@GOTPAGEOFF]
	add	w0, w9, w8
Lloh10:
	ldr	w8, [x10]
	str	w8, [sp, #8]
Lloh11:
	adrp	x8, _MAX_MSIX_VECTORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_MSIX_VECTORS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_min
	ldr	w8, [x19, #24]
	str	w0, [sp, #16]
	str	w8, [sp, #32]
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	b	LBB0_8
LBB0_9:
Lloh14:
	adrp	x8, _BE_INTERRUPT_MODE_INTX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BE_INTERRUPT_MODE_INTX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	wzr, [sp, #16]
	str	w8, [sp, #8]
LBB0_10:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, sp, #8
	blr	x8
	str	w0, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ocrdma_drv,8,3                 ; @ocrdma_drv
	.comm	_OC_DEVICE_ID5,8,3              ; @OC_DEVICE_ID5
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_BE_INTERRUPT_MODE_MSIX,4,2     ; @BE_INTERRUPT_MODE_MSIX
	.comm	_MAX_MSIX_VECTORS,4,2           ; @MAX_MSIX_VECTORS
	.comm	_BE_INTERRUPT_MODE_INTX,4,2     ; @BE_INTERRUPT_MODE_INTX
	.no_dead_strip	__be_roce_dev_add
.subsections_via_symbols
