	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_get_wlsw
_hotkey_get_wlsw:                       ## @hotkey_get_wlsw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-4(%rbp), %rsi
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$0, -4(%rbp)
	jne	LBB0_6
## %bb.7:
	movq	_TPACPI_RFK_RADIO_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_TPACPI_RFK_RADIO_ON@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_features,4,2                ## @tp_features
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WLSW"

L_.str.1:                               ## @.str.1
	.asciz	"d"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ## @TPACPI_RFK_RADIO_ON
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ## @TPACPI_RFK_RADIO_OFF
	.comm	_dbg_wlswemul,8,3               ## @dbg_wlswemul
	.comm	_tpacpi_wlsw_emulstate,8,3      ## @tpacpi_wlsw_emulstate
	.no_dead_strip	_hotkey_get_wlsw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_get_wlsw
_hotkey_get_wlsw:                       ; @hotkey_get_wlsw
	.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
Lloh0:
	adrp	x8, _tp_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #4
	bl	_acpi_evalf
	cbz	w0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _TPACPI_RFK_RADIO_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TPACPI_RFK_RADIO_ON@GOTPAGEOFF]
	ldur	w9, [x29, #-4]
Lloh12:
	adrp	x10, _TPACPI_RFK_RADIO_OFF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TPACPI_RFK_RADIO_OFF@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_features,4,2                ; @tp_features
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WLSW"

l_.str.1:                               ; @.str.1
	.asciz	"d"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ; @TPACPI_RFK_RADIO_ON
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ; @TPACPI_RFK_RADIO_OFF
	.comm	_dbg_wlswemul,8,3               ; @dbg_wlswemul
	.comm	_tpacpi_wlsw_emulstate,8,3      ; @tpacpi_wlsw_emulstate
	.no_dead_strip	_hotkey_get_wlsw
.subsections_via_symbols
