	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_lookup
_pmu_lookup:                            ## @pmu_lookup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_format@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LIST_HEAD
	movq	_aliases@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pmu_format
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_aliases@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_pmu_aliases
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pmu_type
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$24, %edi
	callq	_zalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pmu_cpumask
	movl	%eax, 20(%rbx)
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %r12
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	_format@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_list_splice
	movq	_aliases@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_list_splice
	movq	%r14, %rdi
	callq	_strdup
	movl	%eax, 8(%rbx)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	_pmus@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_format,4,2                     ## @format
	.comm	_aliases,4,2                    ## @aliases
	.comm	_pmus,4,2                       ## @pmus
	.no_dead_strip	_pmu_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_lookup
_pmu_lookup:                            ; @pmu_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _format@GOTPAGE
Lloh1:
	ldr	x20, [x20, _format@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_LIST_HEAD
Lloh2:
	adrp	x8, _aliases@GOTPAGE
Lloh3:
	ldr	x8, [x8, _aliases@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	mov	x1, x20
	bl	_pmu_format
	cbnz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, _aliases@GOTPAGE
Lloh6:
	ldr	x1, [x1, _aliases@GOTPAGEOFF]
	mov	x0, x19
	bl	_pmu_aliases
	cbnz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_pmu_type
	cbz	x0, LBB0_5
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	w0, #24
	bl	_zalloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.6:
	mov	x0, x19
	bl	_pmu_cpumask
	str	w0, [x20, #20]
	add	x21, x20, #16
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x22, x20, #12
	mov	x0, x22
	bl	_INIT_LIST_HEAD
Lloh7:
	adrp	x0, _format@GOTPAGE
Lloh8:
	ldr	x0, [x0, _format@GOTPAGEOFF]
	mov	x1, x21
	bl	_list_splice
Lloh9:
	adrp	x0, _aliases@GOTPAGE
Lloh10:
	ldr	x0, [x0, _aliases@GOTPAGEOFF]
	mov	x1, x22
	bl	_list_splice
	mov	x0, x19
	bl	_strdup
	ldr	w8, [sp, #12]
	stp	w8, w0, [x20, #4]
Lloh11:
	adrp	x1, _pmus@GOTPAGE
Lloh12:
	ldr	x1, [x1, _pmus@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add_tail
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_format,4,2                     ; @format
	.comm	_aliases,4,2                    ; @aliases
	.comm	_pmus,4,2                       ; @pmus
	.no_dead_strip	_pmu_lookup
.subsections_via_symbols
