	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_aes_gcm_crypt
_omap_aes_gcm_crypt:                    ## @omap_aes_gcm_crypt
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_aead_request_ctx
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_crypto_aead_reqtfm
	movq	%rax, %rdi
	callq	_crypto_aead_authsize
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_cpu_to_be32
	movl	%eax, -44(%rbp)
	movq	8(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_GCM_AES_IV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r13), %rsi
	movq	16(%r13), %rdx
	movq	%r15, %rdi
	callq	_do_encrypt_iv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_FLAGS_RFC4106_GCM@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	leal	-8(%rcx), %edx
	testq	%r14, (%rax)
	cmovel	%ecx, %edx
	movslq	%edx, %rax
	addq	8(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r13), %rdi
	movl	16(%r15), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	$1, %r8d
	callq	_scatterwalk_map_and_copy
	jmp	LBB0_6
LBB0_3:
	movq	%r13, %rdi
	callq	_omap_aes_find_dev
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, (%r13)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_omap_aes_gcm_handle_queue
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCM_AES_IV_SIZE,8,3            ## @GCM_AES_IV_SIZE
	.comm	_FLAGS_RFC4106_GCM,8,3          ## @FLAGS_RFC4106_GCM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_omap_aes_gcm_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_aes_gcm_crypt
_omap_aes_gcm_crypt:                    ; @omap_aes_gcm_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_aead_request_ctx
	mov	x21, x0
	mov	x0, x19
	bl	_crypto_aead_reqtfm
	bl	_crypto_aead_authsize
	mov	x22, x0
	mov	w0, #1
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	x0, [x21, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x9, _GCM_AES_IV_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GCM_AES_IV_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldp	x1, x2, [x21, #8]
	mov	x0, x19
	bl	_do_encrypt_iv
	cbnz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _FLAGS_RFC4106_GCM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAGS_RFC4106_GCM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x19]
	sub	w10, w9, #8
	tst	x8, x20
	csel	w8, w9, w10, eq
	ldr	x9, [x19, #8]
	cmn	x9, w8, sxtw
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x21, #8]
	ldr	w1, [x19, #16]
	mov	w2, #0
	mov	x3, x22
	mov	w4, #1
	bl	_scatterwalk_map_and_copy
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_omap_aes_find_dev
	cbz	x0, LBB0_5
; %bb.4:
	str	x20, [x21]
	mov	x1, x19
	bl	_omap_aes_gcm_handle_queue
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GCM_AES_IV_SIZE,8,3            ; @GCM_AES_IV_SIZE
	.comm	_FLAGS_RFC4106_GCM,8,3          ; @FLAGS_RFC4106_GCM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_omap_aes_gcm_crypt
.subsections_via_symbols
