	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_ccm_setkey
_crypto_ccm_setkey:                     ## @crypto_ccm_setkey
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_crypto_aead_ctx
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_crypto_ablkcipher_clear_flags
	movq	%r13, %rdi
	callq	_crypto_aead_get_flags
	andl	(%r15), %eax
	movq	%r12, %r15
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_crypto_ablkcipher_set_flags
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_crypto_ablkcipher_setkey
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_crypto_ablkcipher_get_flags
	movq	_CRYPTO_TFM_RES_MASK@GOTPCREL(%rip), %r14
	andl	(%r14), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_crypto_aead_set_flags
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movl	%ebx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_CRYPTO_TFM_REQ_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_crypto_cipher_clear_flags
	movq	%r13, %rdi
	callq	_crypto_aead_get_flags
	andl	(%r12), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_crypto_cipher_set_flags
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_crypto_cipher_setkey
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_crypto_cipher_get_flags
	andl	(%r14), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_crypto_aead_set_flags
	movl	%r15d, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ## @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ## @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_crypto_ccm_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_ccm_setkey
_crypto_ccm_setkey:                     ; @crypto_ccm_setkey
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_crypto_aead_ctx
	ldp	x22, x24, [x0]
Lloh0:
	adrp	x25, _CRYPTO_TFM_REQ_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CRYPTO_TFM_REQ_MASK@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x24
	bl	_crypto_ablkcipher_clear_flags
	mov	x0, x19
	bl	_crypto_aead_get_flags
	ldr	w8, [x25]
	and	w1, w8, w0
	mov	x0, x24
	bl	_crypto_ablkcipher_set_flags
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_crypto_ablkcipher_setkey
	mov	x23, x0
	mov	x0, x24
	bl	_crypto_ablkcipher_get_flags
Lloh2:
	adrp	x24, _CRYPTO_TFM_RES_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CRYPTO_TFM_RES_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w1, w8, w0
	mov	x0, x19
	bl	_crypto_aead_set_flags
	cbz	w23, LBB0_2
; %bb.1:
	mov	x0, x23
	b	LBB0_3
LBB0_2:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_crypto_cipher_clear_flags
	mov	x0, x19
	bl	_crypto_aead_get_flags
	ldr	w8, [x25]
	and	w1, w8, w0
	mov	x0, x22
	bl	_crypto_cipher_set_flags
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_crypto_cipher_setkey
	mov	x20, x0
	mov	x0, x22
	bl	_crypto_cipher_get_flags
	ldr	w8, [x24]
	and	w1, w8, w0
	mov	x0, x19
	bl	_crypto_aead_set_flags
	mov	x0, x20
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_REQ_MASK,4,2        ; @CRYPTO_TFM_REQ_MASK
	.comm	_CRYPTO_TFM_RES_MASK,4,2        ; @CRYPTO_TFM_RES_MASK
	.no_dead_strip	_crypto_ccm_setkey
.subsections_via_symbols
