	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_context_control
_safexcel_context_control:              ## @safexcel_context_control
	.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
	movq	%rdx, %r14
	movq	16(%rdi), %r13
	movl	(%rdi), %eax
	orl	%eax, (%rdx)
	movq	%rsi, %r12
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.4:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movl	4(%r12), %edx
	movl	32(%r12), %esi
	callq	_memcpy
	cmpq	$0, 24(%r12)
	je	LBB0_17
## %bb.5:
	movl	8(%r12), %esi
	movq	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	je	LBB0_8
## %bb.6:
	cmpl	$0, 12(%r12)
	jne	LBB0_8
## %bb.7:
	movl	(%r12), %edx
	xorl	%eax, %eax
	cmpl	16(%r12), %edx
	je	LBB0_10
LBB0_8:
	movl	(%r12), %ebx
	movq	_EIP197_COUNTER_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.20:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_1:
	movq	_CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPCREL(%rip), %rax
	movq	_CONTEXT_CONTROL_RESTART_HASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	xorl	%r15d, %r15d
	cmpq	$0, 24(%r12)
	jne	LBB0_3
## %bb.2:
	movq	_CONTEXT_CONTROL_NO_FINISH_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movl	$1, %edi
	callq	_CONTEXT_CONTROL_SIZE
	orl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%ebx, (%r14)
	jmp	LBB0_19
LBB0_17:
	movl	4(%r12), %edi
	sarl	$2, %edi
	callq	_CONTEXT_CONTROL_SIZE
	movq	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CONTEXT_CONTROL_NO_FINISH_HASH@GOTPCREL(%rip), %rcx
LBB0_18:
	orl	(%rcx), %eax
	orl	%eax, (%r14)
	jmp	LBB0_19
LBB0_9:
	movl	%ebx, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movl	8(%r12), %esi
	movq	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_10:
	cmpl	%ecx, %esi
	je	LBB0_13
## %bb.11:
	cmpl	$0, 12(%r12)
	jne	LBB0_13
## %bb.12:
	movl	(%r12), %ecx
	cmpl	16(%r12), %ecx
	jne	LBB0_13
## %bb.16:
	movq	8(%r15), %rax
	movl	4(%r12), %edx
	movl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	4(%r15), %esi
	callq	_memcpy
	movl	4(%r12), %edi
	sarl	%edi
	callq	_CONTEXT_CONTROL_SIZE
	movq	_CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CONTEXT_CONTROL_DIGEST_HMAC@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_13:
	movl	%eax, %r13d
	movl	4(%r12), %edi
	sarl	$2, %edi
	incl	%edi
	callq	_CONTEXT_CONTROL_SIZE
	movq	_CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	orl	(%r14), %eax
	movl	%eax, (%r14)
	cmpl	$0, 12(%r12)
	je	LBB0_15
## %bb.14:
	movq	_CONTEXT_CONTROL_NO_FINISH_HASH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_15:
	movq	_CONTEXT_CONTROL_DIGEST_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movl	4(%r12), %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
	movl	$0, 12(%r12)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTEXT_CONTROL_TYPE_HASH_OUT,4,2 ## @CONTEXT_CONTROL_TYPE_HASH_OUT
	.comm	_CONTEXT_CONTROL_RESTART_HASH,4,2 ## @CONTEXT_CONTROL_RESTART_HASH
	.comm	_CONTEXT_CONTROL_NO_FINISH_HASH,4,2 ## @CONTEXT_CONTROL_NO_FINISH_HASH
	.comm	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED,4,2 ## @CONTEXT_CONTROL_DIGEST_PRECOMPUTED
	.comm	_EIP197_COUNTER_BLOCK_SIZE,4,2  ## @EIP197_COUNTER_BLOCK_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input data is too big\n"

	.comm	_CONTEXT_CONTROL_DIGEST_CNT,4,2 ## @CONTEXT_CONTROL_DIGEST_CNT
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,4,2 ## @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_context_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_context_control
_safexcel_context_control:              ; @safexcel_context_control
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	ldr	x22, [x0, #16]
	ldr	w8, [x0]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
	ldr	w8, [x1]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	w1, [x20, #32]
	ldr	w2, [x20, #4]
	bl	_memcpy
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x23, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.3:
	ldr	w10, [x20, #12]
	cbnz	w10, LBB0_7
; %bb.4:
	ldr	w10, [x20]
	ldr	w11, [x20, #16]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.5:
	mov	w22, #0
	cmp	w8, w9
	b.ne	LBB0_14
	b	LBB0_17
LBB0_6:
Lloh2:
	adrp	x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGEOFF]
	ldr	x9, [x20, #24]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _CONTEXT_CONTROL_RESTART_HASH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CONTEXT_CONTROL_RESTART_HASH@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh8:
	adrp	x10, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, w10, wzr, eq
	orr	w20, w8, w9
	mov	w0, #1
	bl	_CONTEXT_CONTROL_SIZE
	orr	w8, w20, w0
	b	LBB0_11
LBB0_7:
	ldr	w24, [x20]
Lloh11:
	adrp	x8, _EIP197_COUNTER_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIP197_COUNTER_BLOCK_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w25, [x8]
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_9:
	ldr	w8, [x20, #4]
	asr	w0, w8, #2
	bl	_CONTEXT_CONTROL_SIZE
Lloh16:
	adrp	x8, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONTEXT_CONTROL_DIGEST_PRECOMPUTED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh19:
	adrp	x9, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGE
Lloh23:
	ldr	x10, [x10, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh24:
	ldr	w9, [x10]
LBB0_10:
	orr	w8, w8, w9
LBB0_11:
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x20, #8]
	ldr	w9, [x23]
	sdiv	w22, w24, w25
	cmp	w8, w9
	b.eq	LBB0_17
LBB0_14:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_17
; %bb.15:
	ldr	w8, [x20]
	ldr	w9, [x20, #16]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w2, [x20, #4]
	asr	w9, w2, #2
	add	x0, x8, w9, sxtw #2
	ldr	w1, [x21, #4]
	bl	_memcpy
	ldr	w8, [x20, #4]
	asr	w0, w8, #1
	bl	_CONTEXT_CONTROL_SIZE
Lloh25:
	adrp	x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CONTEXT_CONTROL_DIGEST_HMAC@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh30:
	ldr	w9, [x9]
	b	LBB0_10
LBB0_17:
	ldr	w8, [x20, #4]
	asr	w8, w8, #2
	add	w0, w8, #1
	bl	_CONTEXT_CONTROL_SIZE
Lloh31:
	adrp	x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CONTEXT_CONTROL_TYPE_HASH_OUT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x20, #12]
	cbz	w9, LBB0_19
; %bb.18:
Lloh34:
	adrp	x9, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CONTEXT_CONTROL_NO_FINISH_HASH@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_19:
Lloh37:
	adrp	x8, _CONTEXT_CONTROL_DIGEST_CNT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CONTEXT_CONTROL_DIGEST_CNT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w9, [x20, #4]
	asr	w9, w9, #2
	str	w0, [x8, w9, sxtw #2]
	ldr	w8, [x23]
	stp	w8, wzr, [x20, #8]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTEXT_CONTROL_TYPE_HASH_OUT,4,2 ; @CONTEXT_CONTROL_TYPE_HASH_OUT
	.comm	_CONTEXT_CONTROL_RESTART_HASH,4,2 ; @CONTEXT_CONTROL_RESTART_HASH
	.comm	_CONTEXT_CONTROL_NO_FINISH_HASH,4,2 ; @CONTEXT_CONTROL_NO_FINISH_HASH
	.comm	_CONTEXT_CONTROL_DIGEST_PRECOMPUTED,4,2 ; @CONTEXT_CONTROL_DIGEST_PRECOMPUTED
	.comm	_EIP197_COUNTER_BLOCK_SIZE,4,2  ; @EIP197_COUNTER_BLOCK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input data is too big\n"

	.comm	_CONTEXT_CONTROL_DIGEST_CNT,4,2 ; @CONTEXT_CONTROL_DIGEST_CNT
	.comm	_CONTEXT_CONTROL_DIGEST_HMAC,4,2 ; @CONTEXT_CONTROL_DIGEST_HMAC
	.no_dead_strip	_safexcel_context_control
.subsections_via_symbols
