	.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, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	_reg_pattern_test._test(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r13d
	andl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_wr32
	movl	%r12d, %edi
	callq	_rd32
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	andl	%ecx, %eax
	andl	%ecx, %r13d
	cmpl	%r13d, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r13d, %r8d
	callq	_dev_err
	movq	-72(%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 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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _reg_pattern_test._test@PAGE
Lloh1:
	add	x24, x24, _reg_pattern_test._test@PAGEOFF
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, x26, lsl #2]
	and	w25, w8, w21
	mov	x0, x19
	mov	x1, x25
	bl	_wr32
	mov	x0, x19
	bl	_rd32
	and	w3, w0, w23
	and	w4, w25, w23
	cmp	w3, w4
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	str	w19, [x20]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 reg %04X failed: got 0x%08X expected 0x%08X\n"

	.no_dead_strip	_reg_pattern_test
.subsections_via_symbols
