	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drbg_ctr_init                  ## -- Begin function drbg_ctr_init
	.p2align	4, 0x90
_drbg_ctr_init:                         ## @drbg_ctr_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$130, %eax
	jne	LBB0_15
## %bb.3:
	xorl	%eax, %eax
	callq	_EVP_aes_128_ecb
	movl	$16, %ebx
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_EVP_aes_256_ecb
	movl	$32, %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_EVP_aes_192_ecb
	movl	$24, %ebx
LBB0_6:
	movl	%eax, 88(%r15)
	movq	_drbg_ctr_meth@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r15)
	movq	%rbx, 80(%r15)
	cmpq	$0, 104(%r15)
	jne	LBB0_8
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 104(%r15)
	testq	%rax, %rax
	je	LBB0_15
LBB0_8:
	leaq	(,%rbx,8), %rax
	movq	%rax, 8(%r15)
	addq	$16, %rbx
	movq	%rbx, 16(%r15)
	movq	_RAND_DRBG_FLAG_CTR_NO_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_9
## %bb.13:
	movq	%rbx, 32(%r15)
	movl	%ebx, 40(%r15)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_9:
	movq	96(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.10:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %rdi
	movq	%rax, 96(%r15)
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movl	88(%r15), %esi
	leaq	_drbg_ctr_init.df_key(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	80(%r15), %rax
	movq	%rax, 32(%r15)
	movq	_DRBG_MAX_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ecx, 40(%r15)
	shrq	%rax
	movl	%ecx, %ebx
LBB0_14:
	movl	%eax, 44(%r15)
	movq	%rcx, 64(%r15)
	movl	%ebx, 48(%r15)
	movl	%ebx, 52(%r15)
	movl	$65536, 56(%r15)                ## imm = 0x10000
	movl	$1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drbg_ctr_meth,4,2              ## @drbg_ctr_meth
	.comm	_RAND_DRBG_FLAG_CTR_NO_DF,4,2   ## @RAND_DRBG_FLAG_CTR_NO_DF
	.section	__TEXT,__const
	.p2align	4                               ## @drbg_ctr_init.df_key
_drbg_ctr_init.df_key:
	.ascii	"\000\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"

	.comm	_DRBG_MAX_LENGTH,8,3            ## @DRBG_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drbg_ctr_init                  ; -- Begin function drbg_ctr_init
	.p2align	2
_drbg_ctr_init:                         ; @drbg_ctr_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.3:
	mov	w20, #16
	bl	_EVP_aes_128_ecb
	b	LBB0_6
LBB0_4:
	mov	w20, #32
	bl	_EVP_aes_256_ecb
	b	LBB0_6
LBB0_5:
	mov	w20, #24
	bl	_EVP_aes_192_ecb
LBB0_6:
	str	w0, [x19, #88]
Lloh0:
	adrp	x8, _drbg_ctr_meth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drbg_ctr_meth@GOTPAGEOFF]
	stp	x8, x20, [x19, #72]
	ldr	x8, [x19, #104]
	cbnz	x8, LBB0_8
; %bb.7:
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #104]
	cbz	x0, LBB0_16
LBB0_8:
	lsl	x9, x20, #3
	add	x8, x20, #16
	stp	x9, x8, [x19, #8]
	ldr	w9, [x19, #24]
Lloh2:
	adrp	x10, _RAND_DRBG_FLAG_CTR_NO_DF@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RAND_DRBG_FLAG_CTR_NO_DF@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:
	mov	w10, #0
	mov	x9, #0
	str	x8, [x19, #32]
	str	w8, [x19, #40]
	b	LBB0_15
LBB0_10:
	mov	w0, #0
	b	LBB0_16
LBB0_11:
	ldr	x0, [x19, #96]
	cbnz	x0, LBB0_13
; %bb.12:
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #96]
	cbz	x0, LBB0_16
LBB0_13:
	ldr	w1, [x19, #88]
Lloh5:
	adrp	x3, _drbg_ctr_init.df_key@PAGE
Lloh6:
	add	x3, x3, _drbg_ctr_init.df_key@PAGEOFF
	mov	x2, #0
	mov	x4, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x8, [x19, #80]
	str	x8, [x19, #32]
Lloh7:
	adrp	x9, _DRBG_MAX_LENGTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRBG_MAX_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	w9, [x19, #40]
	lsr	x10, x8, #1
	mov	x8, x9
LBB0_15:
	str	x9, [x19, #64]
	stp	w10, w8, [x19, #44]
	mov	w9, #65536
	mov	w0, #1
	stp	w8, w9, [x19, #52]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_drbg_ctr_meth,4,2              ; @drbg_ctr_meth
	.comm	_RAND_DRBG_FLAG_CTR_NO_DF,4,2   ; @RAND_DRBG_FLAG_CTR_NO_DF
	.section	__TEXT,__const
_drbg_ctr_init.df_key:                  ; @drbg_ctr_init.df_key
	.ascii	"\000\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"

	.comm	_DRBG_MAX_LENGTH,8,3            ; @DRBG_MAX_LENGTH
.subsections_via_symbols
