	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_HAS_L3_GPU_CACHE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rdi
	movq	_dpf_attrs@GOTPCREL(%rip), %rsi
	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	_INTEL_INFO
	cmpl	$6, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movq	_gen6_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_merge_group
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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	_gen6_attr_group,4,2            ## @gen6_attr_group
L_.str.1:                               ## @.str.1
	.asciz	"gen6 sysfs setup failed\n"

	.comm	_rc6_attr_group,4,2             ## @rc6_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	x19, x0
	bl	_HAS_L3_GPU_CACHE
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, _dpf_attrs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dpf_attrs@GOTPAGEOFF]
	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, x19
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_6
; %bb.4:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, _gen6_attr_group@GOTPAGE
Lloh5:
	ldr	x1, [x1, _gen6_attr_group@GOTPAGEOFF]
	bl	_sysfs_merge_group
	cbz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.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	_gen6_attr_group,4,2            ; @gen6_attr_group
l_.str.1:                               ; @.str.1
	.asciz	"gen6 sysfs setup failed\n"

	.comm	_rc6_attr_group,4,2             ; @rc6_attr_group
.subsections_via_symbols
