	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_update_stats
_gem_update_stats:                      ## @gem_update_stats
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GEM_STATS_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	32(%r14), %r12
	xorl	%r13d, %r13d
	movq	_GEM_OCTTXL@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%r14)
	cltq
	addq	%rax, 8(%r12)
	addq	$8, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$8, %r12
	movq	_GEM_STATS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	cmpq	%r9, %r13
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_gem_statistics@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%r14)
	movq	8(%r14), %rcx
	addl	%eax, (%rcx,%r13,4)
	cltq
	addq	%rax, (%r12)
	cmpq	(%r15), %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GEM_OCTRXL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_1:
	xorl	%r9d, %r9d
LBB0_7:
	movl	16(%r14), %r8d
	testl	%r8d, %r8d
	je	LBB0_15
## %bb.8:
	movq	24(%r14), %rcx
	movq	_QUEUE_STATS_LEN@GOTPCREL(%rip), %r11
	movl	(%r11), %ebx
	xorl	%r10d, %r10d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r10d
	addq	$8, %rcx
	cmpl	%r8d, %r10d
	jae	LBB0_15
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rax
	movl	%r9d, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rsi,%rdi), %ebx
	movl	(%rcx,%rdi,8), %edx
	movl	%edx, (%rax,%rbx,4)
	movl	(%r11), %ebx
	incq	%rdi
	cmpl	%ebx, %edi
	jb	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r14), %r8d
	addl	%edi, %r9d
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEM_STATS_LEN,4,2              ## @GEM_STATS_LEN
	.comm	_gem_statistics,8,3             ## @gem_statistics
	.comm	_GEM_OCTTXL,8,3                 ## @GEM_OCTTXL
	.comm	_GEM_OCTRXL,8,3                 ## @GEM_OCTRXL
	.comm	_QUEUE_STATS_LEN,4,2            ## @QUEUE_STATS_LEN
	.no_dead_strip	_gem_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_update_stats
_gem_update_stats:                      ; @gem_update_stats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x21, _GEM_STATS_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GEM_STATS_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, #0
	add	x23, x19, #32
Lloh2:
	adrp	x24, _gem_statistics@GOTPAGE
Lloh3:
	ldr	x24, [x24, _gem_statistics@GOTPAGEOFF]
Lloh4:
	adrp	x25, _GEM_OCTTXL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GEM_OCTTXL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _GEM_OCTRXL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GEM_OCTRXL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x23, x23, #8
	ldr	w8, [x21]
	cmp	x22, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x20, [x8, x22, lsl #3]
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #8]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	ldr	x8, [x23]
	add	x8, x8, w0, sxtw
	str	x8, [x23]
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x1, x20, #4
	mov	x0, x19
	blr	x8
	ldr	x8, [x23, #8]!
	add	x8, x8, w0, sxtw
	str	x8, [x23]
	b	LBB0_2
LBB0_5:
	ldr	w12, [x19, #16]
	cbz	w12, LBB0_12
; %bb.6:
	mov	w9, #0
	ldr	x10, [x19, #24]
Lloh8:
	adrp	x11, _QUEUE_STATS_LEN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _QUEUE_STATS_LEN@GOTPAGEOFF]
	ldr	w13, [x11]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w9, #1
	add	x10, x10, #8
	cmp	w9, w12
	b.hs	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cbz	w13, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x14, #0
	ldr	x12, [x19, #8]
	mov	w15, w8
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x10, x14, lsl #3]
	add	w16, w15, w14
	str	w13, [x12, w16, uxtw #2]
	ldr	w13, [x11]
	add	x14, x14, #1
	cmp	w14, w13
	b.lo	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x19, #16]
	add	w8, w8, w14
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GEM_STATS_LEN,4,2              ; @GEM_STATS_LEN
	.comm	_gem_statistics,8,3             ; @gem_statistics
	.comm	_GEM_OCTTXL,8,3                 ; @GEM_OCTTXL
	.comm	_GEM_OCTRXL,8,3                 ; @GEM_OCTRXL
	.comm	_QUEUE_STATS_LEN,4,2            ; @QUEUE_STATS_LEN
	.no_dead_strip	_gem_update_stats
.subsections_via_symbols
