	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cond_rand_
_cond_rand_:                            ## @cond_rand_
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	jmp	LBB0_9
LBB0_2:
	cmpq	$0, _cond_rand_.c(%rip)
	jne	LBB0_4
## %bb.3:
	movq	_ptls_openssl_aes128ctr@GOTPCREL(%rip), %rdi
	leaq	_cond_rand_.key(%rip), %rdx
	movl	$1, %esi
	callq	_ptls_cipher_new
	movq	%rax, _cond_rand_.c(%rip)
	incl	_cond_rand_.key(%rip)
LBB0_4:
	movl	$0, 4(%rbx)
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r14
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cond_rand_.c(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_ptls_cipher_encrypt
	movl	-36(%rbp), %eax
	movl	12(%rbx), %esi
	cltd
	idivl	%esi
	movl	%edx, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	4(%rbx), %edx
	btl	%ecx, %edx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	orl	%eax, %edx
	movl	%edx, 4(%rbx)
	incl	%r12d
	cmpl	8(%rbx), %r12d
	jne	LBB0_7
	jmp	LBB0_9
LBB0_5:
	movl	12(%rbx), %esi
	xorl	%edx, %edx
LBB0_9:
	decl	%esi
	movl	%esi, (%rbx)
	xorl	%eax, %eax
	btl	%esi, %edx
	setae	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cond_rand_.c,8,3 ## @cond_rand_.c
.zerofill __DATA,__bss,_cond_rand_.key,8,2 ## @cond_rand_.key
	.comm	_ptls_openssl_aes128ctr,4,2     ## @ptls_openssl_aes128ctr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"01234567"

	.no_dead_strip	_cond_rand_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cond_rand_
_cond_rand_:                            ; @cond_rand_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w9, [x19, #4]
	b	LBB0_9
LBB0_2:
	adrp	x21, _cond_rand_.c@PAGE
	ldr	x8, [x21, _cond_rand_.c@PAGEOFF]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, _ptls_openssl_aes128ctr@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ptls_openssl_aes128ctr@GOTPAGEOFF]
Lloh2:
	adrp	x20, _cond_rand_.key@PAGE
Lloh3:
	add	x20, x20, _cond_rand_.key@PAGEOFF
	mov	w1, #1
	mov	x2, x20
	bl	_ptls_cipher_new
	str	x0, [x21, _cond_rand_.c@PAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_4:
	str	wzr, [x19, #4]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.5:
	mov	w22, #0
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	mov	w23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, _cond_rand_.c@PAGEOFF]
	add	x1, sp, #12
	mov	x2, x20
	mov	w3, #4
	bl	_ptls_cipher_encrypt
	ldr	w9, [sp, #12]
	ldr	w8, [x19, #12]
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	lsl	w9, w23, w9
	ldr	w10, [x19, #4]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	orr	w9, w10, w9
	str	w9, [x19, #4]
	add	w22, w22, #1
	ldr	w10, [x19, #8]
	cmp	w22, w10
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w9, #0
	ldr	w8, [x19, #12]
LBB0_9:
	sub	w8, w8, #1
	str	w8, [x19]
	mvn	w9, w9
	lsr	w8, w9, w8
	and	w0, w8, #0x1
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cond_rand_.c,8,3 ; @cond_rand_.c
.zerofill __DATA,__bss,_cond_rand_.key,8,2 ; @cond_rand_.key
	.comm	_ptls_openssl_aes128ctr,4,2     ; @ptls_openssl_aes128ctr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"01234567"

	.no_dead_strip	_cond_rand_
.subsections_via_symbols
