	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_perf_register             ## -- Begin function i915_perf_register
	.p2align	4, 0x90
_i915_perf_register:                    ## @i915_perf_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 40(%rdi)
	je	LBB0_38
## %bb.1:
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	48(%rbx), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_kobject_create_and_add
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_37
## %bb.2:
	leaq	32(%rbx), %rdi
	callq	_sysfs_attr_init
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movq	%rbx, %rdi
	cmpl	$11, %eax
	jl	LBB0_4
## %bb.3:
	callq	_i915_perf_load_test_config_icl
	jmp	LBB0_33
LBB0_38:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	_IS_CANNONLAKE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_i915_perf_load_test_config_cnl
LBB0_33:
	cmpq	$0, 16(%rbx)
	je	LBB0_36
## %bb.34:
	movq	8(%rbx), %rdi
	leaq	28(%rbx), %rsi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_35
LBB0_36:
	movq	8(%rbx), %rdi
	callq	_kobject_put
	movq	$0, 8(%rbx)
	jmp	LBB0_37
LBB0_35:
	leaq	24(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
LBB0_37:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_6:
	callq	_IS_COFFEELAKE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	callq	_IS_CFL_GT2
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_i915_perf_load_test_config_cflgt2
LBB0_9:
	movq	%rbx, %rdi
	callq	_IS_CFL_GT3
	testq	%rax, %rax
	je	LBB0_33
## %bb.10:
	movq	%rbx, %rdi
	callq	_i915_perf_load_test_config_cflgt3
	jmp	LBB0_33
LBB0_11:
	callq	_IS_GEMINILAKE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	callq	_i915_perf_load_test_config_glk
	jmp	LBB0_33
LBB0_13:
	callq	_IS_KABYLAKE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	callq	_IS_KBL_GT2
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	callq	_i915_perf_load_test_config_kblgt2
	jmp	LBB0_33
LBB0_18:
	callq	_IS_BROXTON
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	callq	_i915_perf_load_test_config_bxt
	jmp	LBB0_33
LBB0_16:
	callq	_IS_KBL_GT3
	testq	%rax, %rax
	je	LBB0_33
## %bb.17:
	movq	%rbx, %rdi
	callq	_i915_perf_load_test_config_kblgt3
	jmp	LBB0_33
LBB0_20:
	callq	_IS_SKYLAKE
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_27
## %bb.21:
	callq	_IS_SKL_GT2
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	callq	_i915_perf_load_test_config_sklgt2
	jmp	LBB0_33
LBB0_27:
	callq	_IS_CHERRYVIEW
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	callq	_i915_perf_load_test_config_chv
	jmp	LBB0_33
LBB0_23:
	callq	_IS_SKL_GT3
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	callq	_i915_perf_load_test_config_sklgt3
	jmp	LBB0_33
LBB0_29:
	callq	_IS_BROADWELL
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	callq	_i915_perf_load_test_config_bdw
	jmp	LBB0_33
LBB0_25:
	callq	_IS_SKL_GT4
	testq	%rax, %rax
	je	LBB0_33
## %bb.26:
	movq	%rbx, %rdi
	callq	_i915_perf_load_test_config_sklgt4
	jmp	LBB0_33
LBB0_31:
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	%rbx, %rdi
	callq	_i915_perf_load_test_config_hsw
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"metrics"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_perf_register             ; -- Begin function i915_perf_register
	.p2align	2
_i915_perf_register:                    ; @i915_perf_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #48]
	ldr	x1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kobject_create_and_add
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.2:
	add	x0, x19, #32
	bl	_sysfs_attr_init
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_i915_perf_load_test_config_icl
	b	LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_i915_perf_load_test_config_cnl
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
	add	x1, x19, #28
	bl	_sysfs_create_group
	cbz	w0, LBB0_10
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_kobject_put
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_10:
	add	x0, x19, #24
	mov	w1, #1
	bl	_atomic_set
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_12:
	mov	x0, x19
	bl	_IS_COFFEELAKE
	cbz	x0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_IS_CFL_GT2
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_i915_perf_load_test_config_cflgt2
LBB0_15:
	mov	x0, x19
	bl	_IS_CFL_GT3
	cbz	x0, LBB0_7
; %bb.16:
	mov	x0, x19
	bl	_i915_perf_load_test_config_cflgt3
	b	LBB0_7
LBB0_17:
	mov	x0, x19
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_i915_perf_load_test_config_glk
	b	LBB0_7
LBB0_19:
	mov	x0, x19
	bl	_IS_KABYLAKE
	cbz	x0, LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_IS_KBL_GT2
	cbz	x0, LBB0_24
; %bb.21:
	mov	x0, x19
	bl	_i915_perf_load_test_config_kblgt2
	b	LBB0_7
LBB0_22:
	mov	x0, x19
	bl	_IS_BROXTON
	cbz	x0, LBB0_26
; %bb.23:
	mov	x0, x19
	bl	_i915_perf_load_test_config_bxt
	b	LBB0_7
LBB0_24:
	mov	x0, x19
	bl	_IS_KBL_GT3
	cbz	x0, LBB0_7
; %bb.25:
	mov	x0, x19
	bl	_i915_perf_load_test_config_kblgt3
	b	LBB0_7
LBB0_26:
	mov	x0, x19
	bl	_IS_SKYLAKE
	cbz	x0, LBB0_29
; %bb.27:
	mov	x0, x19
	bl	_IS_SKL_GT2
	cbz	x0, LBB0_31
; %bb.28:
	mov	x0, x19
	bl	_i915_perf_load_test_config_sklgt2
	b	LBB0_7
LBB0_29:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_33
; %bb.30:
	mov	x0, x19
	bl	_i915_perf_load_test_config_chv
	b	LBB0_7
LBB0_31:
	mov	x0, x19
	bl	_IS_SKL_GT3
	cbz	x0, LBB0_35
; %bb.32:
	mov	x0, x19
	bl	_i915_perf_load_test_config_sklgt3
	b	LBB0_7
LBB0_33:
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_37
; %bb.34:
	mov	x0, x19
	bl	_i915_perf_load_test_config_bdw
	b	LBB0_7
LBB0_35:
	mov	x0, x19
	bl	_IS_SKL_GT4
	cbz	x0, LBB0_7
; %bb.36:
	mov	x0, x19
	bl	_i915_perf_load_test_config_sklgt4
	b	LBB0_7
LBB0_37:
	mov	x0, x19
	bl	_IS_HASWELL
	cbz	x0, LBB0_7
; %bb.38:
	mov	x0, x19
	bl	_i915_perf_load_test_config_hsw
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"metrics"

.subsections_via_symbols
