	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_write_tag       ## -- Begin function mbedtls_cipher_write_tag
	.p2align	4, 0x90
_mbedtls_cipher_write_tag:              ## @mbedtls_cipher_write_tag
	.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_6
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	_MBEDTLS_ENCRYPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_6
## %bb.4:
	movq	_MBEDTLS_MODE_GCM@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%eax, %eax
	cmpq	(%rcx), %r8
	jne	LBB0_7
## %bb.5:
	movq	8(%rdi), %rdi
	popq	%rbp
	jmp	_mbedtls_gcm_finish             ## TAILCALL
LBB0_6:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_ENCRYPT,8,3            ## @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_GCM,8,3           ## @MBEDTLS_MODE_GCM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_write_tag       ; -- Begin function mbedtls_cipher_write_tag
	.p2align	2
_mbedtls_cipher_write_tag:              ; @mbedtls_cipher_write_tag
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x1, LBB0_6
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x9, _MBEDTLS_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_ENCRYPT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x0]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _MBEDTLS_MODE_GCM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_MODE_GCM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x0, #8]
	b	_mbedtls_gcm_finish
LBB0_6:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_ENCRYPT,8,3            ; @MBEDTLS_ENCRYPT
	.comm	_MBEDTLS_MODE_GCM,8,3           ; @MBEDTLS_MODE_GCM
.subsections_via_symbols
