	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_finish          ## -- Begin function mbedtls_cipher_finish
	.p2align	4, 0x90
_mbedtls_cipher_finish:                 ## @mbedtls_cipher_finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	$0, (%rdx)
	movq	_MBEDTLS_MODE_CFB@GOTPCREL(%rip), %rdx
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, (%rdx)
	je	LBB0_13
## %bb.5:
	movq	_MBEDTLS_MODE_CTR@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_13
## %bb.6:
	movq	_MBEDTLS_MODE_GCM@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_13
## %bb.7:
	movq	_MBEDTLS_MODE_STREAM@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_13
## %bb.8:
	movq	_MBEDTLS_MODE_ECB@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.10:
	movq	_MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_11:
	movq	_MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.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
	.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_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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_finish          ; -- Begin function mbedtls_cipher_finish
	.p2align	2
_mbedtls_cipher_finish:                 ; @mbedtls_cipher_finish
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x2, LBB0_5
; %bb.2:
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_5
; %bb.3:
	str	xzr, [x2]
Lloh0:
	adrp	x9, _MBEDTLS_MODE_CFB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_MODE_CFB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MBEDTLS_MODE_CTR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MBEDTLS_MODE_CTR@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _MBEDTLS_MODE_GCM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MBEDTLS_MODE_GCM@GOTPAGEOFF]
Lloh8:
	adrp	x12, _MBEDTLS_MODE_STREAM@GOTPAGE
Lloh9:
	ldr	x12, [x12, _MBEDTLS_MODE_STREAM@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	ccmp	x11, x8, #4, ne
	ccmp	x12, x8, #4, ne
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	ret
LBB0_5:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh15:
	adrp	x9, _MBEDTLS_MODE_ECB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MBEDTLS_MODE_ECB@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	ret
LBB0_8:
Lloh21:
	adrp	x8, _MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.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
	.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_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
.subsections_via_symbols
