	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_backlight_init
_eeepc_backlight_init:                  ## @eeepc_backlight_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-32(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_BACKLIGHT_PLATFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	$15, -32(%rbp)
	movq	_EEEPC_LAPTOP_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	movq	_eeepcbl_ops@GOTPCREL(%rip), %rcx
	movq	%r15, %rdx
	movq	%rbx, %r8
	callq	_backlight_device_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_read_brightness
	movl	%eax, 4(%rbx)
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_backlight_update_status
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKLIGHT_PLATFORM,4,2         ## @BACKLIGHT_PLATFORM
	.comm	_EEEPC_LAPTOP_FILE,4,2          ## @EEEPC_LAPTOP_FILE
	.comm	_eeepcbl_ops,4,2                ## @eeepcbl_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register eeepc backlight device\n"

	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.no_dead_strip	_eeepc_backlight_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_backlight_init
_eeepc_backlight_init:                  ; @eeepc_backlight_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _BACKLIGHT_PLATFORM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BACKLIGHT_PLATFORM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #15
	stp	w9, w8, [sp, #8]
Lloh3:
	adrp	x8, _EEEPC_LAPTOP_FILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEEPC_LAPTOP_FILE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
Lloh6:
	adrp	x3, _eeepcbl_ops@GOTPAGE
Lloh7:
	ldr	x3, [x3, _eeepcbl_ops@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x2, x19
	bl	_backlight_device_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	xzr, [x19]
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_3
LBB0_2:
	str	x20, [x19]
	mov	x0, x20
	bl	_read_brightness
Lloh10:
	adrp	x8, _FB_BLANK_UNBLANK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w8, w0, [x20]
	mov	x0, x20
	bl	_backlight_update_status
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKLIGHT_PLATFORM,4,2         ; @BACKLIGHT_PLATFORM
	.comm	_EEEPC_LAPTOP_FILE,4,2          ; @EEEPC_LAPTOP_FILE
	.comm	_eeepcbl_ops,4,2                ; @eeepcbl_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register eeepc backlight device\n"

	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.no_dead_strip	_eeepc_backlight_init
.subsections_via_symbols
