	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_backlight_notify
_asus_wmi_backlight_notify:             ## @asus_wmi_backlight_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movl	(%rbx), %r14d
	movq	_NOTIFY_BRNUP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jg	LBB0_3
## %bb.1:
	movq	_NOTIFY_BRNUP_MAX@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_3
## %bb.2:
	subl	%eax, %esi
	incl	%esi
	movl	%esi, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_NOTIFY_BRNDOWN_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movq	_NOTIFY_BRNDOWN_MAX@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	cmovll	%r14d, %eax
	cmpl	%ecx, %esi
	cmovll	%r14d, %eax
LBB0_4:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_backlight_update_status
	movq	_BACKLIGHT_UPDATE_HOTKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_backlight_force_update
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOTIFY_BRNUP_MIN,4,2           ## @NOTIFY_BRNUP_MIN
	.comm	_NOTIFY_BRNUP_MAX,4,2           ## @NOTIFY_BRNUP_MAX
	.comm	_NOTIFY_BRNDOWN_MIN,4,2         ## @NOTIFY_BRNDOWN_MIN
	.comm	_NOTIFY_BRNDOWN_MAX,4,2         ## @NOTIFY_BRNDOWN_MAX
	.comm	_BACKLIGHT_UPDATE_HOTKEY,4,2    ## @BACKLIGHT_UPDATE_HOTKEY
	.no_dead_strip	_asus_wmi_backlight_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_backlight_notify
_asus_wmi_backlight_notify:             ; @asus_wmi_backlight_notify
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w19, [x20]
Lloh0:
	adrp	x8, _NOTIFY_BRNUP_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOTIFY_BRNUP_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NOTIFY_BRNUP_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NOTIFY_BRNUP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _NOTIFY_BRNDOWN_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOTIFY_BRNDOWN_MIN@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NOTIFY_BRNDOWN_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NOTIFY_BRNDOWN_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	sub	w10, w1, w8
	cmp	w9, w1
	ccmp	w1, w8, #8, ge
	csel	w8, w19, w10, lt
	b	LBB0_3
LBB0_2:
	sub	w8, w1, w8
	add	w8, w8, #1
LBB0_3:
	str	w8, [x20]
	mov	x0, x20
	bl	_backlight_update_status
Lloh12:
	adrp	x8, _BACKLIGHT_UPDATE_HOTKEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BACKLIGHT_UPDATE_HOTKEY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_backlight_force_update
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NOTIFY_BRNUP_MIN,4,2           ; @NOTIFY_BRNUP_MIN
	.comm	_NOTIFY_BRNUP_MAX,4,2           ; @NOTIFY_BRNUP_MAX
	.comm	_NOTIFY_BRNDOWN_MIN,4,2         ; @NOTIFY_BRNDOWN_MIN
	.comm	_NOTIFY_BRNDOWN_MAX,4,2         ; @NOTIFY_BRNDOWN_MAX
	.comm	_BACKLIGHT_UPDATE_HOTKEY,4,2    ; @BACKLIGHT_UPDATE_HOTKEY
	.no_dead_strip	_asus_wmi_backlight_notify
.subsections_via_symbols
