	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_hw_stats
_setup_hw_stats:                        ## @setup_hw_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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	*32(%rdi)
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, 24(%rax)
	je	LBB0_20
## %bb.2:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.3:
	leal	56(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r14
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	*(%rbx)
	cmpl	(%r12), %eax
	jne	LBB0_19
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r12)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 8(%r14)
	movq	%r14, %rcx
	addq	$40, %rcx
	movq	%rcx, 16(%r14)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_alloc_hsa
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_sysfs_attr_init
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_alloc_hsa_lifespan
	movq	16(%r14), %rcx
	movl	%r15d, %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%r14), %rax
	movq	(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_sysfs_attr_init
LBB0_10:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_14
## %bb.11:
	leaq	16(%r13), %rdi
	movq	%r14, %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	%r14, 8(%r13)
	movq	%r12, (%r13)
	jmp	LBB0_13
LBB0_14:
	leaq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_15
LBB0_16:
	testl	%r15d, %r15d
	js	LBB0_19
## %bb.17:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	addq	$-1, %rbx
	jb	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
LBB0_20:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_15:
	movq	%r14, 16(%rbx)
	movq	%r12, 8(%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw_counters"

L_.str.1:                               ## @.str.1
	.asciz	"lifespan"

	.no_dead_strip	_setup_hw_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_hw_stats
_setup_hw_stats:                        ; @setup_hw_stats
	.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	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #32]
	mov	x1, x2
	blr	x8
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_20
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.3:
	lsl	w8, w8, #3
	add	w0, w8, #56
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_20
; %bb.4:
	mov	x20, x0
	ldr	x8, [x22]
	ldr	w3, [x19]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	blr	x8
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.5:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	add	x9, x20, #40
	stp	x8, x9, [x20, #8]
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x24
	mov	x1, x23
	bl	_alloc_hsa
	ldr	x8, [x20, #16]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_sysfs_attr_init
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:
	mov	w24, #0
LBB0_10:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_alloc_hsa_lifespan
	ldr	x8, [x20, #16]
	mov	w9, w24
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_sysfs_attr_init
LBB0_12:
	cbz	x21, LBB0_15
; %bb.13:
	add	x0, x21, #16
	mov	x1, x20
	bl	_sysfs_create_group
	cbnz	w0, LBB0_16
; %bb.14:
	stp	x19, x20, [x21]
	b	LBB0_22
LBB0_15:
	add	x0, x22, #24
	mov	x1, x20
	bl	_sysfs_create_group
	cbz	w0, LBB0_21
LBB0_16:
	tbnz	w24, #31, LBB0_19
; %bb.17:
	mov	w8, w24
	lsl	x21, x8, #3
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x21]
	bl	_kfree
	sub	x21, x21, #8
	cmn	x21, #8
	b.ne	LBB0_18
LBB0_19:
	mov	x0, x20
	bl	_kfree
LBB0_20:
	mov	x0, x19
	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
	b	_kfree
LBB0_21:
	stp	x19, x20, [x22, #8]
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw_counters"

l_.str.1:                               ; @.str.1
	.asciz	"lifespan"

	.no_dead_strip	_setup_hw_stats
.subsections_via_symbols
