	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_setup_sysfs               ## -- Begin function i915_setup_sysfs
	.p2align	4, 0x90
_i915_setup_sysfs:                      ## @i915_setup_sysfs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	callq	_HAS_L3_DPF
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_dpf_attrs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_bin_file
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_3:
	movq	%rbx, %rdi
	callq	_NUM_L3_SLICES
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.4:
	movq	_dpf_attrs_1@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_bin_file
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	movq	_vlv_attrs@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_12
## %bb.9:
	movq	_gen6_attrs@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_sysfs_create_files
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_setup_error_capture       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dpf_attrs,4,2                  ## @dpf_attrs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l3 parity sysfs setup failed\n"

	.comm	_dpf_attrs_1,4,2                ## @dpf_attrs_1
L_.str.1:                               ## @.str.1
	.asciz	"l3 parity slice 1 setup failed\n"

	.comm	_vlv_attrs,4,2                  ## @vlv_attrs
	.comm	_gen6_attrs,4,2                 ## @gen6_attrs
L_.str.2:                               ## @.str.2
	.asciz	"RPS sysfs setup failed\n"

	.comm	_media_rc6_attr_group,4,2       ## @media_rc6_attr_group
	.comm	_rc6_attr_group,4,2             ## @rc6_attr_group
	.comm	_rc6p_attr_group,4,2            ## @rc6p_attr_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_setup_sysfs               ; -- Begin function i915_setup_sysfs
	.p2align	2
_i915_setup_sysfs:                      ; @i915_setup_sysfs
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_HAS_L3_DPF
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x1, _dpf_attrs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dpf_attrs@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	mov	x0, x20
	bl	_NUM_L3_SLICES
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.4:
Lloh4:
	adrp	x1, _dpf_attrs_1@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dpf_attrs_1@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_12
LBB0_8:
Lloh8:
	adrp	x8, _vlv_attrs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vlv_attrs@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sysfs_create_files
	cbz	w0, LBB0_11
; %bb.10:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i915_setup_error_capture
LBB0_12:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_11
; %bb.13:
Lloh12:
	adrp	x8, _gen6_attrs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gen6_attrs@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dpf_attrs,4,2                  ; @dpf_attrs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l3 parity sysfs setup failed\n"

	.comm	_dpf_attrs_1,4,2                ; @dpf_attrs_1
l_.str.1:                               ; @.str.1
	.asciz	"l3 parity slice 1 setup failed\n"

	.comm	_vlv_attrs,4,2                  ; @vlv_attrs
	.comm	_gen6_attrs,4,2                 ; @gen6_attrs
l_.str.2:                               ; @.str.2
	.asciz	"RPS sysfs setup failed\n"

	.comm	_media_rc6_attr_group,4,2       ; @media_rc6_attr_group
	.comm	_rc6_attr_group,4,2             ; @rc6_attr_group
	.comm	_rc6p_attr_group,4,2            ; @rc6p_attr_group
.subsections_via_symbols
