	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_ccm_encrypt
_crypto_ccm_encrypt:                    ## @crypto_ccm_encrypt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_crypto_aead_reqtfm
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_ccm_reqctx
	movq	%rax, %r12
	movl	(%rbx), %r15d
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_crypto_ccm_check_iv
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_aead_request_flags
	movl	%eax, 16(%r12)
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_crypto_ccm_auth
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	leaq	32(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	(%r13), %rdx
	leaq	(,%rdx,4), %rax
	negq	%rax
	leaq	(%rax,%r13), %rdi
	addq	$60, %rdi
	incl	%edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	8(%r12), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	8(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_sg_set_buf
	movq	8(%r12), %rdi
	movl	20(%rbx), %edx
	movl	$2, %esi
	callq	_scatterwalk_sg_chain
	movl	20(%rbx), %eax
	cmpl	16(%rbx), %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	jne	LBB0_4
## %bb.3:
	addq	$8, %r15
	jmp	LBB0_5
LBB0_4:
	addq	$24, %r15
	movq	24(%r12), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	24(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_sg_set_buf
	movq	24(%r12), %rdi
	movl	16(%rbx), %edx
	movl	$2, %esi
	callq	_scatterwalk_sg_chain
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_ablkcipher_request_set_tfm
	movl	16(%r12), %esi
	movq	_crypto_ccm_encrypt_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_ablkcipher_request_set_callback
	movq	8(%r12), %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	leal	16(%r12), %ecx
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_ablkcipher_request_set_crypt
	movq	%r15, %rdi
	callq	_crypto_ablkcipher_encrypt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	16(%rbx), %ebx
	movq	%r14, %rdi
	callq	_crypto_aead_authsize
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_scatterwalk_map_and_copy
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_ccm_encrypt_done,4,2    ## @crypto_ccm_encrypt_done
	.no_dead_strip	_crypto_ccm_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_ccm_encrypt
_crypto_ccm_encrypt:                    ; @crypto_ccm_encrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_crypto_aead_reqtfm
	mov	x20, x0
	bl	_crypto_aead_ctx
	mov	x26, x0
	mov	x0, x19
	bl	_crypto_ccm_reqctx
	mov	x25, x0
	mov	x23, x0
	ldr	x22, [x23], #32
	ldr	w21, [x19]
	ldr	x24, [x19, #8]
	mov	x0, x24
	bl	_crypto_ccm_check_iv
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_aead_request_flags
	str	w0, [x25, #16]
	ldr	w1, [x19, #20]
	mov	x0, x19
	mov	x2, x21
	bl	_crypto_ccm_auth
	cbnz	w0, LBB0_6
; %bb.2:
	ldrsw	x8, [x24]
	sub	x9, x24, x8, lsl #2
	add	x0, x9, #60
	add	w2, w8, #1
	mov	w1, #0
	bl	_memset
	mov	x27, x25
	ldr	x0, [x27, #8]!
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x27]
	mov	x1, x22
	mov	w2, #16
	bl	_sg_set_buf
	ldr	x0, [x27]
	ldr	w2, [x19, #20]
	mov	w1, #2
	bl	_scatterwalk_sg_chain
	ldp	w9, w8, [x19, #16]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	mov	x27, x25
	ldr	x0, [x27, #24]!
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x27]
	mov	x1, x22
	mov	w2, #16
	bl	_sg_set_buf
	ldr	x0, [x27]
	ldr	w2, [x19, #16]
	mov	w1, #2
	bl	_scatterwalk_sg_chain
LBB0_4:
	ldr	x27, [x27]
	ldr	w1, [x26]
	mov	x0, x23
	bl	_ablkcipher_request_set_tfm
	ldr	w1, [x25, #16]
Lloh0:
	adrp	x8, _crypto_ccm_encrypt_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crypto_ccm_encrypt_done@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x3, x19
	bl	_ablkcipher_request_set_callback
	ldr	x1, [x25, #8]
	add	w3, w21, #16
	mov	x0, x23
	mov	x2, x27
	mov	x4, x24
	bl	_ablkcipher_request_set_crypt
	mov	x0, x23
	bl	_crypto_ablkcipher_encrypt
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w19, [x19, #16]
	mov	x0, x20
	bl	_crypto_aead_authsize
	mov	x3, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	w4, #1
	bl	_scatterwalk_map_and_copy
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_ccm_encrypt_done,4,2    ; @crypto_ccm_encrypt_done
	.no_dead_strip	_crypto_ccm_encrypt
.subsections_via_symbols
