	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sai6_putrandom
_sai6_putrandom:                        ## @sai6_putrandom
	.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
	movl	%esi, %r15d
	leal	-1(%r15), %eax
	cmpl	$126, %eax
	ja	LBB0_7
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r14
	movl	$15, %r12d
	cmpl	$120, %r15d
	ja	LBB0_5
## %bb.2:
	movl	$128, %ebx
	subl	%r15d, %ebx
	shrl	$3, %ebx
	andl	$31, %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	negq	%rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ub_random_max
	movq	(%r14), %rcx
	movl	%eax, 60(%rcx,%r12,4)
	decq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_3
## %bb.4:
	movl	$15, %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %r12
LBB0_5:
	andl	$7, %r15d
	je	LBB0_7
## %bb.6:
	movl	$255, %ebx
	movl	%r15d, %ecx
	shrl	%cl, %ebx
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ub_random_max
	andl	%ebx, %eax
	movq	(%r14), %rcx
	orl	%eax, (%rcx,%r12,4)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sai6_putrandom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sai6_putrandom
_sai6_putrandom:                        ; @sai6_putrandom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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_offset w23, -56
	.cfi_offset w24, -64
	sub	w8, w1, #1
	cmp	w8, #126
	b.hi	LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w1, #120
	b.hi	LBB0_5
; %bb.2:
	mov	w8, #128
	sub	w8, w8, w21
	ubfx	w22, w8, #3, #5
	lsl	x23, x22, #2
	mov	w24, #60
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #256
	bl	_ub_random_max
	ldr	x8, [x19]
	str	w0, [x8, x24]
	sub	x24, x24, #4
	add	x8, x23, x24
	cmp	x8, #60
	b.ne	LBB0_3
; %bb.4:
	mov	w8, #15
	sub	w8, w8, w22
	sxtw	x22, w8
	ands	w8, w21, #0x7
	b.ne	LBB0_6
	b	LBB0_7
LBB0_5:
	mov	w22, #15
	ands	w8, w21, #0x7
	b.eq	LBB0_7
LBB0_6:
	mov	w9, #255
	lsr	w21, w9, w8
	mov	x0, x20
	mov	w1, #256
	bl	_ub_random_max
	and	w8, w0, w21
	ldr	x9, [x19]
	lsl	x10, x22, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sai6_putrandom
.subsections_via_symbols
