	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WMID_set_u32
_WMID_set_u32:                          ## @WMID_set_u32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_16
## %bb.1:
	movl	%edi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_4:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.5:
	movq	_ACER_WMID_SET_WIRELESS_METHODID@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_6:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.7:
	movq	_ACER_WMID_SET_BLUETOOTH_METHODID@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.9:
	movq	_ACER_WMID_SET_THREEG_METHODID@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_10:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.11:
	movq	_quirks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpl	$1, (%rcx)
	jne	LBB0_15
## %bb.12:
	testl	%eax, %eax
	sete	%al
	orb	$-110, %al
	movb	%al, -9(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_i8042_lock_chip
	leaq	-9(%rbp), %rdi
	movl	$4185, %esi                     ## imm = 0x1059
	callq	_i8042_command
	xorl	%eax, %eax
	callq	_i8042_unlock_chip
	jmp	LBB0_18
LBB0_2:
	movq	_max_brightness@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_13
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movq	_ACER_WMID_SET_BRIGHTNESS_METHODID@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %edi
LBB0_15:
	movl	%eax, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WMI_execute_u32                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_max_brightness,4,2             ## @max_brightness
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACER_WMID_SET_BRIGHTNESS_METHODID,4,2 ## @ACER_WMID_SET_BRIGHTNESS_METHODID
	.comm	_ACER_WMID_SET_WIRELESS_METHODID,4,2 ## @ACER_WMID_SET_WIRELESS_METHODID
	.comm	_ACER_WMID_SET_BLUETOOTH_METHODID,4,2 ## @ACER_WMID_SET_BLUETOOTH_METHODID
	.comm	_ACER_WMID_SET_THREEG_METHODID,4,2 ## @ACER_WMID_SET_THREEG_METHODID
	.comm	_quirks,8,3                     ## @quirks
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.no_dead_strip	_WMID_set_u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WMID_set_u32
_WMID_set_u32:                          ; @WMID_set_u32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	sub	w9, w1, #128
	cmp	w9, #4
	b.hi	LBB0_6
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	cmp	w8, #2
	b.ge	LBB0_13
; %bb.3:
Lloh2:
	adrp	x9, _ACER_WMID_SET_WIRELESS_METHODID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACER_WMID_SET_WIRELESS_METHODID@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	cmp	w8, #2
	b.ge	LBB0_13
; %bb.5:
Lloh4:
	adrp	x9, _ACER_WMID_SET_BLUETOOTH_METHODID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ACER_WMID_SET_BLUETOOTH_METHODID@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
Lloh6:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	cmp	w8, #2
	b.ge	LBB0_13
; %bb.8:
Lloh8:
	adrp	x9, _ACER_WMID_SET_THREEG_METHODID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACER_WMID_SET_THREEG_METHODID@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	cmp	w8, #2
	b.ge	LBB0_13
; %bb.10:
Lloh10:
	adrp	x9, _quirks@GOTPAGE
Lloh11:
	ldr	x9, [x9, _quirks@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_19
; %bb.11:
	cmp	w8, #0
	mov	w8, #-110
	cinc	w8, w8, eq
	sturb	w8, [x29, #-1]
	bl	_i8042_lock_chip
	sub	x0, x29, #1
	mov	w1, #4185
	bl	_i8042_command
	bl	_i8042_unlock_chip
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh13:
	adrp	x9, _max_brightness@GOTPAGE
Lloh14:
	ldr	x9, [x9, _max_brightness@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ge	LBB0_16
LBB0_13:
Lloh16:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_16:
Lloh18:
	adrp	x9, _ACER_WMID_SET_BRIGHTNESS_METHODID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ACER_WMID_SET_BRIGHTNESS_METHODID@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x9]
LBB0_18:
	mov	x1, x8
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_WMI_execute_u32
LBB0_19:
	mov	w0, #0
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_max_brightness,4,2             ; @max_brightness
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACER_WMID_SET_BRIGHTNESS_METHODID,4,2 ; @ACER_WMID_SET_BRIGHTNESS_METHODID
	.comm	_ACER_WMID_SET_WIRELESS_METHODID,4,2 ; @ACER_WMID_SET_WIRELESS_METHODID
	.comm	_ACER_WMID_SET_BLUETOOTH_METHODID,4,2 ; @ACER_WMID_SET_BLUETOOTH_METHODID
	.comm	_ACER_WMID_SET_THREEG_METHODID,4,2 ; @ACER_WMID_SET_THREEG_METHODID
	.comm	_quirks,8,3                     ; @quirks
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.no_dead_strip	_WMID_set_u32
.subsections_via_symbols
