	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_check_selftest_buffer
_n2rng_check_selftest_buffer:           ## @n2rng_check_selftest_buffer
	.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, %r15
	movq	_SELFTEST_LOOPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	_SELFTEST_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	movq	_SELFTEST_MATCH_GOAL@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_n2rng_test_buffer_find
	movslq	%r13d, %r13
	addq	%rax, %r13
	cmpl	%r13d, (%r14)
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SELFTEST_POLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_advance_polynomial
	movl	%eax, %r12d
	incl	%ebx
	movq	_SELFTEST_LOOPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_8:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_SELFTEST_LOOPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_8
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_err
	movq	%r15, %rdi
	callq	_n2rng_dump_test_buffer
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SELFTEST_VAL,4,2               ## @SELFTEST_VAL
	.comm	_SELFTEST_LOOPS_MAX,4,2         ## @SELFTEST_LOOPS_MAX
	.comm	_SELFTEST_MATCH_GOAL,4,2        ## @SELFTEST_MATCH_GOAL
	.comm	_SELFTEST_POLY,4,2              ## @SELFTEST_POLY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selftest failed on unit %lu\n"

L_.str.1:                               ## @.str.1
	.asciz	"Selftest passed on unit %lu\n"

	.no_dead_strip	_n2rng_check_selftest_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2rng_check_selftest_buffer
_n2rng_check_selftest_buffer:           ; @n2rng_check_selftest_buffer
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _SELFTEST_LOOPS_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SELFTEST_LOOPS_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
	mov	x24, #0
Lloh2:
	adrp	x8, _SELFTEST_VAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SELFTEST_VAL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x25, _SELFTEST_MATCH_GOAL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SELFTEST_MATCH_GOAL@GOTPAGEOFF]
Lloh7:
	adrp	x26, _SELFTEST_POLY@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SELFTEST_POLY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_n2rng_test_buffer_find
	add	x24, x0, w24, sxtw
	ldr	w8, [x25]
	cmp	w8, w24
	b.le	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #1
	bl	_advance_polynomial
	mov	x21, x0
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	cmp	w22, w8
	b.ge	LBB0_8
LBB0_6:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_9
LBB0_7:
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_6
LBB0_8:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	x0, x20
	bl	_n2rng_dump_test_buffer
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SELFTEST_VAL,4,2               ; @SELFTEST_VAL
	.comm	_SELFTEST_LOOPS_MAX,4,2         ; @SELFTEST_LOOPS_MAX
	.comm	_SELFTEST_MATCH_GOAL,4,2        ; @SELFTEST_MATCH_GOAL
	.comm	_SELFTEST_POLY,4,2              ; @SELFTEST_POLY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selftest failed on unit %lu\n"

l_.str.1:                               ; @.str.1
	.asciz	"Selftest passed on unit %lu\n"

	.no_dead_strip	_n2rng_check_selftest_buffer
.subsections_via_symbols
