	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_test
_register_test:                         ## @register_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, %rbx
	movb	$1, %r15b
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$12, %r13
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r14
	movzbl	%r15b, %ebx
	imull	$171, %ebx, %eax
	shrl	$9, %eax
	andl	$-2, %eax
	leal	(%rax,%rax,2), %eax
	subb	%al, %bl
	movq	_TIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_register_test.patterns(%rip), %rax
	movzwl	(%r13,%rax), %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_wr_reg16
	movq	_BDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %eax
	movq	%r14, %rbx
	leaq	_register_test.patterns(%rip), %rcx
	movzwl	(%rcx,%rax,2), %r14d
	movzwl	%r14w, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
	movq	_TIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd_reg16
	cmpw	%r12w, %ax
	movq	_BDR@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd_reg16
	addq	$2, %r13
	incb	%r15b
	cmpw	%r14w, %ax
	je	LBB0_1
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_JCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd_reg32
	movq	_BIT5@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, (%rbx)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:
	movq	_DiagStatus_AddressFailure@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movl	%eax, 4(%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	1                               ## @register_test.patterns
_register_test.patterns:
	.short	0                               ## 0x0
	.short	65535                           ## 0xffff
	.short	43690                           ## 0xaaaa
	.short	21845                           ## 0x5555
	.short	26985                           ## 0x6969
	.short	38550                           ## 0x9696

	.comm	_TIR,4,2                        ## @TIR
	.comm	_BDR,4,2                        ## @BDR
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_JCR,4,2                        ## @JCR
	.comm	_BIT5,4,2                       ## @BIT5
	.comm	_DiagStatus_AddressFailure,4,2  ## @DiagStatus_AddressFailure
	.no_dead_strip	_register_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_test
_register_test:                         ; @register_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	x19, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _TIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TIR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _BDR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BDR@GOTPAGEOFF]
	mov	w25, #171
	mov	w26, #6
Lloh4:
	adrp	x27, _register_test.patterns@PAGE
Lloh5:
	add	x27, x27, _register_test.patterns@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, #6
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x23]
	ldrh	w21, [x27, x22, lsl #1]
	mov	x0, x19
	mov	x2, x21
	bl	_wr_reg16
	ldr	w1, [x24]
	add	w8, w22, #1
	and	w9, w8, #0xff
	mul	w9, w9, w25
	lsr	w9, w9, #10
	msub	w8, w9, w26, w8
	and	x8, x8, #0xff
	ldrh	w20, [x27, x8, lsl #1]
	mov	x0, x19
	mov	x2, x20
	bl	_wr_reg16
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rd_reg16
	cmp	w0, w21
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rd_reg16
	add	x22, x22, #1
	cmp	w0, w20
	b.eq	LBB0_1
LBB0_4:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
Lloh9:
	adrp	x8, _JCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd_reg32
Lloh12:
	adrp	x8, _BIT5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT5@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh15:
	adrp	x9, _DiagStatus_AddressFailure@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DiagStatus_AddressFailure@GOTPAGEOFF]
	str	w8, [x19]
Lloh17:
	ldr	w8, [x9]
	cmp	w20, #0
	csel	w8, w8, wzr, eq
	str	w8, [x19, #4]
	mov	x0, x20
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	1                               ; @register_test.patterns
_register_test.patterns:
	.short	0                               ; 0x0
	.short	65535                           ; 0xffff
	.short	43690                           ; 0xaaaa
	.short	21845                           ; 0x5555
	.short	26985                           ; 0x6969
	.short	38550                           ; 0x9696

	.comm	_TIR,4,2                        ; @TIR
	.comm	_BDR,4,2                        ; @BDR
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_JCR,4,2                        ; @JCR
	.comm	_BIT5,4,2                       ; @BIT5
	.comm	_DiagStatus_AddressFailure,4,2  ; @DiagStatus_AddressFailure
	.no_dead_strip	_register_test
.subsections_via_symbols
