	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AMW0_set_u32
_AMW0_set_u32:                          ## @AMW0_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
	subq	$32, %rsp
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edi, %eax
	xorl	%ecx, %ecx
	testl	%edi, %edi
	setne	%dl
	movq	_ACER_AMW0_WRITE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, -8(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -24(%rbp)
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_12
## %bb.1:
	movb	%dl, %cl
	shll	$8, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_6:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.7:
	movq	_ACER_AMW0_WIRELESS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_max_brightness@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_3
## %bb.11:
	movl	$131, %edi
	movl	%eax, %esi
	addq	$32, %rsp
	popq	%rbp
	jmp	_ec_write                       ## TAILCALL
LBB0_8:
	cmpl	$2, %eax
	jge	LBB0_3
## %bb.9:
	movq	_ACER_AMW0_BLUETOOTH_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	cmpl	$2, %eax
	jl	LBB0_4
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_4:
	movq	_ACER_AMW0_MAILLED_MASK@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_wmab_execute
LBB0_14:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_ACER_AMW0_WRITE,4,2            ## @ACER_AMW0_WRITE
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACER_AMW0_MAILLED_MASK,4,2     ## @ACER_AMW0_MAILLED_MASK
	.comm	_ACER_AMW0_WIRELESS_MASK,4,2    ## @ACER_AMW0_WIRELESS_MASK
	.comm	_ACER_AMW0_BLUETOOTH_MASK,4,2   ## @ACER_AMW0_BLUETOOTH_MASK
	.comm	_max_brightness,4,2             ## @max_brightness
	.comm	_quirks,8,3                     ## @quirks
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.no_dead_strip	_AMW0_set_u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AMW0_set_u32
_AMW0_set_u32:                          ; @AMW0_set_u32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	cmp	w0, #0
	cset	w9, ne
Lloh0:
	adrp	x10, _ACER_AMW0_WRITE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ACER_AMW0_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	str	w10, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	sub	w10, w1, #128
	cmp	w10, #3
	b.hi	LBB0_8
; %bb.1:
	mov	x8, x0
	lsl	w9, w9, #8
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	cmp	w8, #2
	b.ge	LBB0_10
; %bb.3:
Lloh5:
	adrp	x8, _ACER_AMW0_WIRELESS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACER_AMW0_WIRELESS_MASK@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh7:
	adrp	x9, _max_brightness@GOTPAGE
Lloh8:
	ldr	x9, [x9, _max_brightness@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w8
	b.lt	LBB0_10
; %bb.5:
	mov	w0, #131
	mov	x1, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ec_write
LBB0_6:
	cmp	w8, #2
	b.ge	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _ACER_AMW0_BLUETOOTH_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACER_AMW0_BLUETOOTH_MASK@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	cmp	w8, #2
	b.lt	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x8, _ACER_AMW0_MAILLED_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACER_AMW0_MAILLED_MASK@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [sp]
	mov	x0, sp
	mov	x1, #0
	bl	_wmab_execute
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ACER_AMW0_WRITE,4,2            ; @ACER_AMW0_WRITE
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACER_AMW0_MAILLED_MASK,4,2     ; @ACER_AMW0_MAILLED_MASK
	.comm	_ACER_AMW0_WIRELESS_MASK,4,2    ; @ACER_AMW0_WIRELESS_MASK
	.comm	_ACER_AMW0_BLUETOOTH_MASK,4,2   ; @ACER_AMW0_BLUETOOTH_MASK
	.comm	_max_brightness,4,2             ; @max_brightness
	.comm	_quirks,8,3                     ; @quirks
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.no_dead_strip	_AMW0_set_u32
.subsections_via_symbols
