	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alienware_zone_init
_alienware_zone_init:                   ## @alienware_zone_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_interface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_WMAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_WMAX_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_LEGACY_RUNNING@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_lighting_control_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	movq	_global_led@GOTPCREL(%rip), %rax
	movl	$15, (%rax)
	movq	_global_brightness@GOTPCREL(%rip), %rax
	movl	$15, (%rax)
	movq	_quirks@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_zone_dev_attrs@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	addl	$2, %edi
	movl	(%r12), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	_zone_attrs@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_zone_data@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-58(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_sprintf
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kstrdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_sysfs_attr_init
	movq	(%r14), %rax
	movq	%rbx, (%rax,%r12)
	movq	(%r14), %rax
	leaq	(%rax,%r12), %rcx
	movl	$420, 8(%rax,%r12)              ## imm = 0x1A4
	movq	_zone_show@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rax,%r12)
	movq	_zone_set@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rax,%r12)
	movq	_zone_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%r13, (%rax,%r15)
	movq	_zone_attrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, (%rax,%r13,8)
	movq	(%r14), %rax
	addq	%r12, %rax
	movq	(%rdx), %rcx
	movq	%rax, 8(%rcx,%r15)
	incq	%r13
	movq	_quirks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	addq	$24, %r12
	addq	$16, %r15
	cmpq	%rax, %r13
	jb	LBB0_12
## %bb.15:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
LBB0_16:
	movq	_zone_attrs@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	_dev_attr_lighting_control_state@GOTPCREL(%rip), %rdx
	movq	%rdx, (%rcx,%rax,8)
	movq	(%rsi), %rax
	movq	_zone_attribute_group@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_global_led@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_led_classdev_register
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sysfs_create_group
	jmp	LBB0_17
LBB0_13:
	movl	$1, %eax
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_interface,8,3                  ## @interface
	.comm	_WMAX,8,3                       ## @WMAX
	.comm	_WMAX_RUNNING,4,2               ## @WMAX_RUNNING
	.comm	_lighting_control_state,4,2     ## @lighting_control_state
	.comm	_LEGACY,8,3                     ## @LEGACY
	.comm	_LEGACY_RUNNING,4,2             ## @LEGACY_RUNNING
	.comm	_global_led,4,2                 ## @global_led
	.comm	_global_brightness,4,2          ## @global_brightness
	.comm	_quirks,8,3                     ## @quirks
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_zone_dev_attrs,8,3             ## @zone_dev_attrs
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_zone_attrs,8,3                 ## @zone_attrs
	.comm	_zone_data,8,3                  ## @zone_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zone%02hhX"

	.comm	_zone_show,4,2                  ## @zone_show
	.comm	_zone_set,4,2                   ## @zone_set
	.comm	_dev_attr_lighting_control_state,16,3 ## @dev_attr_lighting_control_state
	.comm	_zone_attribute_group,8,3       ## @zone_attribute_group
	.no_dead_strip	_alienware_zone_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alienware_zone_init
_alienware_zone_init:                   ; @alienware_zone_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _interface@GOTPAGE
Lloh4:
	ldr	x9, [x9, _interface@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _WMAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WMAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _WMAX_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMAX_RUNNING@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x9, _LEGACY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LEGACY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _LEGACY_RUNNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LEGACY_RUNNING@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _lighting_control_state@GOTPAGE
Lloh17:
	ldr	x9, [x9, _lighting_control_state@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_5:
Lloh19:
	adrp	x8, _global_led@GOTPAGE
Lloh20:
	ldr	x8, [x8, _global_led@GOTPAGEOFF]
	mov	w9, #15
Lloh21:
	str	w9, [x8]
Lloh22:
	adrp	x8, _global_brightness@GOTPAGE
Lloh23:
	ldr	x8, [x8, _global_brightness@GOTPAGEOFF]
Lloh24:
	str	w9, [x8]
Lloh25:
	adrp	x23, _quirks@GOTPAGE
Lloh26:
	ldr	x23, [x23, _quirks@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w8, [x8]
	add	w0, w8, #1
Lloh27:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh28:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
Lloh29:
	adrp	x25, _zone_dev_attrs@GOTPAGE
Lloh30:
	ldr	x25, [x25, _zone_dev_attrs@GOTPAGEOFF]
	str	x0, [x25]
	cbz	x0, LBB0_13
; %bb.6:
	ldr	x8, [x23]
	ldr	w8, [x8]
	add	w0, w8, #2
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
Lloh31:
	adrp	x26, _zone_attrs@GOTPAGE
Lloh32:
	ldr	x26, [x26, _zone_attrs@GOTPAGEOFF]
	str	x0, [x26]
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x8, [x23]
	ldr	w0, [x8]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
Lloh33:
	adrp	x27, _zone_data@GOTPAGE
Lloh34:
	ldr	x27, [x27, _zone_data@GOTPAGEOFF]
	str	x0, [x27]
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.9:
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x28, #0
	mov	x19, #0
	mov	x20, #0
Lloh35:
	adrp	x21, l_.str@PAGE
Lloh36:
	add	x21, x21, l_.str@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #14
	mov	x1, x21
	mov	x2, x20
	bl	_sprintf
	ldr	w1, [x24]
	add	x0, sp, #14
	bl	_kstrdup
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	ldr	x8, [x25]
	add	x0, x8, x19
	bl	_sysfs_attr_init
	ldr	x8, [x25]
	str	x22, [x8, x19]
	ldr	x8, [x25]
	add	x8, x8, x19
	mov	w9, #420
	str	w9, [x8, #8]
Lloh37:
	adrp	x9, _zone_show@GOTPAGE
Lloh38:
	ldr	x9, [x9, _zone_show@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh40:
	adrp	x9, _zone_set@GOTPAGE
Lloh41:
	ldr	x9, [x9, _zone_set@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ldr	x9, [x27]
	str	x20, [x9, x28]
	ldr	x9, [x26]
	str	x8, [x9, x20, lsl #3]
	ldr	x8, [x25]
	add	x8, x8, x19
	ldr	x9, [x27]
	add	x9, x9, x28
	str	x8, [x9, #8]
	add	x20, x20, #1
	ldr	x8, [x23]
	ldrsw	x8, [x8]
	add	x19, x19, #24
	add	x28, x28, #16
	cmp	x20, x8
	b.lo	LBB0_10
; %bb.12:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	b	LBB0_17
LBB0_13:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldr	x8, [sp, #24]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x8, #0
LBB0_17:
	ldr	x9, [x26]
Lloh49:
	adrp	x10, _dev_attr_lighting_control_state@GOTPAGE
Lloh50:
	ldr	x10, [x10, _dev_attr_lighting_control_state@GOTPAGEOFF]
	str	x10, [x9, x8, lsl #3]
	ldr	x8, [x26]
Lloh51:
	adrp	x20, _zone_attribute_group@GOTPAGE
Lloh52:
	ldr	x20, [x20, _zone_attribute_group@GOTPAGEOFF]
	str	x8, [x20]
Lloh53:
	adrp	x1, _global_led@GOTPAGE
Lloh54:
	ldr	x1, [x1, _global_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_led_classdev_register
	mov	x0, x19
	mov	x1, x20
	bl	_sysfs_create_group
	b	LBB0_14
LBB0_18:
	mov	w0, #1
	b	LBB0_14
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_interface,8,3                  ; @interface
	.comm	_WMAX,8,3                       ; @WMAX
	.comm	_WMAX_RUNNING,4,2               ; @WMAX_RUNNING
	.comm	_lighting_control_state,4,2     ; @lighting_control_state
	.comm	_LEGACY,8,3                     ; @LEGACY
	.comm	_LEGACY_RUNNING,4,2             ; @LEGACY_RUNNING
	.comm	_global_led,4,2                 ; @global_led
	.comm	_global_brightness,4,2          ; @global_brightness
	.comm	_quirks,8,3                     ; @quirks
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_zone_dev_attrs,8,3             ; @zone_dev_attrs
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_zone_attrs,8,3                 ; @zone_attrs
	.comm	_zone_data,8,3                  ; @zone_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zone%02hhX"

	.comm	_zone_show,4,2                  ; @zone_show
	.comm	_zone_set,4,2                   ; @zone_set
	.comm	_dev_attr_lighting_control_state,16,3 ; @dev_attr_lighting_control_state
	.comm	_zone_attribute_group,8,3       ; @zone_attribute_group
	.no_dead_strip	_alienware_zone_init
.subsections_via_symbols
