	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_cipher_get_overhead        ## -- Begin function ssl_cipher_get_overhead
	.p2align	4, 0x90
_ssl_cipher_get_overhead:               ## @ssl_cipher_get_overhead
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	_SSL_AESGCM@GOTPCREL(%rip), %rsi
	movq	_SSL_ARIAGCM@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_2
## %bb.1:
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movq	_EVP_GCM_TLS_TAG_LEN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	addq	(%rax), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_SSL_AES128CCM@GOTPCREL(%rip), %rsi
	movq	_SSL_AES256CCM@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_6
## %bb.3:
	movq	_EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	$16, %rbx
	jmp	LBB0_4
LBB0_6:
	movq	_SSL_AES128CCM8@GOTPCREL(%rip), %rsi
	movq	_SSL_AES256CCM8@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_8
## %bb.7:
	movq	_EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	$8, %rbx
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
LBB0_18:
	movq	%r14, (%r13)
	movq	%rax, (%rdx)
	movq	%r12, (%rcx)
	movq	%rbx, (%r8)
	movl	$1, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SSL_CHACHA20POLY1305@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	testl	%eax, (%rsi)
	je	LBB0_10
## %bb.9:
	movl	$16, %ebx
	jmp	LBB0_5
LBB0_10:
	movq	_SSL_AEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_19
## %bb.11:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r15, %rdi
	callq	_SSL_CIPHER_get_digest_nid
	movl	%eax, %edi
	callq	_EVP_get_digestbynid
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	%rax, %rdi
	callq	_EVP_MD_size
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_SSL_eNULL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_14:
	movq	%r15, %rdi
	callq	_SSL_CIPHER_get_cipher_nid
	movl	%eax, %edi
	callq	_EVP_get_cipherbynid
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EVP_CIPHER_mode
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.16:
	movq	%r15, %rdi
	callq	_EVP_CIPHER_iv_length
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EVP_CIPHER_block_size
	movq	%rax, %r12
	movl	$1, %eax
LBB0_17:
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AESGCM,4,2                 ## @SSL_AESGCM
	.comm	_SSL_ARIAGCM,4,2                ## @SSL_ARIAGCM
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,8,3 ## @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.comm	_EVP_GCM_TLS_TAG_LEN,8,3        ## @EVP_GCM_TLS_TAG_LEN
	.comm	_SSL_AES128CCM,4,2              ## @SSL_AES128CCM
	.comm	_SSL_AES256CCM,4,2              ## @SSL_AES256CCM
	.comm	_EVP_CCM_TLS_EXPLICIT_IV_LEN,4,2 ## @EVP_CCM_TLS_EXPLICIT_IV_LEN
	.comm	_SSL_AES128CCM8,4,2             ## @SSL_AES128CCM8
	.comm	_SSL_AES256CCM8,4,2             ## @SSL_AES256CCM8
	.comm	_SSL_CHACHA20POLY1305,4,2       ## @SSL_CHACHA20POLY1305
	.comm	_SSL_AEAD,4,2                   ## @SSL_AEAD
	.comm	_SSL_eNULL,4,2                  ## @SSL_eNULL
	.comm	_EVP_CIPH_CBC_MODE,8,3          ## @EVP_CIPH_CBC_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_cipher_get_overhead        ; -- Begin function ssl_cipher_get_overhead
	.p2align	2
_ssl_cipher_get_overhead:               ; @ssl_cipher_get_overhead
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SSL_AESGCM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_AESGCM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SSL_ARIAGCM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SSL_ARIAGCM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, #0
	mov	x8, #0
	mov	x23, #0
Lloh6:
	adrp	x9, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _EVP_GCM_TLS_TAG_LEN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _EVP_GCM_TLS_TAG_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x24, x10, x9
	b	LBB0_8
LBB0_2:
Lloh12:
	adrp	x9, _SSL_AES128CCM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SSL_AES128CCM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SSL_AES256CCM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SSL_AES256CCM@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, #0
	mov	x8, #0
	mov	x23, #0
Lloh18:
	adrp	x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh20:
	ldrsw	x9, [x9]
	add	x24, x9, #16
	b	LBB0_8
LBB0_4:
Lloh21:
	adrp	x9, _SSL_AES128CCM8@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SSL_AES128CCM8@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _SSL_AES256CCM8@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SSL_AES256CCM8@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, #0
	mov	x8, #0
	mov	x23, #0
Lloh27:
	adrp	x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EVP_CCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
Lloh29:
	ldrsw	x9, [x9]
	add	x24, x9, #8
	b	LBB0_8
LBB0_6:
Lloh30:
	adrp	x9, _SSL_CHACHA20POLY1305@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SSL_CHACHA20POLY1305@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	mov	x0, #0
	mov	x8, #0
	mov	x23, #0
	mov	w24, #16
LBB0_8:
	str	x23, [x22]
	str	x8, [x21]
	str	x0, [x20]
	mov	w0, #1
	str	x24, [x19]
LBB0_9:
	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
LBB0_10:
	mov	x24, x0
	ldr	w8, [x0, #4]
Lloh33:
	adrp	x9, _SSL_AEAD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SSL_AEAD@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_11:
	mov	w0, #0
	b	LBB0_9
LBB0_12:
	mov	x0, x24
	bl	_SSL_CIPHER_get_digest_nid
	bl	_EVP_get_digestbynid
	cbz	x0, LBB0_9
; %bb.13:
	bl	_EVP_MD_size
	mov	x23, x0
	ldr	w8, [x24]
Lloh36:
	adrp	x9, _SSL_eNULL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SSL_eNULL@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
	mov	x24, #0
	mov	x0, #0
	mov	x8, #0
	b	LBB0_8
LBB0_15:
	mov	x0, x24
	bl	_SSL_CIPHER_get_cipher_nid
	bl	_EVP_get_cipherbynid
	cbz	x0, LBB0_9
; %bb.16:
	mov	x25, x0
	bl	_EVP_CIPHER_mode
Lloh39:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.17:
	mov	x0, x25
	bl	_EVP_CIPHER_iv_length
	mov	x24, x0
	mov	x0, x25
	bl	_EVP_CIPHER_block_size
	mov	w8, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AESGCM,4,2                 ; @SSL_AESGCM
	.comm	_SSL_ARIAGCM,4,2                ; @SSL_ARIAGCM
	.comm	_EVP_GCM_TLS_EXPLICIT_IV_LEN,8,3 ; @EVP_GCM_TLS_EXPLICIT_IV_LEN
	.comm	_EVP_GCM_TLS_TAG_LEN,8,3        ; @EVP_GCM_TLS_TAG_LEN
	.comm	_SSL_AES128CCM,4,2              ; @SSL_AES128CCM
	.comm	_SSL_AES256CCM,4,2              ; @SSL_AES256CCM
	.comm	_EVP_CCM_TLS_EXPLICIT_IV_LEN,4,2 ; @EVP_CCM_TLS_EXPLICIT_IV_LEN
	.comm	_SSL_AES128CCM8,4,2             ; @SSL_AES128CCM8
	.comm	_SSL_AES256CCM8,4,2             ; @SSL_AES256CCM8
	.comm	_SSL_CHACHA20POLY1305,4,2       ; @SSL_CHACHA20POLY1305
	.comm	_SSL_AEAD,4,2                   ; @SSL_AEAD
	.comm	_SSL_eNULL,4,2                  ; @SSL_eNULL
	.comm	_EVP_CIPH_CBC_MODE,8,3          ; @EVP_CIPH_CBC_MODE
.subsections_via_symbols
