	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_ccm_decrypt
_crypto_ccm_decrypt:                    ## @crypto_ccm_decrypt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_crypto_aead_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_crypto_ccm_reqctx
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_crypto_aead_authsize
	movl	(%r15), %r13d
	subl	%eax, %r13d
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_crypto_ccm_check_iv
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	leaq	40(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_aead_request_flags
	movl	%eax, 24(%r12)
	movl	20(%r15), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
	movslq	(%rbx), %rdx
	leaq	(,%rdx,4), %rax
	negq	%rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax), %rdi
	addq	$60, %rdi
	incl	%edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	16(%r12), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	16(%r12), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_sg_set_buf
	movq	16(%r12), %rdi
	movl	20(%r15), %edx
	movl	$2, %esi
	callq	_scatterwalk_sg_chain
	movl	20(%r15), %eax
	cmpl	16(%r15), %eax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rbx
	addq	$16, %rbx
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rbx
	addq	$32, %rbx
	movq	32(%r12), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	32(%r12), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_sg_set_buf
	movq	32(%r12), %rdi
	movl	16(%r15), %edx
	movl	$2, %esi
	callq	_scatterwalk_sg_chain
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ablkcipher_request_set_tfm
	movl	24(%r12), %esi
	movq	_crypto_ccm_decrypt_done@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_ablkcipher_request_set_callback
	movq	16(%r12), %rsi
	leal	16(%r13), %ecx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_ablkcipher_request_set_crypt
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_decrypt
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.7:
	movl	16(%r15), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_crypto_ccm_auth
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_crypto_ccm_decrypt_done,4,2    ## @crypto_ccm_decrypt_done
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_crypto_ccm_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_ccm_decrypt
_crypto_ccm_decrypt:                    ; @crypto_ccm_decrypt
	.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	x24, x0
	mov	x0, x20
	bl	_crypto_aead_authsize
	ldr	w8, [x19]
	subs	w23, w8, w0
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x20, x0
	ldp	x21, x22, [x24]
	ldr	x25, [x19, #8]
	mov	x0, x25
	bl	_crypto_ccm_check_iv
	cbnz	w0, LBB0_8
; %bb.4:
	add	x27, x24, #40
	mov	x0, x19
	bl	_aead_request_flags
	str	w0, [x24, #24]
	ldr	w1, [x19, #20]
	mov	x0, x21
	mov	x2, x23
	mov	x3, x20
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
	ldrsw	x8, [x25]
	sub	x9, x25, x8, lsl #2
	add	x0, x9, #60
	add	w2, w8, #1
	mov	w1, #0
	bl	_memset
	mov	x28, x24
	ldr	x0, [x28, #16]!
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x28]
	mov	x1, x21
	mov	w2, #16
	bl	_sg_set_buf
	ldr	x0, [x28]
	ldr	w2, [x19, #20]
	mov	w1, #2
	bl	_scatterwalk_sg_chain
	ldp	w9, w8, [x19, #16]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
	mov	x28, x24
	ldr	x0, [x28, #32]!
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x28]
	mov	x1, x21
	mov	w2, #16
	bl	_sg_set_buf
	ldr	x0, [x28]
	ldr	w2, [x19, #16]
	mov	w1, #2
	bl	_scatterwalk_sg_chain
LBB0_6:
	ldr	x28, [x28]
	ldr	w1, [x26]
	mov	x0, x27
	bl	_ablkcipher_request_set_tfm
	ldr	w1, [x24, #24]
Lloh2:
	adrp	x8, _crypto_ccm_decrypt_done@GOTPAGE
Lloh3:
	ldr	x8, [x8, _crypto_ccm_decrypt_done@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x27
	mov	x3, x19
	bl	_ablkcipher_request_set_callback
	ldr	x1, [x24, #16]
	add	w3, w23, #16
	mov	x0, x27
	mov	x2, x28
	mov	x4, x25
	bl	_ablkcipher_request_set_crypt
	mov	x0, x27
	bl	_crypto_ablkcipher_decrypt
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	x2, x23
	bl	_crypto_ccm_auth
	cbz	w0, LBB0_9
LBB0_8:
	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
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.10:
Lloh5:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_crypto_ccm_decrypt_done,4,2    ; @crypto_ccm_decrypt_done
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_crypto_ccm_decrypt
.subsections_via_symbols
