	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cookie_sidecheck
_cookie_sidecheck:                      ## @cookie_sidecheck
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_IP_V
	cmpl	$6, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$4, %eax
	jne	LBB0_12
## %bb.2:
	movq	_cookiecache@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%ebx, %rax
	leaq	(%rax,%rax,4), %rdx
	xorl	%eax, %eax
	cmpl	$4, (%rcx,%rdx,4)
	jne	LBB0_13
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.4:
	leaq	(%rcx,%rdx,4), %rsi
	addq	$16, %rsi
	jmp	LBB0_5
LBB0_7:
	movq	_cookiecache@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%ebx, %rax
	leaq	(%rax,%rax,4), %rdx
	xorl	%eax, %eax
	cmpl	$6, (%rcx,%rdx,4)
	jne	LBB0_13
## %bb.8:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	leaq	(%rcx,%rdx,4), %rsi
	addq	$12, %rsi
	jmp	LBB0_5
LBB0_10:
	leaq	(%rcx,%rdx,4), %rsi
	addq	$8, %rsi
	jmp	LBB0_5
LBB0_11:
	leaq	(%rcx,%rdx,4), %rsi
	addq	$4, %rsi
LBB0_5:
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCMP
	testl	%eax, %eax
	je	LBB0_6
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_cookiecache,8,3                ## @cookiecache
	.no_dead_strip	_cookie_sidecheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cookie_sidecheck
_cookie_sidecheck:                      ; @cookie_sidecheck
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_IP_V
	cmp	w0, #6
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #4
	b.ne	LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _cookiecache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cookiecache@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #20
	smull	x9, w21, w9
	ldr	w9, [x8, x9]
	cmp	w9, #4
	b.ne	LBB0_11
; %bb.3:
	sxtw	x9, w21
	mov	w10, #20
	madd	x8, x9, x10, x8
	cbz	w20, LBB0_8
; %bb.4:
	add	x1, x8, #16
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _cookiecache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cookiecache@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #20
	smull	x9, w21, w9
	ldr	w9, [x8, x9]
	cmp	w9, #6
	b.ne	LBB0_11
; %bb.6:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x9, w21
	mov	w10, #20
	madd	x8, x9, x10, x8
	cbz	w20, LBB0_9
; %bb.7:
	add	x1, x8, #12
	b	LBB0_10
LBB0_8:
	add	x1, x8, #8
	b	LBB0_10
LBB0_9:
	add	x1, x8, #4
LBB0_10:
	mov	x0, x19
	mov	w2, #4
	bl	_UNALIGNED_MEMCMP
	cbz	w0, LBB0_13
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cookiecache,8,3                ; @cookiecache
	.no_dead_strip	_cookie_sidecheck
.subsections_via_symbols
