	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_hw_v2_get_cfg
_hns_roce_hw_v2_get_cfg:                ## @hns_roce_hw_v2_get_cfg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	80(%rdi), %r15
	movq	_hns_roce_hw_v2@GOTPCREL(%rip), %rcx
	movq	%rcx, 72(%rdi)
	movq	_hns_roce_dfx_hw_v2@GOTPCREL(%rip), %rcx
	movq	%rcx, 64(%rdi)
	movq	_ROCEE_DB_SQ_L_0_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rdi)
	movl	%ecx, 56(%rdi)
	movl	24(%rsi), %ecx
	movl	%ecx, 48(%rdi)
	movl	$1, 44(%rdi)
	movq	16(%rsi), %rcx
	movq	%rcx, (%rax)
	movq	32(%rdi), %rax
	movq	$0, (%rax)
	addq	$40, %rdi
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_addrconf_addr_eui48
	movq	_HNS_ROCE_V2_MAX_IRQ_NUM@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %edi
	movq	8(%r13), %rsi
	addq	%rbx, %rsi
	callq	_pci_irq_vector
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	$1, (%r14)
	movq	$0, 8(%r14)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	movl	%eax, 4(%r14)
	movq	%r13, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hns_roce_hw_v2,4,2             ## @hns_roce_hw_v2
	.comm	_hns_roce_dfx_hw_v2,4,2         ## @hns_roce_dfx_hw_v2
	.comm	_ROCEE_DB_SQ_L_0_REG,4,2        ## @ROCEE_DB_SQ_L_0_REG
	.comm	_HNS_ROCE_V2_MAX_IRQ_NUM,4,2    ## @HNS_ROCE_V2_MAX_IRQ_NUM
	.no_dead_strip	_hns_roce_hw_v2_get_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_hw_v2_get_cfg
_hns_roce_hw_v2_get_cfg:                ; @hns_roce_hw_v2_get_cfg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #80]
Lloh0:
	adrp	x8, _hns_roce_hw_v2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hns_roce_hw_v2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _hns_roce_dfx_hw_v2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hns_roce_dfx_hw_v2@GOTPAGEOFF]
	stp	x9, x8, [x0, #64]
Lloh4:
	adrp	x8, _ROCEE_DB_SQ_L_0_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ROCEE_DB_SQ_L_0_REG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w8, w8, [x0, #52]
	ldr	w8, [x1, #24]
	mov	w22, #1
	stp	w22, w8, [x0, #44]
	ldr	x8, [x1, #16]
	ldr	x9, [x0, #24]
	str	x8, [x9]
	ldp	x9, x8, [x0, #24]
	str	xzr, [x8]
	add	x0, x0, #40
	ldr	x8, [x9]
	ldr	w1, [x8]
	bl	_addrconf_addr_eui48
Lloh7:
	adrp	x23, _HNS_ROCE_V2_MAX_IRQ_NUM@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HNS_ROCE_V2_MAX_IRQ_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #8]
	add	x1, x24, x8
	bl	_pci_irq_vector
	ldr	x8, [x20, #16]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	str	w22, [x20]
	str	xzr, [x20, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	str	w0, [x20, #4]
	str	x19, [x21]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hns_roce_hw_v2,4,2             ; @hns_roce_hw_v2
	.comm	_hns_roce_dfx_hw_v2,4,2         ; @hns_roce_dfx_hw_v2
	.comm	_ROCEE_DB_SQ_L_0_REG,4,2        ; @ROCEE_DB_SQ_L_0_REG
	.comm	_HNS_ROCE_V2_MAX_IRQ_NUM,4,2    ; @HNS_ROCE_V2_MAX_IRQ_NUM
	.no_dead_strip	_hns_roce_hw_v2_get_cfg
.subsections_via_symbols
