	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_drbg_update_internal
_ctr_drbg_update_internal:              ## @ctr_drbg_update_internal
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_CTR_DRBG_SEEDLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	cmpl	$0, (%r13)
	jle	LBB0_23
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	movq	_MBEDTLS_CTR_DRBG_BLOCKSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r12, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MBEDTLS_AES_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_mbedtls_aes_crypt_ecb
	movslq	(%r15), %rcx
	addq	%rcx, %rbx
	addl	%ecx, %r14d
	movq	_MBEDTLS_CTR_DRBG_SEEDLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	-8(%rdx,%rax,8)
	leaq	-1(%rax), %rax
	je	LBB0_3
	jmp	LBB0_5
LBB0_6:
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_23
## %bb.7:
	cmpl	$8, %eax
	jae	LBB0_9
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_9:
	cmpl	$32, %eax
	jae	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_11:
	movl	%eax, %ecx
	andl	$-32, %ecx
	leaq	-32(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$5, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.13:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdx), %xmm0
	movups	16(%rbx,%rdx), %xmm1
	xorps	(%r12,%rdx), %xmm0
	xorps	16(%r12,%rdx), %xmm1
	movaps	%xmm0, (%r12,%rdx)
	movaps	%xmm1, 16(%r12,%rdx)
	movups	32(%rbx,%rdx), %xmm0
	movups	48(%rbx,%rdx), %xmm1
	xorps	32(%r12,%rdx), %xmm0
	xorps	48(%r12,%rdx), %xmm1
	movaps	%xmm0, 32(%r12,%rdx)
	movaps	%xmm1, 48(%r12,%rdx)
	addq	$64, %rdx
	addq	$-2, %rdi
	jne	LBB0_14
## %bb.15:
	testb	$1, %sil
	je	LBB0_17
LBB0_16:
	movups	(%rbx,%rdx), %xmm0
	movups	16(%rbx,%rdx), %xmm1
	xorps	(%r12,%rdx), %xmm0
	xorps	16(%r12,%rdx), %xmm1
	movaps	%xmm0, (%r12,%rdx)
	movaps	%xmm1, 16(%r12,%rdx)
LBB0_17:
	cmpq	%rax, %rcx
	je	LBB0_23
## %bb.18:
	testb	$24, %al
	je	LBB0_22
LBB0_19:
	movq	%rcx, %rdx
	movl	%eax, %ecx
	andl	$-8, %ecx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx), %rsi
	xorq	%rsi, (%r12,%rdx)
	addq	$8, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_20
## %bb.21:
	cmpq	%rax, %rcx
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %edx
	xorb	%dl, (%r12,%rcx)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_22
LBB0_23:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rdi
	movq	_MBEDTLS_CTR_DRBG_KEYBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_mbedtls_aes_setkey_enc
	movq	(%rbx), %rdi
	movq	_MBEDTLS_CTR_DRBG_KEYSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %r12
	movq	_MBEDTLS_CTR_DRBG_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_16
	jmp	LBB0_17
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_CTR_DRBG_SEEDLEN,4,2   ## @MBEDTLS_CTR_DRBG_SEEDLEN
	.comm	_MBEDTLS_CTR_DRBG_BLOCKSIZE,4,2 ## @MBEDTLS_CTR_DRBG_BLOCKSIZE
	.comm	_MBEDTLS_AES_ENCRYPT,4,2        ## @MBEDTLS_AES_ENCRYPT
	.comm	_MBEDTLS_CTR_DRBG_KEYBITS,4,2   ## @MBEDTLS_CTR_DRBG_KEYBITS
	.comm	_MBEDTLS_CTR_DRBG_KEYSIZE,4,2   ## @MBEDTLS_CTR_DRBG_KEYSIZE
	.no_dead_strip	_ctr_drbg_update_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_drbg_update_internal
_ctr_drbg_update_internal:              ; @ctr_drbg_update_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MBEDTLS_CTR_DRBG_SEEDLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MBEDTLS_CTR_DRBG_SEEDLEN@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x0, x20
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	ldr	w8, [x25]
Lloh7:
	adrp	x24, _MBEDTLS_CTR_DRBG_BLOCKSIZE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MBEDTLS_CTR_DRBG_BLOCKSIZE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	w26, #0
	add	x22, x19, #8
	ldr	w9, [x24]
Lloh9:
	adrp	x27, _MBEDTLS_AES_ENCRYPT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MBEDTLS_AES_ENCRYPT@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	x0, x22
	mov	x3, x23
	bl	_mbedtls_aes_crypt_ecb
	ldrsw	x9, [x24]
	add	x23, x23, x9
	ldr	w8, [x25]
	add	w26, w9, w26
	cmp	w26, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	w8, w9
	ldr	x2, [x19]
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x9, x2, x8, lsl #3
	sub	x8, x8, #1
	ldur	x10, [x9, #-8]
	adds	x10, x10, #1
	stur	x10, [x9, #-8]
	b.hs	LBB0_4
	b	LBB0_2
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.7:
	cmp	w8, #8
	b.hs	LBB0_9
; %bb.8:
	mov	x9, #0
	b	LBB0_18
LBB0_9:
	cmp	w8, #64
	b.hs	LBB0_11
; %bb.10:
	mov	x9, #0
	b	LBB0_15
LBB0_11:
	and	x9, x8, #0xffffffc0
	add	x10, x20, #32
	add	x11, x21, #32
	mov	x12, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #64
	b.ne	LBB0_12
; %bb.13:
	cmp	x9, x8
	b.eq	LBB0_20
; %bb.14:
	tst	x8, #0x38
	b.eq	LBB0_18
LBB0_15:
	mov	x12, x9
	and	x9, x8, #0xfffffff8
	add	x10, x21, x12
	add	x11, x20, x12
	sub	x12, x12, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x10], #8
	ldr	d1, [x11]
	eor.8b	v0, v1, v0
	str	d0, [x11], #8
	adds	x12, x12, #8
	b.ne	LBB0_16
; %bb.17:
	cmp	x9, x8
	b.eq	LBB0_20
LBB0_18:
	add	x10, x20, x9
	add	x11, x21, x9
	sub	x8, x8, x9
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	ldrb	w12, [x10]
	eor	w9, w12, w9
	strb	w9, [x10], #1
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_20:
	add	x0, x19, #8
Lloh11:
	adrp	x8, _MBEDTLS_CTR_DRBG_KEYBITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_CTR_DRBG_KEYBITS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_mbedtls_aes_setkey_enc
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _MBEDTLS_CTR_DRBG_KEYSIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBEDTLS_CTR_DRBG_KEYSIZE@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x1, x20, x8
	ldr	w2, [x24]
	bl	_memcpy
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_CTR_DRBG_SEEDLEN,4,2   ; @MBEDTLS_CTR_DRBG_SEEDLEN
	.comm	_MBEDTLS_CTR_DRBG_BLOCKSIZE,4,2 ; @MBEDTLS_CTR_DRBG_BLOCKSIZE
	.comm	_MBEDTLS_AES_ENCRYPT,4,2        ; @MBEDTLS_AES_ENCRYPT
	.comm	_MBEDTLS_CTR_DRBG_KEYBITS,4,2   ; @MBEDTLS_CTR_DRBG_KEYBITS
	.comm	_MBEDTLS_CTR_DRBG_KEYSIZE,4,2   ; @MBEDTLS_CTR_DRBG_KEYSIZE
	.no_dead_strip	_ctr_drbg_update_internal
.subsections_via_symbols
