	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	_reg_pattern_test.test(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r12d
	andl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_E1000_WRITE_REG_ARRAY
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_E1000_READ_REG_ARRAY
	andl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%r12d, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	leaq	_reg_pattern_test.test(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rbx,%rcx,4), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_e_err
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @reg_pattern_test.test
_reg_pattern_test.test:
	.long	1515870810                      ## 0x5a5a5a5a
	.long	2779096485                      ## 0xa5a5a5a5
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pattern test failed (reg 0x%05X): 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, x5
	mov	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x25, _reg_pattern_test.test@PAGE
Lloh1:
	add	x25, x25, _reg_pattern_test.test@PAGEOFF
	mov	x0, x25
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x27, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25, x27, lsl #2]
	and	w26, w8, w22
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	mov	x3, x26
	bl	_E1000_WRITE_REG_ARRAY
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	bl	_E1000_READ_REG_ARRAY
	and	w3, w26, w23
	cmp	w0, w3
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	mov	x0, x25
	bl	_ARRAY_SIZE
	cmp	x27, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x2, x0
	add	w1, w19, w21, lsl #2
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
	str	w19, [x20]
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @reg_pattern_test.test
_reg_pattern_test.test:
	.long	1515870810                      ; 0x5a5a5a5a
	.long	2779096485                      ; 0xa5a5a5a5
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pattern test failed (reg 0x%05X): got 0x%08X expected 0x%08X\n"

	.no_dead_strip	_reg_pattern_test
.subsections_via_symbols
