	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_update          ## -- Begin function mbedtls_cipher_update
	.p2align	4, 0x90
_mbedtls_cipher_update:                 ## @mbedtls_cipher_update
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r8, %r13
	testq	%r8, %r8
	je	LBB0_3
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.4:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	$0, (%r13)
	movq	%rbx, %rdi
	callq	_mbedtls_cipher_get_block_size
	movq	%rax, %rcx
	movq	32(%rbx), %rax
	movq	(%rax), %rdx
	movq	_MBEDTLS_MODE_ECB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.5:
	cmpq	%r14, %rcx
	jne	LBB0_6
## %bb.7:
	movq	%r14, (%r13)
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rsi
	movq	24(%rbx), %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	cmpq	%r15, %r12
	je	LBB0_11
LBB0_16:
	movq	_MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	_MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_MBEDTLS_ERR_CIPHER_INVALID_CONTEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.12:
	movq	%rcx, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_15
LBB0_13:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_15:
	testq	%rdx, %rdx
	je	LBB0_16
LBB0_3:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_MODE_ECB,8,3           ## @MBEDTLS_MODE_ECB
	.comm	_MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED,4,2 ## @MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED
	.comm	_MBEDTLS_ERR_CIPHER_INVALID_CONTEXT,4,2 ## @MBEDTLS_ERR_CIPHER_INVALID_CONTEXT
	.comm	_MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_DECRYPT,8,3            ## @MBEDTLS_DECRYPT
	.comm	_MBEDTLS_ENCRYPT,8,3            ## @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_CBC,8,3           ## @MBEDTLS_MODE_CBC
	.comm	_MBEDTLS_MODE_CFB,8,3           ## @MBEDTLS_MODE_CFB
	.comm	_MBEDTLS_MODE_CTR,8,3           ## @MBEDTLS_MODE_CTR
	.comm	_MBEDTLS_MODE_GCM,8,3           ## @MBEDTLS_MODE_GCM
	.comm	_MBEDTLS_MODE_STREAM,8,3        ## @MBEDTLS_MODE_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_update          ; -- Begin function mbedtls_cipher_update
	.p2align	2
_mbedtls_cipher_update:                 ; @mbedtls_cipher_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x23, x4
	cbz	x4, LBB0_13
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_13
; %bb.3:
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	str	xzr, [x23]
	mov	x0, x21
	bl	_mbedtls_cipher_get_block_size
	ldr	x8, [x21, #32]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _MBEDTLS_MODE_ECB@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MBEDTLS_MODE_ECB@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	cmp	x0, x19
	b.ne	LBB0_9
; %bb.5:
	str	x19, [x23]
	ldr	x8, [x8, #8]
	ldr	x4, [x8]
	ldr	x0, [x21, #24]
	ldr	x1, [x21]
	mov	x2, x22
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x4
LBB0_6:
	cbz	x0, LBB0_10
; %bb.7:
	cmp	x22, x20
	b.eq	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_CIPHER_INVALID_CONTEXT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_INVALID_CONTEXT@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_13
; %bb.12:
	udiv	x8, x19, x0
	msub	x8, x8, x0, x19
	cbz	x8, LBB0_8
LBB0_13:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_MODE_ECB,8,3           ; @MBEDTLS_MODE_ECB
	.comm	_MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED,4,2 ; @MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED
	.comm	_MBEDTLS_ERR_CIPHER_INVALID_CONTEXT,4,2 ; @MBEDTLS_ERR_CIPHER_INVALID_CONTEXT
	.comm	_MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_DECRYPT,8,3            ; @MBEDTLS_DECRYPT
	.comm	_MBEDTLS_ENCRYPT,8,3            ; @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_CBC,8,3           ; @MBEDTLS_MODE_CBC
	.comm	_MBEDTLS_MODE_CFB,8,3           ; @MBEDTLS_MODE_CFB
	.comm	_MBEDTLS_MODE_CTR,8,3           ; @MBEDTLS_MODE_CTR
	.comm	_MBEDTLS_MODE_GCM,8,3           ; @MBEDTLS_MODE_GCM
	.comm	_MBEDTLS_MODE_STREAM,8,3        ; @MBEDTLS_MODE_STREAM
.subsections_via_symbols
