	.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	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_ixgbe_removed
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_8:
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	leaq	_reg_pattern_test.test_pattern(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	_reg_pattern_test.test_pattern(%rip), %rbx
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_read_reg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %r12d
	andl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_ixgbe_write_reg
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ixgbe_read_reg
	andl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%r12d, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ixgbe_write_reg
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_e_err
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ixgbe_write_reg
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @reg_pattern_test.test_pattern
_reg_pattern_test.test_pattern:
	.long	1515870810                      ## 0x5a5a5a5a
	.long	2779096485                      ## 0xa5a5a5a5
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff

	.comm	_drv,4,2                        ## @drv
	.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_2
; %bb.1:
	mov	w0, #1
	str	w0, [x20]
	b	LBB0_8
LBB0_2:
Lloh0:
	adrp	x24, _reg_pattern_test.test_pattern@PAGE
Lloh1:
	add	x24, x24, _reg_pattern_test.test_pattern@PAGEOFF
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_ixgbe_read_reg
	mov	x25, x0
	ldr	w8, [x24, x27, lsl #2]
	and	w26, w8, w22
	mov	x0, x21
	mov	x1, x19
	mov	x2, x26
	bl	_ixgbe_write_reg
	mov	x0, x21
	mov	x1, x19
	bl	_ixgbe_read_reg
	and	w4, w26, w23
	cmp	w0, w4
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_ixgbe_write_reg
	add	x27, x27, #1
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	x27, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	x3, x0
Lloh2:
	adrp	x8, _drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_e_err
	str	w19, [x20]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_ixgbe_write_reg
	mov	w0, #1
LBB0_8:
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @reg_pattern_test.test_pattern
_reg_pattern_test.test_pattern:
	.long	1515870810                      ; 0x5a5a5a5a
	.long	2779096485                      ; 0xa5a5a5a5
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff

	.comm	_drv,4,2                        ; @drv
	.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
