	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2rng_generic_read_data
_n2rng_generic_read_data:               ## @n2rng_generic_read_data
	.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
	leaq	-48(%rbp), %rsi
	callq	_sun4v_rng_data_read
	movq	_HV_EOK@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.1:
	xorl	%ebx, %ebx
	movq	_HV_EWOULDBLOCK@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_N2RNG_BLOCK_LIMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	___delay
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_sun4v_rng_data_read
	cmpq	(%r15), %rax
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HV_ENOACCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HV_EIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_N2RNG_HCHECK_LIMIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_udelay
	jmp	LBB0_14
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_EOK,8,3                     ## @HV_EOK
	.comm	_HV_EWOULDBLOCK,8,3             ## @HV_EWOULDBLOCK
	.comm	_N2RNG_BLOCK_LIMIT,4,2          ## @N2RNG_BLOCK_LIMIT
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_HV_ENOACCESS,8,3               ## @HV_ENOACCESS
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_HV_EIO,8,3                     ## @HV_EIO
	.comm	_N2RNG_HCHECK_LIMIT,4,2         ## @N2RNG_HCHECK_LIMIT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_n2rng_generic_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2rng_generic_read_data
_n2rng_generic_read_data:               ; @n2rng_generic_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x1, sp, #8
	bl	_sun4v_rng_data_read
Lloh0:
	adrp	x20, _HV_EOK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HV_EOK@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_16
LBB0_2:
	mov	w21, #0
	mov	w22, #0
Lloh2:
	adrp	x23, _HV_EWOULDBLOCK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HV_EWOULDBLOCK@GOTPAGEOFF]
Lloh4:
	adrp	x24, _N2RNG_BLOCK_LIMIT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _N2RNG_BLOCK_LIMIT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HV_ENOACCESS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HV_ENOACCESS@GOTPAGEOFF]
Lloh8:
	adrp	x26, _HV_EIO@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HV_EIO@GOTPAGEOFF]
Lloh10:
	adrp	x27, _N2RNG_HCHECK_LIMIT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _N2RNG_HCHECK_LIMIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	bl	___delay
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_sun4v_rng_data_read
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	ldr	w8, [x27]
	cmp	w21, w8
	b.ge	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10000
	bl	_udelay
	b	LBB0_5
LBB0_11:
Lloh12:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_EOK,8,3                     ; @HV_EOK
	.comm	_HV_EWOULDBLOCK,8,3             ; @HV_EWOULDBLOCK
	.comm	_N2RNG_BLOCK_LIMIT,4,2          ; @N2RNG_BLOCK_LIMIT
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_HV_ENOACCESS,8,3               ; @HV_ENOACCESS
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_HV_EIO,8,3                     ; @HV_EIO
	.comm	_N2RNG_HCHECK_LIMIT,4,2         ; @N2RNG_HCHECK_LIMIT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_n2rng_generic_read_data
.subsections_via_symbols
