	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_video_device_notify
_acpi_video_device_notify:              ## @acpi_video_device_notify
	.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
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.1:
	movl	%esi, %r12d
	movq	8(%rdx), %r15
	leal	-128(%r12), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.2:
	movq	(%rdx), %rcx
	movq	(%rcx), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_brightness_switch_enabled@GOTPCREL(%rip), %rax
	movq	_KEY_BRIGHTNESS_ZERO@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.10:
	movl	$128, %esi
	jmp	LBB0_15
LBB0_13:
	movl	%r12d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_notifier_call_chain       ## TAILCALL
LBB0_5:
	movq	_brightness_switch_enabled@GOTPCREL(%rip), %rax
	movq	_KEY_BRIGHTNESSUP@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.6:
	movl	$129, %esi
	jmp	LBB0_15
LBB0_11:
	movq	_brightness_switch_enabled@GOTPCREL(%rip), %rax
	movq	_KEY_DISPLAY_OFF@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	movl	$130, %esi
	jmp	LBB0_15
LBB0_7:
	movq	_brightness_switch_enabled@GOTPCREL(%rip), %rax
	movq	_KEY_BRIGHTNESSDOWN@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.8:
	movl	$131, %esi
	jmp	LBB0_15
LBB0_3:
	movq	_brightness_switch_enabled@GOTPCREL(%rip), %rax
	movq	_KEY_BRIGHTNESS_CYCLE@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_14:
	movq	%rdx, %rdi
	movl	%r12d, %esi
	callq	_acpi_video_switch_brightness
	movl	%r12d, %esi
LBB0_15:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_acpi_bus_generate_proc_event
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_acpi_notifier_call_chain
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.17:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$132, %esi
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_brightness_switch_enabled,4,2  ## @brightness_switch_enabled
	.comm	_KEY_BRIGHTNESS_CYCLE,4,2       ## @KEY_BRIGHTNESS_CYCLE
	.comm	_KEY_BRIGHTNESSUP,4,2           ## @KEY_BRIGHTNESSUP
	.comm	_KEY_BRIGHTNESSDOWN,4,2         ## @KEY_BRIGHTNESSDOWN
	.comm	_KEY_BRIGHTNESS_ZERO,4,2        ## @KEY_BRIGHTNESS_ZERO
	.comm	_KEY_DISPLAY_OFF,4,2            ## @KEY_DISPLAY_OFF
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.no_dead_strip	_acpi_video_device_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_video_device_notify
_acpi_video_device_notify:              ; @acpi_video_device_notify
	.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
	cbz	x2, LBB0_16
; %bb.1:
	mov	x20, x1
	ldr	x21, [x2, #8]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.2:
	ldr	x9, [x2]
	ldr	x19, [x9]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _brightness_switch_enabled@GOTPAGE
Lloh3:
	ldr	x8, [x8, _brightness_switch_enabled@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _KEY_BRIGHTNESS_ZERO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _KEY_BRIGHTNESS_ZERO@GOTPAGEOFF]
	cbnz	w8, LBB0_13
; %bb.4:
	mov	w1, #128
	b	LBB0_14
LBB0_5:
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	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
	b	_acpi_notifier_call_chain
LBB0_6:
Lloh7:
	adrp	x8, _brightness_switch_enabled@GOTPAGE
Lloh8:
	ldr	x8, [x8, _brightness_switch_enabled@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x22, _KEY_BRIGHTNESSUP@GOTPAGE
Lloh11:
	ldr	x22, [x22, _KEY_BRIGHTNESSUP@GOTPAGEOFF]
	cbnz	w8, LBB0_13
; %bb.7:
	mov	w1, #129
	b	LBB0_14
LBB0_8:
Lloh12:
	adrp	x8, _brightness_switch_enabled@GOTPAGE
Lloh13:
	ldr	x8, [x8, _brightness_switch_enabled@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x22, _KEY_DISPLAY_OFF@GOTPAGE
Lloh16:
	ldr	x22, [x22, _KEY_DISPLAY_OFF@GOTPAGEOFF]
	cbnz	w8, LBB0_13
; %bb.9:
	mov	w1, #130
	b	LBB0_14
LBB0_10:
Lloh17:
	adrp	x8, _brightness_switch_enabled@GOTPAGE
Lloh18:
	ldr	x8, [x8, _brightness_switch_enabled@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x22, _KEY_BRIGHTNESSDOWN@GOTPAGE
Lloh21:
	ldr	x22, [x22, _KEY_BRIGHTNESSDOWN@GOTPAGEOFF]
	cbnz	w8, LBB0_13
; %bb.11:
	mov	w1, #131
	b	LBB0_14
LBB0_12:
Lloh22:
	adrp	x8, _brightness_switch_enabled@GOTPAGE
Lloh23:
	ldr	x8, [x8, _brightness_switch_enabled@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x22, _KEY_BRIGHTNESS_CYCLE@GOTPAGE
Lloh26:
	ldr	x22, [x22, _KEY_BRIGHTNESS_CYCLE@GOTPAGEOFF]
	cbz	w8, LBB0_17
LBB0_13:
	mov	x0, x2
	mov	x1, x20
	bl	_acpi_video_switch_brightness
	mov	x1, x20
LBB0_14:
	mov	x0, x21
	mov	w2, #0
	bl	_acpi_bus_generate_proc_event
	ldr	w22, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_acpi_notifier_call_chain
	cbz	w22, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_input_report_key
	mov	x0, x19
	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
	b	_input_sync
LBB0_16:
	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_17:
	mov	w1, #132
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_brightness_switch_enabled,4,2  ; @brightness_switch_enabled
	.comm	_KEY_BRIGHTNESS_CYCLE,4,2       ; @KEY_BRIGHTNESS_CYCLE
	.comm	_KEY_BRIGHTNESSUP,4,2           ; @KEY_BRIGHTNESSUP
	.comm	_KEY_BRIGHTNESSDOWN,4,2         ; @KEY_BRIGHTNESSDOWN
	.comm	_KEY_BRIGHTNESS_ZERO,4,2        ; @KEY_BRIGHTNESS_ZERO
	.comm	_KEY_DISPLAY_OFF,4,2            ; @KEY_DISPLAY_OFF
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.no_dead_strip	_acpi_video_device_notify
.subsections_via_symbols
