	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_aes_crypt
_s5p_aes_crypt:                         ## @s5p_aes_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_crypto_ablkcipher_reqtfm
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ablkcipher_request_ctx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_crypto_ablkcipher_ctx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r12
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_FLAGS_AES_MODE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	%r14, %rax
	movq	_FLAGS_AES_CTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_6:
	movq	%r14, (%r15)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5p_aes_handle_req             ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_FLAGS_AES_MODE_MASK,8,3        ## @FLAGS_AES_MODE_MASK
	.comm	_FLAGS_AES_CTR,8,3              ## @FLAGS_AES_CTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request size is not exact amount of AES blocks\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s5p_aes_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_aes_crypt
_s5p_aes_crypt:                         ; @s5p_aes_crypt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_crypto_ablkcipher_reqtfm
	mov	x22, x0
	mov	x0, x19
	bl	_ablkcipher_request_ctx
	mov	x21, x0
	mov	x0, x22
	bl	_crypto_ablkcipher_ctx
	mov	x8, x0
	ldr	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IS_ALIGNED
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _FLAGS_AES_MODE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAGS_AES_MODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x20
Lloh6:
	adrp	x9, _FLAGS_AES_CTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLAGS_AES_CTR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	str	x20, [x21]
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_s5p_aes_handle_req
LBB0_4:
	ldr	w0, [x22]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_FLAGS_AES_MODE_MASK,8,3        ; @FLAGS_AES_MODE_MASK
	.comm	_FLAGS_AES_CTR,8,3              ; @FLAGS_AES_CTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request size is not exact amount of AES blocks\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s5p_aes_crypt
.subsections_via_symbols
