	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function derive_secret_key_and_iv
_derive_secret_key_and_iv:              ## @derive_secret_key_and_iv
	.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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	callq	_EVP_MD_size
	movl	%eax, %r13d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_ossl_assert
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	32(%rbp), %rdx
	movq	24(%rbp), %r8
	movq	16(%rbp), %rcx
	movslq	%r13d, %rax
	movq	%rdx, %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	$1
	pushq	%rax
	pushq	%r13
	pushq	%rax
	callq	_tls13_hkdf_expand
	addq	$32, %rsp
	testl	%eax, %eax
	movq	%rbx, %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.3:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_key_length
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_CCM_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	_EVP_CCM_TLS_IV_LEN@GOTPCREL(%rip), %rcx
	movq	_SSL_AES128CCM8@GOTPCREL(%rip), %rdx
	movq	_SSL_AES256CCM8@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%esi, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_EVP_CCM_TLS_TAG_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DERIVE_SECRET_KEY_AND_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_19
LBB0_10:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_iv_length
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_EVP_CCM8_TLS_TAG_LEN@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
LBB0_11:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_tls13_derive_key
	testl	%eax, %eax
	je	LBB0_20
## %bb.12:
	movq	40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_tls13_derive_iv
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	48(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	callq	_EVP_CipherInit_ex
	testq	%rax, %rax
	jle	LBB0_18
## %bb.14:
	movq	_EVP_CTRL_AEAD_SET_IVLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	_EVP_CTRL_AEAD_SET_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_EVP_CIPHER_CTX_ctrl
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	$-1, %r9d
	callq	_EVP_CipherInit_ex
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jg	LBB0_21
LBB0_18:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_DERIVE_SECRET_KEY_AND_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
LBB0_19:
	callq	_SSLfatal
LBB0_20:
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_OPENSSL_cleanse
	xorl	%eax, %eax
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_KEY_LENGTH,4,2         ## @EVP_MAX_KEY_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DERIVE_SECRET_KEY_AND_IV,4,2 ## @SSL_F_DERIVE_SECRET_KEY_AND_IV
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_EVP_CIPH_CCM_MODE,8,3          ## @EVP_CIPH_CCM_MODE
	.comm	_EVP_CCM_TLS_IV_LEN,8,3         ## @EVP_CCM_TLS_IV_LEN
	.comm	_SSL_AES128CCM8,4,2             ## @SSL_AES128CCM8
	.comm	_SSL_AES256CCM8,4,2             ## @SSL_AES256CCM8
	.comm	_EVP_CCM8_TLS_TAG_LEN,8,3       ## @EVP_CCM8_TLS_TAG_LEN
	.comm	_EVP_CCM_TLS_TAG_LEN,8,3        ## @EVP_CCM_TLS_TAG_LEN
	.comm	_EVP_CTRL_AEAD_SET_IVLEN,4,2    ## @EVP_CTRL_AEAD_SET_IVLEN
	.comm	_EVP_CTRL_AEAD_SET_TAG,4,2      ## @EVP_CTRL_AEAD_SET_TAG
	.no_dead_strip	_derive_secret_key_and_iv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function derive_secret_key_and_iv
_derive_secret_key_and_iv:              ; @derive_secret_key_and_iv
	.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
	sub	sp, sp, #32
	mov	x26, x7
	mov	x28, x6
	mov	x27, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _EVP_MAX_KEY_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_KEY_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	stur	x12, [x29, #-96]                ; 8-byte Folded Spill
	add	x9, x12, #15
	and	x9, x9, #0x1fffffff0
	sub	x8, x8, x9
	mov	x20, x8
	mov	sp, x8
	mov	x0, x2
	bl	_EVP_MD_size
	mov	x23, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_ossl_assert
	cbz	w0, LBB0_15
; %bb.1:
	stur	w25, [x29, #-100]               ; 4-byte Folded Spill
	ldr	x25, [x29, #16]
	sxtw	x6, w23
	sub	sp, sp, #16
	mov	w8, #1
	str	w8, [sp, #8]
	str	x6, [sp]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x3, x28
	mov	x4, x26
	mov	x5, x27
	mov	x7, x25
	bl	_tls13_hkdf_expand
	add	sp, sp, #16
	cbz	w0, LBB0_16
; %bb.2:
	mov	x0, x19
	bl	_EVP_CIPHER_key_length
	mov	x28, x0
	mov	x0, x19
	bl	_EVP_CIPHER_mode
Lloh8:
	adrp	x8, _EVP_CIPH_CCM_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_CIPH_CCM_MODE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _EVP_CCM_TLS_IV_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_CCM_TLS_IV_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x26, [x8]
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
LBB0_5:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SSL_AES128CCM8@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSL_AES128CCM8@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _SSL_AES256CCM8@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SSL_AES256CCM8@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _EVP_CCM_TLS_TAG_LEN@GOTPAGE
Lloh21:
	ldr	x11, [x11, _EVP_CCM_TLS_TAG_LEN@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh22:
	adrp	x10, _EVP_CCM8_TLS_TAG_LEN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _EVP_CCM8_TLS_TAG_LEN@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	x27, [x8]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_EVP_CIPHER_iv_length
	mov	x26, x0
	mov	x27, #0
LBB0_7:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	x3, x20
	mov	x4, x28
	bl	_tls13_derive_key
	cbz	w0, LBB0_16
; %bb.8:
	ldr	x3, [x29, #24]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	x4, x26
	bl	_tls13_derive_iv
	cbz	w0, LBB0_16
; %bb.9:
	ldr	x24, [x29, #32]
	mov	x0, x24
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	ldur	w5, [x29, #-100]                ; 4-byte Folded Reload
	bl	_EVP_CipherInit_ex
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.10:
Lloh24:
	adrp	x8, _EVP_CTRL_AEAD_SET_IVLEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EVP_CTRL_AEAD_SET_IVLEN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x26
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cbz	w0, LBB0_15
; %bb.11:
	cbz	x27, LBB0_13
; %bb.12:
Lloh27:
	adrp	x8, _EVP_CTRL_AEAD_SET_TAG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EVP_CTRL_AEAD_SET_TAG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x27
	mov	x3, #0
	bl	_EVP_CIPHER_CTX_ctrl
	cbz	w0, LBB0_15
LBB0_13:
	mov	x0, x24
	mov	x1, #0
	mov	x2, #0
	mov	x3, x20
	mov	x4, #0
	mov	w5, #-1
	bl	_EVP_CipherInit_ex
	cmp	x0, #0
	b.le	LBB0_15
; %bb.14:
	mov	w0, #1
	b	LBB0_17
LBB0_15:
Lloh30:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _SSL_F_DERIVE_SECRET_KEY_AND_IV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_F_DERIVE_SECRET_KEY_AND_IV@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
LBB0_16:
	mov	x0, x20
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_OPENSSL_cleanse
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_KEY_LENGTH,4,2         ; @EVP_MAX_KEY_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_DERIVE_SECRET_KEY_AND_IV,4,2 ; @SSL_F_DERIVE_SECRET_KEY_AND_IV
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_EVP_CIPH_CCM_MODE,8,3          ; @EVP_CIPH_CCM_MODE
	.comm	_EVP_CCM_TLS_IV_LEN,8,3         ; @EVP_CCM_TLS_IV_LEN
	.comm	_SSL_AES128CCM8,4,2             ; @SSL_AES128CCM8
	.comm	_SSL_AES256CCM8,4,2             ; @SSL_AES256CCM8
	.comm	_EVP_CCM8_TLS_TAG_LEN,8,3       ; @EVP_CCM8_TLS_TAG_LEN
	.comm	_EVP_CCM_TLS_TAG_LEN,8,3        ; @EVP_CCM_TLS_TAG_LEN
	.comm	_EVP_CTRL_AEAD_SET_IVLEN,4,2    ; @EVP_CTRL_AEAD_SET_IVLEN
	.comm	_EVP_CTRL_AEAD_SET_TAG,4,2      ; @EVP_CTRL_AEAD_SET_TAG
	.no_dead_strip	_derive_secret_key_and_iv
.subsections_via_symbols
