	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssl_ccm_encrypt
_openssl_ccm_encrypt:                   ## @openssl_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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %r12
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movq	40(%rbp), %r12
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	cmpl	$1, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movl	(%r13), %r12d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movq	40(%rbp), %r12
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_4:
	movq	_EVP_CTRL_CCM_SET_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	cmpl	$1, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_6:
	movq	_EVP_CTRL_CCM_SET_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AES_CBC_MAC_HASH_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_EVP_EncryptInit_ex
	cmpl	$1, %eax
	je	LBB0_10
## %bb.9:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_10:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_EVP_EncryptUpdate
	cmpl	$1, %eax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_12:
	movq	32(%rbp), %r14
	movq	24(%rbp), %r12
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	movq	16(%rbp), %r8
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_EVP_EncryptUpdate
	cmpl	$1, %eax
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	40(%rbp), %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_15:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movq	40(%rbp), %r12
	movq	%r12, %r8
	callq	_EVP_EncryptUpdate
	cmpl	$1, %eax
	je	LBB0_17
## %bb.16:
	movl	(%r13), %r12d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movq	40(%rbp), %r12
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_17:
	movslq	-44(%rbp), %rbx
	leaq	(%r14,%rbx,4), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_EVP_EncryptFinal_ex
	cmpl	$1, %eax
	je	LBB0_19
## %bb.18:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_19:
	movq	48(%rbp), %r14
	movslq	-44(%rbp), %r8
	addq	%rbx, %r8
	cmpq	%r12, %r8
	je	LBB0_21
## %bb.20:
	movl	(%r13), %edx
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_errx
LBB0_21:
	movq	_EVP_CTRL_CCM_GET_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AES_CBC_MAC_HASH_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_EVP_CIPHER_CTX_ctrl
	cmpl	$1, %eax
	je	LBB0_23
## %bb.22:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_23:
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSSL %s (%zu) ctx new failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"OpenSSL %s (%zu) ctx init failed: %s"

	.comm	_EVP_CTRL_CCM_SET_IVLEN,4,2     ## @EVP_CTRL_CCM_SET_IVLEN
L_.str.2:                               ## @.str.2
	.asciz	"OpenSSL %s (%zu) setting iv length failed: %s"

	.comm	_EVP_CTRL_CCM_SET_TAG,4,2       ## @EVP_CTRL_CCM_SET_TAG
	.comm	_AES_CBC_MAC_HASH_LEN,8,3       ## @AES_CBC_MAC_HASH_LEN
L_.str.3:                               ## @.str.3
	.asciz	"OpenSSL %s (%zu) setting tag length failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"OpenSSL %s (%zu) unable to set data length: %s"

L_.str.5:                               ## @.str.5
	.asciz	"OpenSSL %s (%zu) aad update failed: %s"

L_.str.6:                               ## @.str.6
	.asciz	"OpenSSL %s (%zu) encrypt update failed: %s"

L_.str.7:                               ## @.str.7
	.asciz	"OpenSSL %s (%zu) encrypt final failed: %s"

L_.str.8:                               ## @.str.8
	.asciz	"OpenSSL %s (%zu) encrypt size mismatch: %d"

	.comm	_EVP_CTRL_CCM_GET_TAG,4,2       ## @EVP_CTRL_CCM_GET_TAG
L_.str.9:                               ## @.str.9
	.asciz	"OpenSSL %s (%zu) get tag failed: %s"

	.no_dead_strip	_openssl_ccm_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openssl_ccm_encrypt
_openssl_ccm_encrypt:                   ; @openssl_ccm_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x7
	str	x6, [sp]                        ; 8-byte Folded Spill
	mov	x24, x5
	mov	x27, x4
	mov	x25, x3
	mov	x26, x2
	mov	x28, x1
	mov	x21, x0
	ldr	x20, [x29, #24]
	bl	_EVP_CIPHER_CTX_new
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_2:
	mov	x0, x19
	mov	x1, x28
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_EncryptInit_ex
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_4:
Lloh4:
	adrp	x8, _EVP_CTRL_CCM_SET_IVLEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVP_CTRL_CCM_SET_IVLEN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_6:
Lloh9:
	adrp	x8, _EVP_CTRL_CCM_SET_TAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_CTRL_CCM_SET_TAG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x27, _AES_CBC_MAC_HASH_LEN@GOTPAGE
Lloh13:
	ldr	x27, [x27, _AES_CBC_MAC_HASH_LEN@GOTPAGEOFF]
	ldr	x2, [x27]
	mov	x0, x19
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_8:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, x26
	mov	x4, x25
	bl	_EVP_EncryptInit_ex
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_10:
	ldr	x25, [x29, #16]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	mov	x4, x20
	bl	_EVP_EncryptUpdate
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.11:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_12:
	cbz	x24, LBB0_15
; %bb.13:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, #0
	mov	x3, x24
	ldr	x4, [sp]                        ; 8-byte Folded Reload
	bl	_EVP_EncryptUpdate
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.14:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_15:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x25
	mov	x3, x22
	mov	x4, x20
	bl	_EVP_EncryptUpdate
	cmp	w0, #1
	b.eq	LBB0_17
; %bb.16:
	ldr	w22, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	mov	x3, x20
	bl	_errx
LBB0_17:
	ldr	x22, [x29, #32]
	ldrsw	x24, [sp, #12]
	add	x1, x25, x24, lsl #2
	add	x2, sp, #12
	mov	x0, x19
	bl	_EVP_EncryptFinal_ex
	cmp	w0, #1
	b.eq	LBB0_19
; %bb.18:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x20
	bl	_errx
LBB0_19:
	ldrsw	x8, [sp, #12]
	add	x4, x8, x24
	cmp	x4, x20
	b.eq	LBB0_21
; %bb.20:
	ldr	w2, [x21]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_errx
LBB0_21:
Lloh28:
	adrp	x8, _EVP_CTRL_CCM_GET_TAG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EVP_CTRL_CCM_GET_TAG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x2, [x27]
	mov	x0, x19
	mov	x3, x22
	bl	_EVP_CIPHER_CTX_ctrl
	cmp	w0, #1
	b.eq	LBB0_23
; %bb.22:
	ldr	w21, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	mov	x3, x20
	bl	_errx
LBB0_23:
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSSL %s (%zu) ctx new failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"OpenSSL %s (%zu) ctx init failed: %s"

	.comm	_EVP_CTRL_CCM_SET_IVLEN,4,2     ; @EVP_CTRL_CCM_SET_IVLEN
l_.str.2:                               ; @.str.2
	.asciz	"OpenSSL %s (%zu) setting iv length failed: %s"

	.comm	_EVP_CTRL_CCM_SET_TAG,4,2       ; @EVP_CTRL_CCM_SET_TAG
	.comm	_AES_CBC_MAC_HASH_LEN,8,3       ; @AES_CBC_MAC_HASH_LEN
l_.str.3:                               ; @.str.3
	.asciz	"OpenSSL %s (%zu) setting tag length failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"OpenSSL %s (%zu) unable to set data length: %s"

l_.str.5:                               ; @.str.5
	.asciz	"OpenSSL %s (%zu) aad update failed: %s"

l_.str.6:                               ; @.str.6
	.asciz	"OpenSSL %s (%zu) encrypt update failed: %s"

l_.str.7:                               ; @.str.7
	.asciz	"OpenSSL %s (%zu) encrypt final failed: %s"

l_.str.8:                               ; @.str.8
	.asciz	"OpenSSL %s (%zu) encrypt size mismatch: %d"

	.comm	_EVP_CTRL_CCM_GET_TAG,4,2       ; @EVP_CTRL_CCM_GET_TAG
l_.str.9:                               ; @.str.9
	.asciz	"OpenSSL %s (%zu) get tag failed: %s"

	.no_dead_strip	_openssl_ccm_encrypt
.subsections_via_symbols
