	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_create_key_backlight
_applesmc_create_key_backlight:         ## @applesmc_create_key_backlight
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_smcreg@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	_applesmc_led_wq@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_pdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_applesmc_backlight@GOTPCREL(%rip), %rsi
	popq	%rbp
	jmp	_led_classdev_register          ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smcreg,4,2                     ## @smcreg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"applesmc-led"

	.comm	_applesmc_led_wq,4,2            ## @applesmc_led_wq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pdev,8,3                       ## @pdev
	.comm	_applesmc_backlight,4,2         ## @applesmc_backlight
	.no_dead_strip	_applesmc_create_key_backlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_create_key_backlight
_applesmc_create_key_backlight:         ; @applesmc_create_key_backlight
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _smcreg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smcreg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
Lloh5:
	adrp	x8, _applesmc_led_wq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _applesmc_led_wq@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	cbz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _pdev@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pdev@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x1, _applesmc_backlight@GOTPAGE
Lloh12:
	ldr	x1, [x1, _applesmc_backlight@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_led_classdev_register
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_smcreg,4,2                     ; @smcreg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"applesmc-led"

	.comm	_applesmc_led_wq,4,2            ; @applesmc_led_wq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pdev,8,3                       ; @pdev
	.comm	_applesmc_backlight,4,2         ; @applesmc_backlight
	.no_dead_strip	_applesmc_create_key_backlight
.subsections_via_symbols
