	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_ccm128_setiv            ## -- Begin function CRYPTO_ccm128_setiv
	.p2align	4, 0x90
_CRYPTO_ccm128_setiv:                   ## @CRYPTO_ccm128_setiv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r9
	movq	%rdi, %r8
	movq	(%rdi), %rdi
	movl	(%rdi), %r10d
	movl	%r10d, %r11d
	andl	$7, %r11d
	movl	$14, %edx
	subq	%r11, %rdx
	movl	$-1, %eax
	cmpq	%r9, %rdx
	ja	LBB0_5
## %bb.1:
	cmpl	$3, %r11d
	jb	LBB0_3
## %bb.2:
	movq	%rcx, %rax
	shrq	$56, %rax
	movl	%eax, 32(%rdi)
	movq	%rcx, %rax
	shrq	$48, %rax
	movl	%eax, 36(%rdi)
	movq	%rcx, %rax
	shrq	$40, %rax
	movl	%eax, 40(%rdi)
	movq	%rcx, %rax
	shrq	$32, %rax
	movl	%eax, 44(%rdi)
	jmp	LBB0_4
LBB0_3:
	movq	8(%r8), %rax
	movq	$0, 8(%rax)
LBB0_4:
	movq	%rcx, %rax
	shrq	$24, %rax
	movl	%eax, 48(%rdi)
	movq	%rcx, %rax
	shrq	$16, %rax
	movl	%eax, 52(%rdi)
	movq	%rcx, %rax
	shrq	$8, %rax
	movl	%eax, 56(%rdi)
	movl	%ecx, 60(%rdi)
	andl	$-65, %r10d
	movl	%r10d, (%rdi)
	addq	$4, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function CRYPTO_ccm128_setiv
lCPI0_0:
	.quad	-56                             ; 0xffffffffffffffc8
	.quad	-48                             ; 0xffffffffffffffd0
lCPI0_1:
	.quad	-40                             ; 0xffffffffffffffd8
	.quad	-32                             ; 0xffffffffffffffe0
lCPI0_2:
	.quad	-24                             ; 0xffffffffffffffe8
	.quad	-16                             ; 0xfffffffffffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CRYPTO_ccm128_setiv
	.p2align	2
_CRYPTO_ccm128_setiv:                   ; @CRYPTO_ccm128_setiv
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x2
	ldr	x9, [x0]
	ldr	w10, [x9]
	and	x11, x10, #0x7
	mov	w12, #14
	sub	x2, x12, x11
	cmp	x2, x8
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	dup.2d	v0, x3
	cmp	w11, #3
	b.lo	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.2d	v1, v0, v1
	xtn.2s	v1, v1
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	q2, [x8, lCPI0_1@PAGEOFF]
	ushl.2d	v2, v0, v2
	xtn.2s	v2, v2
	stp	d1, d2, [x9, #32]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
	str	xzr, [x8, #8]
LBB0_5:
Lloh4:
	adrp	x8, lCPI0_2@PAGE
Lloh5:
	ldr	q1, [x8, lCPI0_2@PAGEOFF]
	ushl.2d	v0, v0, v1
	xtn.2s	v0, v0
	str	d0, [x9, #48]
	lsr	x8, x3, #8
	stp	w8, w3, [x9, #56]
	and	w8, w10, #0xffffffbf
	str	w8, [x9]
	add	x0, x9, #4
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
