	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_reg_test
_rocker_reg_test:                       ## @rocker_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	%rdi, %r12
	movq	(%rdi), %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_prandom_u32
	movl	%eax, %ebx
	movl	%eax, %edx
	sarl	%edx
	movq	_TEST_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rocker_write32
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rocker_read32
	andl	$-2, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_prandom_u32
	movl	%eax, %r13d
	shll	$31, %r13d
	xorl	%eax, %eax
	callq	_prandom_u32
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_TEST_REG64@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_rocker_write64
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rocker_read64
	addl	%ebx, %ebx
	cmpl	%ebx, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEST_REG,4,2                   ## @TEST_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected 32bit register value %08llx, expected %08llx\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TEST_REG64,4,2                 ## @TEST_REG64
L_.str.1:                               ## @.str.1
	.asciz	"unexpected 64bit register value %16llx, expected %16llx\n"

	.no_dead_strip	_rocker_reg_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_reg_test
_rocker_reg_test:                       ; @rocker_reg_test
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0]
	bl	_prandom_u32
	mov	x21, x0
	asr	w2, w0, #1
Lloh0:
	adrp	x22, _TEST_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TEST_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rocker_write32
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rocker_read32
	and	w3, w21, #0xfffffffe
	cmp	w0, w3
	b.ne	LBB0_3
; %bb.1:
	bl	_prandom_u32
	mov	x21, x0
	bl	_prandom_u32
	orr	w21, w0, w21, lsl #31
Lloh2:
	adrp	x22, _TEST_REG64@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TEST_REG64@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_rocker_write64
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rocker_read64
	lsl	w3, w21, #1
	cmp	w0, w3
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TEST_REG,4,2                   ; @TEST_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected 32bit register value %08llx, expected %08llx\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TEST_REG64,4,2                 ; @TEST_REG64
l_.str.1:                               ; @.str.1
	.asciz	"unexpected 64bit register value %16llx, expected %16llx\n"

	.no_dead_strip	_rocker_reg_test
.subsections_via_symbols
