	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_aes_write_ctrl            ## -- Begin function omap_aes_write_ctrl
	.p2align	4, 0x90
_omap_aes_write_ctrl:                   ## @omap_aes_write_ctrl
	.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	%rdi, %r15
	callq	_omap_aes_hw_init
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movq	_FLAGS_GCM@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$28, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$36, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$40, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$48, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$52, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
	movq	%r15, %rdi
	movl	$60, %esi
	xorl	%edx, %edx
	callq	_omap_aes_write
LBB0_3:
	cmpl	$4, %ebx
	jb	LBB0_6
## %bb.4:
	sarl	$2, %ebx
	cmpl	$2, %ebx
	movl	$1, %r13d
	cmovael	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_AES_REG_KEY
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	___le32_to_cpu
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_omap_aes_write
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_5
LBB0_6:
	movl	(%r15), %eax
	movq	_FLAGS_CBC@GOTPCREL(%rip), %r14
	movq	_FLAGS_CTR@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.7:
	movq	24(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_AES_REG_IV
	movq	24(%r15), %rcx
	movq	(%rcx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_omap_aes_write_n
	movl	(%r15), %eax
LBB0_9:
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.10:
	movq	16(%r15), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_12
## %bb.11:
	callq	_aead_request_ctx
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_AES_REG_IV
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_omap_aes_write_n
LBB0_12:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	sarl	$3, %edi
	decl	%edi
	movl	$4, %esi
	movl	$3, %edx
	callq	_FLD_VAL
	movl	(%r15), %ecx
	movl	(%r14), %r14d
	andl	%ecx, %r14d
	je	LBB0_14
## %bb.13:
	movq	_AES_REG_CTRL_CBC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
LBB0_14:
	movl	(%r12), %edx
	movl	(%r13), %esi
	orl	%edx, %esi
	andl	%ecx, %esi
	movq	_AES_REG_CTRL_CTR@GOTPCREL(%rip), %rdi
	movq	_AES_REG_CTRL_CTR_WIDTH_128@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	orl	(%rdi), %ebx
	testl	%esi, %esi
	cmovel	%esi, %ebx
	orl	%ebx, %eax
	andl	%ecx, %edx
	je	LBB0_16
## %bb.15:
	movq	_AES_REG_CTRL_GCM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_16:
	orl	%eax, %r14d
	movq	_FLAGS_ENCRYPT@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_18
## %bb.17:
	movq	_AES_REG_CTRL_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_18:
	orl	%ecx, %edx
	orl	%edx, %r14d
	movq	%r15, %rdi
	callq	_AES_REG_CTRL
	movq	_AES_REG_CTRL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_omap_aes_write_mask
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_GCM,4,2                  ## @FLAGS_GCM
	.comm	_FLAGS_CBC,4,2                  ## @FLAGS_CBC
	.comm	_FLAGS_CTR,4,2                  ## @FLAGS_CTR
	.comm	_AES_REG_CTRL_CBC,4,2           ## @AES_REG_CTRL_CBC
	.comm	_AES_REG_CTRL_CTR,4,2           ## @AES_REG_CTRL_CTR
	.comm	_AES_REG_CTRL_CTR_WIDTH_128,4,2 ## @AES_REG_CTRL_CTR_WIDTH_128
	.comm	_AES_REG_CTRL_GCM,4,2           ## @AES_REG_CTRL_GCM
	.comm	_FLAGS_ENCRYPT,4,2              ## @FLAGS_ENCRYPT
	.comm	_AES_REG_CTRL_DIRECTION,4,2     ## @AES_REG_CTRL_DIRECTION
	.comm	_AES_REG_CTRL_MASK,4,2          ## @AES_REG_CTRL_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_aes_write_ctrl            ; -- Begin function omap_aes_write_ctrl
	.p2align	2
_omap_aes_write_ctrl:                   ; @omap_aes_write_ctrl
	.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	x19, x0
	bl	_omap_aes_hw_init
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _FLAGS_GCM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FLAGS_GCM@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #12
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #20
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #28
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #36
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #40
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #44
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #48
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #52
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_omap_aes_write
	mov	x0, x19
	mov	w1, #60
	mov	w2, #0
	bl	_omap_aes_write
LBB0_3:
	cmp	w21, #4
	b.lo	LBB0_6
; %bb.4:
	mov	x20, #0
	asr	w8, w21, #2
	cmp	w8, #1
	csinc	w23, w8, wzr, hi
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_AES_REG_KEY
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	___le32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_omap_aes_write
	add	x20, x20, #1
	cmp	x23, x20
	b.ne	LBB0_5
LBB0_6:
	ldr	w8, [x19]
Lloh2:
	adrp	x23, _FLAGS_CBC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FLAGS_CBC@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x21, _FLAGS_CTR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FLAGS_CTR@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_AES_REG_IV
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_omap_aes_write_n
	ldr	w8, [x19]
LBB0_9:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.11:
	bl	_aead_request_ctx
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_AES_REG_IV
	mov	x1, x0
	ldr	x2, [x20]
	mov	x0, x19
	mov	w3, #4
	bl	_omap_aes_write_n
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	asr	w8, w8, #3
	sub	w0, w8, #1
	mov	w1, #4
	mov	w2, #3
	bl	_FLD_VAL
	ldr	w8, [x19]
	ldr	w9, [x23]
Lloh6:
	adrp	x10, _AES_REG_CTRL_CBC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AES_REG_CTRL_CBC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w9, w9, w0
	ldr	w10, [x21]
	ldr	w11, [x22]
Lloh9:
	adrp	x12, _AES_REG_CTRL_CTR@GOTPAGE
Lloh10:
	ldr	x12, [x12, _AES_REG_CTRL_CTR@GOTPAGEOFF]
	orr	w10, w11, w10
Lloh11:
	ldr	w12, [x12]
Lloh12:
	adrp	x13, _AES_REG_CTRL_CTR_WIDTH_128@GOTPAGE
Lloh13:
	ldr	x13, [x13, _AES_REG_CTRL_CTR_WIDTH_128@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w12, w13, w12
	tst	w10, w8
	csel	w10, wzr, w12, eq
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _AES_REG_CTRL_GCM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AES_REG_CTRL_GCM@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w11, w8
	csel	w10, wzr, w10, eq
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _FLAGS_ENCRYPT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _FLAGS_ENCRYPT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _AES_REG_CTRL_DIRECTION@GOTPAGE
Lloh22:
	ldr	x11, [x11, _AES_REG_CTRL_DIRECTION@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w20, w9, w8
	mov	x0, x19
	bl	_AES_REG_CTRL
	mov	x1, x0
Lloh24:
	adrp	x8, _AES_REG_CTRL_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AES_REG_CTRL_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_omap_aes_write_mask
	mov	w0, #0
LBB0_13:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_GCM,4,2                  ; @FLAGS_GCM
	.comm	_FLAGS_CBC,4,2                  ; @FLAGS_CBC
	.comm	_FLAGS_CTR,4,2                  ; @FLAGS_CTR
	.comm	_AES_REG_CTRL_CBC,4,2           ; @AES_REG_CTRL_CBC
	.comm	_AES_REG_CTRL_CTR,4,2           ; @AES_REG_CTRL_CTR
	.comm	_AES_REG_CTRL_CTR_WIDTH_128,4,2 ; @AES_REG_CTRL_CTR_WIDTH_128
	.comm	_AES_REG_CTRL_GCM,4,2           ; @AES_REG_CTRL_GCM
	.comm	_FLAGS_ENCRYPT,4,2              ; @FLAGS_ENCRYPT
	.comm	_AES_REG_CTRL_DIRECTION,4,2     ; @AES_REG_CTRL_DIRECTION
	.comm	_AES_REG_CTRL_MASK,4,2          ; @AES_REG_CTRL_MASK
.subsections_via_symbols
