	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function credit_entropy_bits
_credit_entropy_bits:                   ## @credit_entropy_bits
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r15), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DEBUG_ENT
	addl	(%r15), %ebx
	js	LBB0_2
## %bb.3:
	movq	8(%r15), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %ebx
	cmovll	%ebx, %r12d
	jmp	LBB0_4
LBB0_8:
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUG_ENT
LBB0_4:
	movl	%r12d, (%r15)
	cmpq	_input_pool@GOTPCREL(%rip), %r15
	jne	LBB0_7
## %bb.5:
	movq	_random_read_wakeup_thresh@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_7
## %bb.6:
	movq	_random_read_wait@GOTPCREL(%rip), %rdi
	callq	_wake_up_interruptible
	movq	_SIGIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_POLL_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fasync@GOTPCREL(%rip), %rdi
	callq	_kill_fasync
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"added %d entropy credits to %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"negative entropy/overflow\n"

	.comm	_input_pool,24,3                ## @input_pool
	.comm	_random_read_wakeup_thresh,4,2  ## @random_read_wakeup_thresh
	.comm	_random_read_wait,4,2           ## @random_read_wait
	.comm	_fasync,4,2                     ## @fasync
	.comm	_SIGIO,4,2                      ## @SIGIO
	.comm	_POLL_IN,4,2                    ## @POLL_IN
	.no_dead_strip	_credit_entropy_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function credit_entropy_bits
_credit_entropy_bits:                   ; @credit_entropy_bits
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_remember_state
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #16]
	stp	x21, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG_ENT
	ldr	w8, [x20]
	adds	w8, w8, w21
	b.mi	LBB0_4
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
LBB0_4:
	.cfi_restore_state
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG_ENT
	mov	w8, #0
LBB0_5:
Lloh4:
	adrp	x9, _input_pool@GOTPAGE
Lloh5:
	ldr	x9, [x9, _input_pool@GOTPAGEOFF]
	str	w8, [x20]
Lloh6:
	adrp	x10, _random_read_wakeup_thresh@GOTPAGE
Lloh7:
	ldr	x10, [x10, _random_read_wakeup_thresh@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x20, x9
	ccmp	w8, w10, #8, eq
	b.lt	LBB0_7
; %bb.6:
Lloh9:
	adrp	x0, _random_read_wait@GOTPAGE
Lloh10:
	ldr	x0, [x0, _random_read_wait@GOTPAGEOFF]
	bl	_wake_up_interruptible
Lloh11:
	adrp	x8, _SIGIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _POLL_IN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POLL_IN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x0, _fasync@GOTPAGE
Lloh18:
	ldr	x0, [x0, _fasync@GOTPAGEOFF]
	bl	_kill_fasync
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"added %d entropy credits to %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"negative entropy/overflow\n"

	.comm	_input_pool,24,3                ; @input_pool
	.comm	_random_read_wakeup_thresh,4,2  ; @random_read_wakeup_thresh
	.comm	_random_read_wait,4,2           ; @random_read_wait
	.comm	_fasync,4,2                     ; @fasync
	.comm	_SIGIO,4,2                      ; @SIGIO
	.comm	_POLL_IN,4,2                    ; @POLL_IN
	.no_dead_strip	_credit_entropy_bits
.subsections_via_symbols
