	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wan_get_status
_wan_get_status:                        ## @wan_get_status
	.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	_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_1
## %bb.2:
	movq	_TP_ACPI_WANCARD_RADIOSSW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -4(%rbp)
	jne	LBB0_3
## %bb.4:
	movq	_TPACPI_RFK_RADIO_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_TPACPI_RFK_RADIO_ON@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GWAN"

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

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TP_ACPI_WANCARD_RADIOSSW,4,2   ## @TP_ACPI_WANCARD_RADIOSSW
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ## @TPACPI_RFK_RADIO_ON
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ## @TPACPI_RFK_RADIO_OFF
	.comm	_dbg_wwanemul,8,3               ## @dbg_wwanemul
	.comm	_tpacpi_wwan_emulstate,8,3      ## @tpacpi_wwan_emulstate
	.no_dead_strip	_wan_get_status
.subsections_via_symbols

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

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

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TP_ACPI_WANCARD_RADIOSSW,4,2   ; @TP_ACPI_WANCARD_RADIOSSW
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ; @TPACPI_RFK_RADIO_ON
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ; @TPACPI_RFK_RADIO_OFF
	.comm	_dbg_wwanemul,8,3               ; @dbg_wwanemul
	.comm	_tpacpi_wwan_emulstate,8,3      ; @tpacpi_wwan_emulstate
	.no_dead_strip	_wan_get_status
.subsections_via_symbols
