	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_pattern_test
_reg_pattern_test:                      ## @reg_pattern_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_IXGBE_REMOVED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%r14)
LBB0_8:
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_register_test_patterns@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	andq	%r13, -48(%rbp)                 ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ixgbevf_read_reg
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rdx
	andq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ixgbe_write_reg
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ixgbevf_read_reg
	movq	(%r12), %rcx
	movq	(%rcx,%r13,8), %r8
	andq	-48(%rbp), %r8                  ## 8-byte Folded Reload
	cmpq	%r8, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_ixgbe_write_reg
	incq	%r13
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	jb	LBB0_4
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_hw_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_ixgbe_write_reg
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_register_test_patterns,8,3     ## @register_test_patterns
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pattern test reg %04X failed: got 0x%08X expected 0x%08X\n"

	.no_dead_strip	_reg_pattern_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_pattern_test
_reg_pattern_test:                      ; @reg_pattern_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_IXGBE_REMOVED
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #1
	str	w0, [x20]
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x24, _register_test_patterns@GOTPAGE
Lloh1:
	ldr	x24, [x24, _register_test_patterns@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_2
; %bb.4:
	mov	x25, #0
	and	x26, x22, x23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_ixgbevf_read_reg
	mov	x23, x0
	ldr	x8, [x24]
	lsl	x27, x25, #3
	ldr	x8, [x8, x27]
	and	x2, x8, x22
	mov	x0, x21
	mov	x1, x19
	bl	_ixgbe_write_reg
	mov	x0, x21
	mov	x1, x19
	bl	_ixgbevf_read_reg
	ldr	x8, [x24]
	ldr	x8, [x8, x27]
	and	x4, x26, x8
	cmp	x0, x4
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_ixgbe_write_reg
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x25, x0
	b.lo	LBB0_5
; %bb.7:
	mov	w0, #0
	b	LBB0_2
LBB0_8:
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_hw_dbg
	str	w19, [x20]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_ixgbe_write_reg
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_register_test_patterns,8,3     ; @register_test_patterns
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pattern test reg %04X failed: got 0x%08X expected 0x%08X\n"

	.no_dead_strip	_reg_pattern_test
.subsections_via_symbols
