	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_gcm_check_tag_trunc         ## -- Begin function br_gcm_check_tag_trunc
	.p2align	4, 0x90
_br_gcm_check_tag_trunc:                ## @br_gcm_check_tag_trunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_br_gcm_get_tag
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpq	$8, %r14
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_4:
	movq	%r14, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movq	%r8, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rbx,%rdx), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	pxor	-48(%rbp,%rdx), %xmm2
	movl	4(%rbx,%rdx), %edi
	movl	12(%rbx,%rdx), %ecx
	xorl	-44(%rbp,%rdx), %edi
	movd	%edi, %xmm3
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	por	%xmm0, %xmm2
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	por	%xmm1, %xmm3
	movq	-40(%rbp,%rdx), %xmm0           ## xmm0 = mem[0],zero
	movd	8(%rbx,%rdx), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	xorl	-36(%rbp,%rdx), %ecx
	pxor	%xmm0, %xmm1
	movd	%ecx, %xmm4
	pmovzxbd	%xmm1, %xmm0                    ## xmm0 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	por	%xmm2, %xmm0
	pmovzxbd	%xmm4, %xmm1                    ## xmm1 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	por	%xmm3, %xmm1
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movq	-48(%rbp,%rdx), %xmm2           ## xmm2 = mem[0],zero
	movd	(%rbx,%rdx), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	pxor	%xmm2, %xmm3
	movl	4(%rbx,%rdx), %ecx
	xorl	-44(%rbp,%rdx), %ecx
	movd	%ecx, %xmm2
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	por	%xmm3, %xmm0
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	por	%xmm2, %xmm1
LBB0_10:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpq	%r14, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	xorb	-48(%rbp,%rax), %cl
	movzbl	%cl, %ecx
	orl	%ecx, %edi
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_11
LBB0_12:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_EQ0
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function br_gcm_check_tag_trunc
lCPI0_0:
	.byte	0                               ; 0x0
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	1                               ; 0x1
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	2                               ; 0x2
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	3                               ; 0x3
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_1:
	.byte	4                               ; 0x4
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	5                               ; 0x5
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	6                               ; 0x6
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	7                               ; 0x7
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_2:
	.byte	8                               ; 0x8
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	9                               ; 0x9
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	10                              ; 0xa
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	11                              ; 0xb
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
lCPI0_3:
	.byte	12                              ; 0xc
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	13                              ; 0xd
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	14                              ; 0xe
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	15                              ; 0xf
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_br_gcm_check_tag_trunc
	.p2align	2
_br_gcm_check_tag_trunc:                ; @br_gcm_check_tag_trunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #8
	bl	_br_gcm_get_tag
	cbz	x20, LBB0_3
; %bb.1:
	cmp	x20, #8
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #0
	mov	x8, #0
	b	LBB0_13
LBB0_3:
	mov	w0, #0
	b	LBB0_15
LBB0_4:
	adrp	x9, lCPI0_0@PAGE
	adrp	x10, lCPI0_1@PAGE
	cmp	x20, #32
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #0
	mov	x8, #0
	b	LBB0_10
LBB0_6:
	and	x8, x20, #0xffffffffffffffe0
	add	x11, sp, #8
	add	x11, x11, #16
	add	x12, x19, #16
	movi.2d	v0, #0000000000000000
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ldr	q2, [x10, lCPI0_1@PAGEOFF]
Lloh3:
	adrp	x13, lCPI0_2@PAGE
Lloh4:
	ldr	q3, [x13, lCPI0_2@PAGEOFF]
	movi.2d	v5, #0000000000000000
Lloh5:
	adrp	x13, lCPI0_3@PAGE
Lloh6:
	ldr	q17, [x13, lCPI0_3@PAGEOFF]
	mov	x13, x8
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v18, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v19, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q20, q21, [x11, #-16]
	ldp	q22, q23, [x12, #-16]
	eor.16b	v20, v22, v20
	eor.16b	v21, v23, v21
	tbl.16b	v22, { v20 }, v1
	tbl.16b	v23, { v20 }, v2
	tbl.16b	v24, { v20 }, v3
	tbl.16b	v20, { v20 }, v17
	tbl.16b	v25, { v21 }, v1
	tbl.16b	v26, { v21 }, v2
	tbl.16b	v27, { v21 }, v3
	tbl.16b	v21, { v21 }, v17
	orr.16b	v7, v7, v20
	orr.16b	v4, v4, v24
	orr.16b	v5, v5, v23
	orr.16b	v0, v0, v22
	orr.16b	v19, v19, v21
	orr.16b	v16, v16, v27
	orr.16b	v18, v18, v26
	orr.16b	v6, v6, v25
	add	x11, x11, #32
	add	x12, x12, #32
	subs	x13, x13, #32
	b.ne	LBB0_7
; %bb.8:
	orr.16b	v1, v18, v5
	orr.16b	v2, v19, v7
	orr.16b	v0, v6, v0
	orr.16b	v3, v16, v4
	orr.16b	v0, v0, v3
	orr.16b	v1, v1, v2
	orr.16b	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w0, w12, w11
	cmp	x8, x20
	b.eq	LBB0_15
; %bb.9:
	tst	x20, #0x18
	b.eq	LBB0_13
LBB0_10:
	mov	x13, x8
	and	x8, x20, #0xfffffffffffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w0
	add	x11, sp, #8
	add	x11, x11, x13
	add	x12, x19, x13
	sub	x13, x13, x8
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	ldr	q3, [x10, lCPI0_1@PAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x11], #8
	ldr	d5, [x12], #8
	eor.8b	v4, v5, v4
	tbl.16b	v5, { v4 }, v2
	tbl.16b	v4, { v4 }, v3
	orr.16b	v0, v0, v4
	orr.16b	v1, v1, v5
	adds	x13, x13, #8
	b.ne	LBB0_11
; %bb.12:
	orr.16b	v0, v1, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w0, w10, w9
	cmp	x8, x20
	b.eq	LBB0_15
LBB0_13:
	sub	x9, x20, x8
	add	x10, x19, x8
	add	x11, sp, #8
	add	x8, x11, x8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x8], #1
	ldrb	w12, [x10], #1
	eor	w11, w12, w11
	orr	w0, w0, w11
	subs	x9, x9, #1
	b.ne	LBB0_14
LBB0_15:
	bl	_EQ0
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
