	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cookie_record
_cookie_record:                         ## @cookie_record
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_cookie_find
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	incl	%eax
	movq	_MAXINITIATORS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
LBB0_9:
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	movq	_ninitiator@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_IP_V
	cmpl	$6, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$4, %eax
	jne	LBB0_11
## %bb.4:
	movq	_cookiecache@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_ninitiator@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	$4, (%rax,%rcx,8)
	leaq	(%rax,%rcx,8), %rdi
	addq	$20, %rdi
	leaq	4(%r14), %rsi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	movq	(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$12, %rdi
	jmp	LBB0_6
LBB0_5:
	movq	_cookiecache@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_ninitiator@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	$6, (%rax,%rcx,8)
	leaq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	leaq	4(%r14), %rsi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	movq	(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$8, %rdi
LBB0_6:
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	movq	_cookiecache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ninitiator@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	movq	(%r14), %rax
	incq	%rax
	movq	_MAXINITIATORS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXINITIATORS,4,2              ## @MAXINITIATORS
	.comm	_ninitiator,8,3                 ## @ninitiator
	.comm	_cookiecache,8,3                ## @cookiecache
	.no_dead_strip	_cookie_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cookie_record
_cookie_record:                         ; @cookie_record
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_cookie_find
Lloh0:
	adrp	x21, _ninitiator@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ninitiator@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	w8, w0, #1
Lloh2:
	adrp	x9, _MAXINITIATORS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAXINITIATORS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_IP_V
Lloh5:
	adrp	x22, _cookiecache@GOTPAGE
Lloh6:
	ldr	x22, [x22, _cookiecache@GOTPAGEOFF]
	cmp	w0, #6
	b.eq	LBB0_5
; %bb.3:
	cmp	w0, #4
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x21]
	mov	w23, #24
	madd	x0, x9, x23, x8
	mov	w8, #4
	str	w8, [x0], #20
	add	x1, x20, #4
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	ldr	x8, [x22]
	ldr	x9, [x21]
	madd	x8, x9, x23, x8
	add	x0, x8, #12
	b	LBB0_6
LBB0_5:
	ldr	x8, [x22]
	ldr	x9, [x21]
	mov	w23, #24
	madd	x0, x9, x23, x8
	mov	w8, #6
	str	w8, [x0], #16
	add	x1, x20, #4
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	ldr	x8, [x22]
	ldr	x9, [x21]
	madd	x8, x9, x23, x8
	add	x0, x8, #8
LBB0_6:
	mov	x1, x20
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	ldr	x8, [x22]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x0, x8, #4
	mov	x1, x19
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	ldr	x8, [x21]
	add	x8, x8, #1
Lloh7:
	adrp	x9, _MAXINITIATORS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAXINITIATORS@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
LBB0_7:
	str	x8, [x21]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXINITIATORS,4,2              ; @MAXINITIATORS
	.comm	_ninitiator,8,3                 ; @ninitiator
	.comm	_cookiecache,8,3                ; @cookiecache
	.no_dead_strip	_cookie_record
.subsections_via_symbols
