	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_lid_send_state
_acpi_lid_send_state:                   ## @acpi_lid_send_state
	.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
	callq	_acpi_driver_data
	movq	%rax, %r14
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	(%r14), %edi
	movq	_SW_LID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, -32(%rbp)
	sete	%dl
	callq	_input_report_switch
	movl	(%r14), %edi
	callq	_input_sync
	movq	-32(%rbp), %rsi
	movq	_acpi_lid_notifier@GOTPCREL(%rip), %rdi
	movq	%r15, %rdx
	callq	_blocking_notifier_call_chain
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	movq	_acpi_lid_notifier@GOTPCREL(%rip), %rdi
	movq	%r15, %rdx
	callq	_blocking_notifier_call_chain
	movl	(%rbx), %ecx
LBB0_4:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %eax
	movl	%eax, %ebx
	cmovel	%esi, %ebx
	cmpl	%ecx, %eax
	cmovel	%esi, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_LID"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SW_LID,4,2                     ## @SW_LID
	.comm	_acpi_lid_notifier,4,2          ## @acpi_lid_notifier
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_acpi_lid_send_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_lid_send_state
_acpi_lid_send_state:                   ; @acpi_lid_send_state
	.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
	bl	_acpi_driver_data
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _SW_LID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SW_LID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w2, eq
	bl	_input_report_switch
	ldr	w0, [x20]
	bl	_input_sync
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x0, _acpi_lid_notifier@GOTPAGE
Lloh9:
	ldr	x0, [x0, _acpi_lid_notifier@GOTPAGEOFF]
	mov	x2, x19
	bl	_blocking_notifier_call_chain
Lloh10:
	adrp	x20, _NOTIFY_DONE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _NOTIFY_DONE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
Lloh12:
	adrp	x0, _acpi_lid_notifier@GOTPAGE
Lloh13:
	ldr	x0, [x0, _acpi_lid_notifier@GOTPAGEOFF]
	mov	x2, x19
	bl	_blocking_notifier_call_chain
	ldr	w8, [x20]
LBB0_4:
Lloh14:
	adrp	x9, _NOTIFY_OK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NOTIFY_OK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
	csel	w0, wzr, w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_LID"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SW_LID,4,2                     ; @SW_LID
	.comm	_acpi_lid_notifier,4,2          ; @acpi_lid_notifier
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_acpi_lid_send_state
.subsections_via_symbols
