	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcm_tls_cipher
_gcm_tls_cipher:                        ## @gcm_tls_cipher
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	movl	$0, %edx
	cmpq	%rcx, %rsi
	jne	LBB0_16
## %bb.1:
	cmpl	$0, 64(%rbx)
	je	LBB0_16
## %bb.2:
	movq	%r8, %r15
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_EVP_GCM_TLS_TAG_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r13, %rax
	cmpq	%r8, %rax
	ja	LBB0_3
## %bb.4:
	movq	%rsi, %r12
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.5:
	incq	(%rbx)
	jne	LBB0_9
## %bb.6:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_TOO_MANY_RECORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	jmp	LBB0_3
LBB0_7:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.8:
	movq	16(%rbx), %rdi
	addq	24(%rbx), %rdi
	subq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	56(%rbx), %rax
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_3
LBB0_9:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.10:
	movq	56(%rbx), %rax
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.11:
	movq	24(%rbx), %rsi
	cmpq	%rsi, %r13
	cmovaeq	%rsi, %r13
	addq	16(%rbx), %rsi
	subq	%r13, %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$-8, %rdi
	callq	_ctr64_inc
LBB0_12:
	movq	_IV_STATE_COPIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %r12
	movq	_EVP_GCM_TLS_TAG_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %r10
	addq	%r10, %rax
	subq	%rax, %r15
	leaq	(%r12,%r15), %rax
	movq	56(%rbx), %r11
	movl	32(%rbx), %edx
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%r12, %r9
	pushq	%r10
	pushq	%rax
	callq	*(%r11)
	addq	$16, %rsp
	movq	40(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	movq	_EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r15, %rdx
	addq	(%r13), %rdx
	testq	%rcx, %rcx
	cmoveq	%r15, %rdx
	movl	$1, %eax
	jmp	LBB0_16
LBB0_13:
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_OPENSSL_cleanse
LBB0_3:
	xorl	%eax, %eax
	xorl	%edx, %edx
LBB0_16:
	movq	_IV_STATE_FINISHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_UNINITIALISED_SIZET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	%rdx, (%r14)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_EVP_R_TOO_MANY_RECORDS,4,2     ## @EVP_R_TOO_MANY_RECORDS
	.comm	_IV_STATE_COPIED,4,2            ## @IV_STATE_COPIED
	.comm	_IV_STATE_FINISHED,4,2          ## @IV_STATE_FINISHED
	.comm	_UNINITIALISED_SIZET,4,2        ## @UNINITIALISED_SIZET
	.no_dead_strip	_gcm_tls_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcm_tls_cipher
_gcm_tls_cipher:                        ; @gcm_tls_cipher
	.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, x2
	mov	x20, x0
	mov	x8, #0
	mov	w0, #0
	cmp	x1, x3
	b.ne	LBB0_8
; %bb.1:
	ldr	w9, [x20, #64]
	cbz	w9, LBB0_8
; %bb.2:
	mov	x21, x4
Lloh0:
	adrp	x24, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EVP_GCM_TLS_EXPLICIT_IV_LEN@GOTPAGEOFF]
	ldr	x23, [x24]
Lloh2:
	adrp	x25, _EVP_GCM_TLS_TAG_LEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EVP_GCM_TLS_TAG_LEN@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x8, x8, x23
	cmp	x8, x4
	b.hi	LBB0_6
; %bb.3:
	mov	x22, x1
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	adds	x8, x8, #1
	str	x8, [x20]
	b.lo	LBB0_11
; %bb.5:
Lloh4:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _EVP_R_TOO_MANY_RECORDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVP_R_TOO_MANY_RECORDS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ERR_raise
LBB0_6:
	mov	w0, #0
LBB0_7:
	mov	x8, #0
LBB0_8:
Lloh10:
	adrp	x9, _IV_STATE_FINISHED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IV_STATE_FINISHED@GOTPAGEOFF]
Lloh12:
	adrp	x10, _UNINITIALISED_SIZET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UNINITIALISED_SIZET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #32]
	str	x8, [x19]
	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_9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.10:
	ldp	x8, x9, [x20, #16]
	add	x8, x8, x9
	sub	x0, x8, x23
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20, #56]
	ldr	x8, [x8, #8]
	ldp	x1, x2, [x20, #16]
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_14
	b	LBB0_7
LBB0_11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	x8, [x20, #56]
	ldr	x8, [x8, #8]
	ldp	x1, x2, [x20, #16]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_7
; %bb.13:
	ldp	x9, x8, [x20, #16]
	cmp	x23, x8
	csel	x2, x23, x8, lo
	add	x8, x9, x8
	sub	x1, x8, x2
	mov	x0, x22
	bl	_memcpy
	ldp	x8, x9, [x20, #16]
	add	x8, x8, x9
	sub	x0, x8, #8
	bl	_ctr64_inc
LBB0_14:
Lloh16:
	adrp	x8, _IV_STATE_COPIED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IV_STATE_COPIED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	ldr	x8, [x24]
	ldr	x7, [x25]
	add	x9, x8, x7
	sub	x21, x21, x9
	add	x22, x22, x8
	add	x6, x22, x21
	ldr	x8, [x20, #56]
	ldr	x8, [x8]
	ldr	w1, [x20, #48]
	ldr	w2, [x20, #32]
	mov	x0, x20
	mov	x3, x22
	mov	x4, x21
	mov	x5, x22
	blr	x8
	ldr	x8, [x20, #40]
	cbz	w0, LBB0_17
; %bb.15:
	ldr	x9, [x24]
	ldr	x10, [x25]
	add	x9, x9, x21
	add	x9, x9, x10
	cmp	x8, #0
	csel	x8, x21, x9, eq
	mov	w0, #1
	b	LBB0_8
LBB0_16:
	mov	w0, #0
	b	LBB0_8
LBB0_17:
	cbnz	x8, LBB0_6
; %bb.18:
	mov	x0, x22
	mov	x1, x21
	bl	_OPENSSL_cleanse
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.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	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_EVP_R_TOO_MANY_RECORDS,4,2     ; @EVP_R_TOO_MANY_RECORDS
	.comm	_IV_STATE_COPIED,4,2            ; @IV_STATE_COPIED
	.comm	_IV_STATE_FINISHED,4,2          ; @IV_STATE_FINISHED
	.comm	_UNINITIALISED_SIZET,4,2        ; @UNINITIALISED_SIZET
	.no_dead_strip	_gcm_tls_cipher
.subsections_via_symbols
