	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_write_ctrl_omap2
_omap_sham_write_ctrl_omap2:            ## @omap_sham_write_ctrl_omap2
	.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	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r12
	movl	4(%rax), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_SHA_REG_DIGCNT
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_omap_sham_write
LBB0_2:
	shll	$5, %r15d
	movq	%r14, %rdi
	callq	_SHA_REG_MASK
	movq	_SHA_REG_MASK_IT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%ebx, %ebx
	movq	_SHA_REG_MASK_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %ebx
	orl	%edx, %ebx
	orl	%edx, %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_omap_sham_write_mask
	movq	_FLAGS_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movq	_FLAGS_MODE_SHA1@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	movq	_SHA_REG_CTRL_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %esi
	cmovel	%eax, %esi
	orl	%r15d, %esi
	cmpl	$0, 4(%r12)
	movq	_SHA_REG_CTRL_ALGO_CONST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%ecx, %edx
	testl	%r13d, %r13d
	movq	_SHA_REG_CTRL_CLOSE_HASH@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmovnel	%edi, %r13d
	orl	%edx, %r13d
	orl	%esi, %r13d
	movq	_SHA_REG_CTRL_LENGTH@GOTPCREL(%rip), %rdx
	orl	%eax, %ecx
	orl	%edi, %ecx
	orl	(%rdx), %ecx
	movq	_SHA_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_sham_write_mask           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA_REG_MASK_IT_EN,4,2         ## @SHA_REG_MASK_IT_EN
	.comm	_SHA_REG_MASK_DMA_EN,4,2        ## @SHA_REG_MASK_DMA_EN
	.comm	_FLAGS_MODE_MASK,4,2            ## @FLAGS_MODE_MASK
	.comm	_FLAGS_MODE_SHA1,4,2            ## @FLAGS_MODE_SHA1
	.comm	_SHA_REG_CTRL_ALGO,4,2          ## @SHA_REG_CTRL_ALGO
	.comm	_SHA_REG_CTRL_ALGO_CONST,4,2    ## @SHA_REG_CTRL_ALGO_CONST
	.comm	_SHA_REG_CTRL_CLOSE_HASH,4,2    ## @SHA_REG_CTRL_CLOSE_HASH
	.comm	_SHA_REG_CTRL_LENGTH,4,2        ## @SHA_REG_CTRL_LENGTH
	.comm	_SHA_REG_CTRL,4,2               ## @SHA_REG_CTRL
	.no_dead_strip	_omap_sham_write_ctrl_omap2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sham_write_ctrl_omap2
_omap_sham_write_ctrl_omap2:            ; @omap_sham_write_ctrl_omap2
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_ahash_request_ctx
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_SHA_REG_DIGCNT
	mov	x1, x0
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_omap_sham_write
LBB0_2:
	mov	x0, x19
	bl	_SHA_REG_MASK
	mov	x1, x0
Lloh0:
	adrp	x8, _SHA_REG_MASK_IT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHA_REG_MASK_IT_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SHA_REG_MASK_DMA_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SHA_REG_MASK_DMA_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w23, #0
	csel	w10, wzr, w9, eq
	orr	w2, w10, w8
	orr	w3, w9, w8
	mov	x0, x19
	bl	_omap_sham_write_mask
Lloh6:
	adrp	x8, _FLAGS_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAGS_MODE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x22]
	and	w8, w8, w9
Lloh9:
	adrp	x9, _FLAGS_MODE_SHA1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLAGS_MODE_SHA1@GOTPAGEOFF]
Lloh11:
	adrp	x11, _SHA_REG_CTRL_ALGO@GOTPAGE
Lloh12:
	ldr	x11, [x11, _SHA_REG_CTRL_ALGO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w11, [x11]
	cmp	w8, w9
	csel	w8, w11, wzr, eq
Lloh15:
	adrp	x9, _SHA_REG_CTRL_ALGO_CONST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SHA_REG_CTRL_ALGO_CONST@GOTPAGEOFF]
	orr	w8, w8, w21, lsl #5
Lloh17:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w10, w9, wzr, eq
Lloh18:
	adrp	x12, _SHA_REG_CTRL_CLOSE_HASH@GOTPAGE
Lloh19:
	ldr	x12, [x12, _SHA_REG_CTRL_CLOSE_HASH@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh20:
	ldr	w10, [x12]
	cmp	w20, #0
	csel	w12, wzr, w10, eq
Lloh21:
	adrp	x13, _SHA_REG_CTRL_LENGTH@GOTPAGE
Lloh22:
	ldr	x13, [x13, _SHA_REG_CTRL_LENGTH@GOTPAGEOFF]
	orr	w2, w8, w12
Lloh23:
	ldr	w8, [x13]
	orr	w9, w9, w11
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _SHA_REG_CTRL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SHA_REG_CTRL@GOTPAGEOFF]
	orr	w3, w9, w8
Lloh26:
	ldr	w1, [x10]
	mov	x0, x19
	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
	b	_omap_sham_write_mask
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA_REG_MASK_IT_EN,4,2         ; @SHA_REG_MASK_IT_EN
	.comm	_SHA_REG_MASK_DMA_EN,4,2        ; @SHA_REG_MASK_DMA_EN
	.comm	_FLAGS_MODE_MASK,4,2            ; @FLAGS_MODE_MASK
	.comm	_FLAGS_MODE_SHA1,4,2            ; @FLAGS_MODE_SHA1
	.comm	_SHA_REG_CTRL_ALGO,4,2          ; @SHA_REG_CTRL_ALGO
	.comm	_SHA_REG_CTRL_ALGO_CONST,4,2    ; @SHA_REG_CTRL_ALGO_CONST
	.comm	_SHA_REG_CTRL_CLOSE_HASH,4,2    ; @SHA_REG_CTRL_CLOSE_HASH
	.comm	_SHA_REG_CTRL_LENGTH,4,2        ; @SHA_REG_CTRL_LENGTH
	.comm	_SHA_REG_CTRL,4,2               ; @SHA_REG_CTRL
	.no_dead_strip	_omap_sham_write_ctrl_omap2
.subsections_via_symbols
