	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_perfctr_new
_nvkm_perfctr_new:                      ## @nvkm_perfctr_new
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%r9d, %r12d
	movq	%r8, %rbx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r15d, 28(%rax)
	movl	%r12d, 24(%rax)
	movl	%r13d, (%rax)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	subq	%rdx, %rcx
	movq	16(%rax), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movl	(%rbx), %edx
	movl	%edx, (%rcx)
	movl	4(%rbx), %edx
	movl	%edx, 4(%rcx)
	movl	8(%rbx), %edx
	movl	%edx, 8(%rcx)
	movl	12(%rbx), %edx
	movl	%edx, 12(%rcx)
	movl	16(%rbx), %edx
	movl	%edx, 16(%rcx)
	movl	20(%rbx), %edx
	movl	%edx, 20(%rcx)
	movl	24(%rbx), %edx
	movl	%edx, 24(%rcx)
	movl	28(%rbx), %edx
	movl	%edx, 28(%rcx)
LBB0_7:
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	subq	%rdx, %rcx
	movq	16(%rax), %rdx
	movq	%rcx, 8(%rdx)
	movq	8(%rax), %rcx
	movq	8(%rcx), %rcx
	movl	32(%rbx), %edx
	movl	%edx, (%rcx)
	movl	36(%rbx), %edx
	movl	%edx, 4(%rcx)
	movl	40(%rbx), %edx
	movl	%edx, 8(%rcx)
	movl	44(%rbx), %edx
	movl	%edx, 12(%rcx)
	movl	48(%rbx), %edx
	movl	%edx, 16(%rcx)
	movl	52(%rbx), %edx
	movl	%edx, 20(%rcx)
	movl	56(%rbx), %edx
	movl	%edx, 24(%rcx)
	movl	60(%rbx), %edx
	movl	%edx, 28(%rcx)
LBB0_9:
	movq	16(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	subq	%rdx, %rcx
	movq	16(%rax), %rdx
	movq	%rcx, 16(%rdx)
	movq	8(%rax), %rcx
	movq	16(%rcx), %rcx
	movl	64(%rbx), %edx
	movl	%edx, (%rcx)
	movl	68(%rbx), %edx
	movl	%edx, 4(%rcx)
	movl	72(%rbx), %edx
	movl	%edx, 8(%rcx)
	movl	76(%rbx), %edx
	movl	%edx, 12(%rcx)
	movl	80(%rbx), %edx
	movl	%edx, 16(%rcx)
	movl	84(%rbx), %edx
	movl	%edx, 20(%rcx)
	movl	88(%rbx), %edx
	movl	%edx, 24(%rcx)
	movl	92(%rbx), %edx
	movl	%edx, 28(%rcx)
LBB0_11:
	movq	24(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	subq	%rdx, %rcx
	movq	16(%rax), %rdx
	movq	%rcx, 24(%rdx)
	movq	8(%rax), %rcx
	movq	24(%rcx), %rcx
	movl	96(%rbx), %edx
	movl	%edx, (%rcx)
	movl	100(%rbx), %edx
	movl	%edx, 4(%rcx)
	movl	104(%rbx), %edx
	movl	%edx, 8(%rcx)
	movl	108(%rbx), %edx
	movl	%edx, 12(%rcx)
	movl	112(%rbx), %edx
	movl	%edx, 16(%rcx)
	movl	116(%rbx), %edx
	movl	%edx, 20(%rcx)
	movl	120(%rbx), %edx
	movl	%edx, 24(%rcx)
	movl	124(%rbx), %edx
	movl	%edx, 28(%rcx)
LBB0_13:
	addq	$4, %rax
	addq	$4, %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvkm_perfctr_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_perfctr_new
_nvkm_perfctr_new:                      ; @nvkm_perfctr_new
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x25, x6
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	str	x0, [x25]
	cbz	x0, LBB0_12
; %bb.2:
	stp	w22, w24, [x0, #24]
	str	w23, [x0]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	ldrsw	x9, [x19]
	sub	x8, x8, x9, lsl #2
	ldr	x9, [x0, #16]
	str	x8, [x9]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w9, [x20]
	str	w9, [x8]
	ldr	w9, [x20, #4]
	str	w9, [x8, #4]
	ldr	w9, [x20, #8]
	str	w9, [x8, #8]
	ldr	w9, [x20, #12]
	str	w9, [x8, #12]
	ldr	w9, [x20, #16]
	str	w9, [x8, #16]
	ldr	w9, [x20, #20]
	str	w9, [x8, #20]
	ldr	w9, [x20, #24]
	str	w9, [x8, #24]
	ldr	w9, [x20, #28]
	str	w9, [x8, #28]
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldrsw	x9, [x19]
	sub	x8, x8, x9, lsl #2
	ldr	x9, [x0, #16]
	str	x8, [x9, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x20, #32]
	str	w9, [x8]
	ldr	w9, [x20, #36]
	str	w9, [x8, #4]
	ldr	w9, [x20, #40]
	str	w9, [x8, #8]
	ldr	w9, [x20, #44]
	str	w9, [x8, #12]
	ldr	w9, [x20, #48]
	str	w9, [x8, #16]
	ldr	w9, [x20, #52]
	str	w9, [x8, #20]
	ldr	w9, [x20, #56]
	str	w9, [x8, #24]
	ldr	w9, [x20, #60]
	str	w9, [x8, #28]
LBB0_6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldrsw	x9, [x19]
	sub	x8, x8, x9, lsl #2
	ldr	x9, [x0, #16]
	str	x8, [x9, #16]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #16]
	ldr	w9, [x20, #64]
	str	w9, [x8]
	ldr	w9, [x20, #68]
	str	w9, [x8, #4]
	ldr	w9, [x20, #72]
	str	w9, [x8, #8]
	ldr	w9, [x20, #76]
	str	w9, [x8, #12]
	ldr	w9, [x20, #80]
	str	w9, [x8, #16]
	ldr	w9, [x20, #84]
	str	w9, [x8, #20]
	ldr	w9, [x20, #88]
	str	w9, [x8, #24]
	ldr	w9, [x20, #92]
	str	w9, [x8, #28]
LBB0_8:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldrsw	x9, [x19]
	sub	x8, x8, x9, lsl #2
	ldr	x9, [x0, #16]
	str	x8, [x9, #24]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #24]
	ldr	w9, [x20, #96]
	str	w9, [x8]
	ldr	w9, [x20, #100]
	str	w9, [x8, #4]
	ldr	w9, [x20, #104]
	str	w9, [x8, #8]
	ldr	w9, [x20, #108]
	str	w9, [x8, #12]
	ldr	w9, [x20, #112]
	str	w9, [x8, #16]
	ldr	w9, [x20, #116]
	str	w9, [x8, #20]
	ldr	w9, [x20, #120]
	str	w9, [x8, #24]
	ldr	w9, [x20, #124]
	str	w9, [x8, #28]
LBB0_10:
	add	x0, x0, #4
	add	x1, x19, #4
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvkm_perfctr_new
.subsections_via_symbols
