	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_cipher_update_ad       ## -- Begin function mbedtls_cipher_update_ad
	.p2align	4, 0x90
_mbedtls_cipher_update_ad:              ## @mbedtls_cipher_update_ad
	.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_4
## %bb.1:
	movq	24(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r9
	movq	_MBEDTLS_MODE_GCM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_5
## %bb.3:
	movq	%rsi, %r8
	movq	16(%rdi), %rax
	movl	8(%rdi), %esi
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movq	%rax, %rdi
	popq	%rbp
	jmp	_mbedtls_gcm_starts             ## TAILCALL
LBB0_4:
	movq	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	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_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_update_ad       ; -- Begin function mbedtls_cipher_update_ad
	.p2align	2
_mbedtls_cipher_update_ad:              ; @mbedtls_cipher_update_ad
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _MBEDTLS_MODE_GCM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_MODE_GCM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x5, x2
	mov	x4, x1
	ldr	x8, [x0, #16]
	ldp	w2, w1, [x0, #4]
	ldr	w3, [x0]
	mov	x0, x8
	b	_mbedtls_gcm_starts
LBB0_4:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.comm	_MBEDTLS_MODE_GCM,8,3           ; @MBEDTLS_MODE_GCM
.subsections_via_symbols
