	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __hns_roce_request_irq
___hns_roce_request_irq:                ## @__hns_roce_request_irq
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	%esi, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	movq	_HNS_ROCE_INT_NAME_LEN@GOTPCREL(%rip), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	jne	LBB0_2
## %bb.4:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_6
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_8
LBB0_6:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_HNS_ROCE_INT_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rcx,%rax), %edx
	movslq	%ecx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edx
	jle	LBB0_11
## %bb.9:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %r14
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	addq	%r14, %rax
	movq	(%rax,%r12,8), %rdi
	movq	_HNS_ROCE_INT_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	incq	%r12
	cmpl	%r12d, %ebx
	jne	LBB0_10
LBB0_11:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_14
## %bb.12:
	movslq	%eax, %rbx
	movslq	-48(%rbp), %r12                 ## 4-byte Folded Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_HNS_ROCE_INT_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	incq	%rbx
	incl	%r14d
	cmpq	%r12, %rbx
	jl	LBB0_13
LBB0_14:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_26
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %eax
	movslq	%ecx, %rcx
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r12
	shlq	$5, %r12
	negq	%r12
	shlq	$3, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	shlq	$3, %rcx
	negq	%rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movq	_hns_roce_v2_msix_interrupt_abn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax,%rbx,8), %rcx
	xorl	%edx, %edx
	movq	%r15, %r8
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r15), %rax
	movq	24(%r15), %rcx
	leaq	(%rcx,%r12), %r8
	movq	8(%rcx,%r12), %rdi
	movq	_hns_roce_v2_msix_interrupt_eq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rax,%rbx,8), %rcx
	xorl	%edx, %edx
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	addq	$32, %r12
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_16
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_37
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %eax
	testl	%r13d, %r13d
	jg	LBB0_34
	jmp	LBB0_37
LBB0_27:
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.28:
	addq	$-32, %r12
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	24(%r15), %rsi
	movq	8(%rsi,%r12), %rdi
	addq	%r12, %rsi
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	callq	_free_irq
	leaq	1(%r14), %rax
	addq	$-32, %r12
	movq	%r14, %rbx
	cmpq	$1, %rax
	jle	LBB0_33
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rbx), %r14
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	jg	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	8(%r15), %rax
	movq	-8(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	jmp	LBB0_30
LBB0_33:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_37
LBB0_34:
	movl	%eax, %r14d
	movl	%r13d, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	-16(%rax,%rbx,8), %rdi
	callq	_kfree
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_35
## %bb.36:
	movl	%r14d, %eax
LBB0_37:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_INT_NAME_LEN,4,2      ## @HNS_ROCE_INT_NAME_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns-abn-%d"

L_.str.1:                               ## @.str.1
	.asciz	"hns-aeq-%d"

L_.str.2:                               ## @.str.2
	.asciz	"hns-ceq-%d"

	.comm	_hns_roce_v2_msix_interrupt_abn,4,2 ## @hns_roce_v2_msix_interrupt_abn
	.comm	_hns_roce_v2_msix_interrupt_eq,4,2 ## @hns_roce_v2_msix_interrupt_eq
L_.str.3:                               ## @.str.3
	.asciz	"Request irq error!\n"

	.no_dead_strip	___hns_roce_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __hns_roce_request_irq
___hns_roce_request_irq:                ; @__hns_roce_request_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	w27, w1
Lloh0:
	adrp	x28, _HNS_ROCE_INT_NAME_LEN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _HNS_ROCE_INT_NAME_LEN@GOTPAGEOFF]
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x26, #0
Lloh2:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w1, [x20]
	bl	_kzalloc
	ldr	x8, [x19]
	str	x0, [x8, x26, lsl #3]
	cbz	x0, LBB0_26
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	cmp	x27, x26
	b.ne	LBB0_2
; %bb.4:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x26, x23
	b	LBB0_6
LBB0_5:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	w26, #0
LBB0_6:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x24, #0
	mov	w20, w21
Lloh4:
	adrp	x25, l_.str@PAGE
Lloh5:
	add	x25, x25, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x24, lsl #3]
	ldr	w1, [x28]
	mov	x2, x25
	mov	x3, x24
	bl	_snprintf
	add	x24, x24, #1
	cmp	x20, x24
	b.ne	LBB0_8
LBB0_9:
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	add	w20, w21, w22
	cmp	w20, w21
	b.le	LBB0_12
; %bb.10:
	mov	x24, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sbfiz	x21, x8, #3, #32
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	mov	w22, w8
Lloh6:
	adrp	x25, l_.str.1@PAGE
Lloh7:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x21
	ldr	x0, [x8, x24, lsl #3]
	ldr	w1, [x28]
	mov	x2, x25
	mov	x3, x24
	bl	_snprintf
	add	x24, x24, #1
	cmp	w22, w24
	b.ne	LBB0_11
LBB0_12:
	cmp	w20, w23
	b.ge	LBB0_15
; %bb.13:
	mov	w24, #0
	sxtw	x20, w20
	sxtw	x21, w23
Lloh8:
	adrp	x25, l_.str.2@PAGE
Lloh9:
	add	x25, x25, l_.str.2@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
	ldr	w1, [x28]
	mov	x2, x25
	mov	x3, x24
	bl	_snprintf
	add	x20, x20, #1
	add	w24, w24, #1
	cmp	x20, x21
	b.lt	LBB0_14
LBB0_15:
	cmp	w23, #1
	b.lt	LBB0_25
; %bb.16:
	mov	x24, #0
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	w8, w9, w10
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x22, w9
	sxtw	x25, w8
	neg	x23, x22, lsl #5
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sbfiz	x21, x8, #3, #32
	sub	x28, x24, w10, sxtw #3
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x22
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	lsl	x8, x24, #3
	ldp	x10, x9, [x19]
	ldr	x0, [x9, x8]
Lloh10:
	adrp	x9, _hns_roce_v2_msix_interrupt_abn@GOTPAGE
Lloh11:
	ldr	x9, [x9, _hns_roce_v2_msix_interrupt_abn@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	ldr	x3, [x10, x8]
	mov	w2, #0
	mov	x4, x19
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #24]
	add	x4, x8, x23
	ldr	x0, [x4, #8]
Lloh13:
	adrp	x8, _hns_roce_v2_msix_interrupt_eq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hns_roce_v2_msix_interrupt_eq@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x19]
	cmp	x24, x25
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x8, x21
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x8, x28
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x3, [x8, x24, lsl #3]
	mov	w2, #0
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #1
	add	x23, x23, #32
	cmp	x27, x24
	b.ne	LBB0_17
LBB0_25:
	mov	w20, #0
	b	LBB0_31
LBB0_26:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_28
LBB0_27:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	cbnz	w24, LBB0_34
LBB0_28:
	cmp	w26, #1
	b.lt	LBB0_31
; %bb.29:
	mov	w8, w26
	sub	x21, x8, #1
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	bl	_kfree
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #1
	b.hi	LBB0_30
LBB0_31:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x23
	sub	x1, x8, #32
	ldur	x0, [x8, #-24]
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	bl	_free_irq
	add	x8, x21, #1
	sub	x23, x23, #32
	mov	x24, x21
	cmp	x8, #1
	b.le	LBB0_28
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	sub	x21, x24, #1
	cmp	x24, x22
	b.gt	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x24, lsl #3
	ldur	x0, [x8, #-8]
	mov	x1, x19
	b	LBB0_33
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_INT_NAME_LEN,4,2      ; @HNS_ROCE_INT_NAME_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns-abn-%d"

l_.str.1:                               ; @.str.1
	.asciz	"hns-aeq-%d"

l_.str.2:                               ; @.str.2
	.asciz	"hns-ceq-%d"

	.comm	_hns_roce_v2_msix_interrupt_abn,4,2 ; @hns_roce_v2_msix_interrupt_abn
	.comm	_hns_roce_v2_msix_interrupt_eq,4,2 ; @hns_roce_v2_msix_interrupt_eq
l_.str.3:                               ; @.str.3
	.asciz	"Request irq error!\n"

	.no_dead_strip	___hns_roce_request_irq
.subsections_via_symbols
