	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WMID_get_u32
_WMID_get_u32:                          ## @WMID_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_ACER_WMID_GET_WIRELESS_METHODID@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_ACER_WMID_GET_THREEG_METHODID@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ACER_WMID_GET_BLUETOOTH_METHODID@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_quirks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	-24(%rbp), %rsi
	movl	$159, %edi
	callq	_ec_read
	movl	-24(%rbp), %eax
	andl	$1, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ACER_WMID_GET_BRIGHTNESS_METHODID@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	leaq	-20(%rbp), %rdx
	xorl	%esi, %esi
	callq	_WMI_execute_u32
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-20(%rbp), %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_ACER_WMID_GET_WIRELESS_METHODID,4,2 ## @ACER_WMID_GET_WIRELESS_METHODID
	.comm	_ACER_WMID_GET_BLUETOOTH_METHODID,4,2 ## @ACER_WMID_GET_BLUETOOTH_METHODID
	.comm	_ACER_WMID_GET_BRIGHTNESS_METHODID,4,2 ## @ACER_WMID_GET_BRIGHTNESS_METHODID
	.comm	_ACER_WMID_GET_THREEG_METHODID,4,2 ## @ACER_WMID_GET_THREEG_METHODID
	.comm	_quirks,8,3                     ## @quirks
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.no_dead_strip	_WMID_get_u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WMID_get_u32
_WMID_get_u32:                          ; @WMID_get_u32
	.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
	sub	w9, w1, #128
	cmp	w9, #4
	b.hi	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ACER_WMID_GET_WIRELESS_METHODID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACER_WMID_GET_WIRELESS_METHODID@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _ACER_WMID_GET_THREEG_METHODID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ACER_WMID_GET_THREEG_METHODID@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _ACER_WMID_GET_BLUETOOTH_METHODID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACER_WMID_GET_BLUETOOTH_METHODID@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _quirks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _quirks@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	w0, #159
	bl	_ec_read
	mov	w20, #0
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _ACER_WMID_GET_BRIGHTNESS_METHODID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACER_WMID_GET_BRIGHTNESS_METHODID@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_WMI_execute_u32
	mov	x20, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [sp, #8]
LBB0_10:
	str	w8, [x19]
LBB0_11:
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_ACER_WMID_GET_WIRELESS_METHODID,4,2 ; @ACER_WMID_GET_WIRELESS_METHODID
	.comm	_ACER_WMID_GET_BLUETOOTH_METHODID,4,2 ; @ACER_WMID_GET_BLUETOOTH_METHODID
	.comm	_ACER_WMID_GET_BRIGHTNESS_METHODID,4,2 ; @ACER_WMID_GET_BRIGHTNESS_METHODID
	.comm	_ACER_WMID_GET_THREEG_METHODID,4,2 ; @ACER_WMID_GET_THREEG_METHODID
	.comm	_quirks,8,3                     ; @quirks
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.no_dead_strip	_WMID_get_u32
.subsections_via_symbols
