	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_lightbar_probe
_cros_ec_lightbar_probe:                ## @cros_ec_lightbar_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_dev_get_platdata
	movl	(%rax), %edi
	movq	_CROS_EC_DEV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_get_lightbar_version
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lb_manual_suspend_ctrl
	movq	_cros_ec_lightbar_attr_group@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sysfs_create_group
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_3
## %bb.6:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
	jmp	LBB0_3
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_CROS_EC_DEV_NAME,4,2           ## @CROS_EC_DEV_NAME
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cros_ec_lightbar_attr_group,4,2 ## @cros_ec_lightbar_attr_group
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create %s attributes. err=%d\n"

	.no_dead_strip	_cros_ec_lightbar_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_lightbar_probe
_cros_ec_lightbar_probe:                ; @cros_ec_lightbar_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_platdata
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CROS_EC_DEV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CROS_EC_DEV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_get_lightbar_version
	cbz	w0, LBB0_1
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	bl	_lb_manual_suspend_ctrl
Lloh6:
	adrp	x21, _cros_ec_lightbar_attr_group@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cros_ec_lightbar_attr_group@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_sysfs_create_group
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.5:
	ldr	w2, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_err
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CROS_EC_DEV_NAME,4,2           ; @CROS_EC_DEV_NAME
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cros_ec_lightbar_attr_group,4,2 ; @cros_ec_lightbar_attr_group
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create %s attributes. err=%d\n"

	.no_dead_strip	_cros_ec_lightbar_probe
.subsections_via_symbols
