	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_init_irq
_hns3_nic_init_irq:                     ## @hns3_nic_init_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r8
	xorl	%r13d, %r13d
	movl	$16, %r12d
	movq	_HNS3_VECTOR_INITED@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	%eax, %ecx
	addq	$40, %r12
	cmpq	%rcx, %r13
	jae	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r8), %r15
	movq	-16(%r15,%r12), %rcx
	cmpq	(%rsi), %rcx
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r15,%r12)
	movq	16(%r15,%r12), %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HNAE3_INT_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	-8(%r15,%r12), %rdi
	movq	8(%r8), %rax
	movq	(%rax), %rcx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	movl	%ebx, %r9d
	callq	_snprintf
	addl	$2, %ebx
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%r15,%r12), %rdi
	movq	_HNAE3_INT_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	8(%r8), %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	leal	1(%r9), %r14d
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_snprintf
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	leal	1(%r9), %r14d
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.3(%rip), %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_snprintf
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %r8
	addq	$-16, %r8
	movq	-8(%r15,%r12), %rax
	movq	_HNAE3_INT_NAME_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movb	$0, -1(%rcx,%rax)
	movl	4(%r15,%r12), %edi
	movq	_hns3_irq_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-8(%r15,%r12), %rcx
	xorl	%edx, %edx
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rsi
	movl	4(%r15,%r12), %edi
	callq	_irq_set_affinity_hint
	movq	_HNS3_VECTOR_INITED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	%rax, -16(%r15,%r12)
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %eax
	jmp	LBB0_12
LBB0_13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movl	4(%r15,%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_hns3_nic_uninit_irq
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_VECTOR_INITED,8,3         ## @HNS3_VECTOR_INITED
	.comm	_HNAE3_INT_NAME_LEN,4,2         ## @HNAE3_INT_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s-%d"

L_.str.1:                               ## @.str.1
	.asciz	"TxRx"

L_.str.2:                               ## @.str.2
	.asciz	"Rx"

L_.str.3:                               ## @.str.3
	.asciz	"Tx"

	.comm	_hns3_irq_handle,4,2            ## @hns3_irq_handle
L_.str.4:                               ## @.str.4
	.asciz	"request irq(%d) fail\n"

	.no_dead_strip	_hns3_nic_init_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_init_irq
_hns3_nic_init_irq:                     ; @hns3_nic_init_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x28, #0
	mov	x24, #0
	mov	w22, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w20, #0
Lloh0:
	adrp	x25, _HNS3_VECTOR_INITED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HNS3_VECTOR_INITED@GOTPAGEOFF]
Lloh2:
	adrp	x26, _HNAE3_INT_NAME_LEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HNAE3_INT_NAME_LEN@GOTPAGEOFF]
Lloh4:
	adrp	x21, _hns3_irq_handle@GOTPAGE
Lloh5:
	ldr	x21, [x21, _hns3_irq_handle@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x28, x28, #40
	cmp	x24, w8, uxtw
	b.hs	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	add	x27, x23, x28
	ldr	x9, [x27]
	ldr	x10, [x25]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x10, x9, [x27, #24]
	cbz	x10, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, x28
	ldr	x0, [x8, #8]
	ldr	w8, [x26]
	sub	w1, w8, #1
	ldr	x8, [x19, #8]
	ldr	x3, [x8]
	cbz	x9, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x5, x20
	bl	_snprintf
	add	w20, w20, #2
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, x28
	ldr	x0, [x8, #8]
	ldr	w8, [x26]
	sub	w1, w8, #1
	ldr	x8, [x19, #8]
	ldr	x3, [x8]
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	add	w21, w5, #1
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
Lloh12:
	adrp	x4, l_.str.2@PAGE
Lloh13:
	add	x4, x4, l_.str.2@PAGEOFF
	bl	_snprintf
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w22, #1
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
Lloh16:
	adrp	x4, l_.str.3@PAGE
Lloh17:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x5, x22
	bl	_snprintf
	mov	x22, x21
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x21, _hns3_irq_handle@GOTPAGE
Lloh19:
	ldr	x21, [x21, _hns3_irq_handle@GOTPAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x28
	ldr	x8, [x23, #8]
	ldrsw	x9, [x26]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	w0, [x23, #20]
	ldr	w1, [x21]
	ldr	x3, [x23, #8]
	mov	w2, #0
	mov	x4, x27
	bl	_request_irq
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #20]
	add	x1, x23, #16
	bl	_irq_set_affinity_hint
	ldr	x8, [x25]
	str	x8, [x23]
	ldr	w8, [x19]
	b	LBB0_2
LBB0_13:
	mov	w27, #0
	b	LBB0_15
LBB0_14:
	mov	x27, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x23, #20]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_hns3_nic_uninit_irq
LBB0_15:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_VECTOR_INITED,8,3         ; @HNS3_VECTOR_INITED
	.comm	_HNAE3_INT_NAME_LEN,4,2         ; @HNAE3_INT_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s-%d"

l_.str.1:                               ; @.str.1
	.asciz	"TxRx"

l_.str.2:                               ; @.str.2
	.asciz	"Rx"

l_.str.3:                               ; @.str.3
	.asciz	"Tx"

	.comm	_hns3_irq_handle,4,2            ; @hns3_irq_handle
l_.str.4:                               ; @.str.4
	.asciz	"request irq(%d) fail\n"

	.no_dead_strip	_hns3_nic_init_irq
.subsections_via_symbols
