	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_diag_reg_test             ## -- Begin function i40e_diag_reg_test
	.p2align	4, 0x90
_i40e_diag_reg_test:                    ## @i40e_diag_reg_test
	.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	_i40e_reg_list@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	xorl	%edi, %edi
	callq	_I40E_QTX_CTL
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	movq	%r13, %rdx
	shlq	$5, %rdx
	movq	%rax, 8(%rcx,%rdx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	%r13, %rbx
	shlq	$5, %rbx
	movq	(%rax,%rbx), %r12
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_I40E_PFINT_ITRN
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %r12
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_I40E_PFINT_ITRN
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %r12
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_I40E_PFINT_ITRN
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %r12
	xorl	%edi, %edi
	callq	_I40E_QINT_TQCTL
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %r12
	xorl	%edi, %edi
	callq	_I40E_QINT_RQCTL
	cmpq	%rax, %r12
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	decq	%rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	cmpq	$0, 8(%rcx,%rbx)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rcx,%rbx), %r13
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%r12), %rsi
	imulq	24(%rcx,%rbx), %rsi
	addq	(%rcx,%rbx), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_i40e_diag_reg_pattern_test
	movq	(%r15), %rcx
	cmpq	8(%rcx,%rbx), %r12
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	incq	%r12
	testq	%rax, %rax
	je	LBB0_16
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movq	%r13, %rdx
	shlq	$5, %rdx
	movq	(%rcx,%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_20
LBB0_1:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i40e_reg_list,8,3              ## @i40e_reg_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_diag_reg_test             ; -- Begin function i40e_diag_reg_test
	.p2align	2
_i40e_diag_reg_test:                    ; @i40e_diag_reg_test
	.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
Lloh0:
	adrp	x21, _i40e_reg_list@GOTPAGE
Lloh1:
	ldr	x21, [x21, _i40e_reg_list@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x20, [x8]
	cbz	x20, LBB0_17
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	lsl	x9, x22, #5
	ldr	x20, [x8, x9]
	cmp	x20, #0
	ccmp	x0, #0, #0, ne
	b.ne	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	w0, #0
	bl	_I40E_QTX_CTL
	cmp	x20, x0
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	add	x9, x9, x22, lsl #5
	str	x8, [x9, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	lsl	x23, x22, #5
	ldr	x20, [x8, x23]
	mov	w0, #0
	mov	w1, #0
	bl	_I40E_PFINT_ITRN
	cmp	x20, x0
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x20, [x8, x23]
	mov	w0, #1
	mov	w1, #0
	bl	_I40E_PFINT_ITRN
	cmp	x20, x0
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x20, [x8, x23]
	mov	w0, #2
	mov	w1, #0
	bl	_I40E_PFINT_ITRN
	cmp	x20, x0
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x20, [x8, x23]
	mov	w0, #0
	bl	_I40E_QINT_TQCTL
	cmp	x20, x0
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x20, [x8, x23]
	mov	w0, #0
	bl	_I40E_QINT_RQCTL
	cmp	x20, x0
	b.ne	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x8, #1
	ldr	x9, [x21]
	add	x9, x9, x22, lsl #5
	str	x8, [x9, #8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	add	x9, x8, x22, lsl #5
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x9, #16]
	mov	w24, #1
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x9, x24, #1
	add	x8, x8, x23
	ldr	x10, [x8]
	ldr	x8, [x8, #24]
	madd	x1, x8, x9, x10
	mov	x0, x19
	mov	x2, x20
	bl	_i40e_diag_reg_pattern_test
	ldr	x8, [x21]
	add	x9, x8, x23
	ldr	x9, [x9, #8]
	cmp	x24, x9
	add	x24, x24, #1
	ccmp	x0, #0, #0, lo
	b.eq	LBB0_16
	b	LBB0_3
LBB0_17:
	mov	x0, #0
LBB0_18:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_i40e_reg_list,8,3              ; @i40e_reg_list
.subsections_via_symbols
