	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_wireless_state_ec_standard
_get_wireless_state_ec_standard:        ## @get_wireless_state_ec_standard
	.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	_MSI_STANDARD_EC_COMMAND_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-4(%rbp), %rsi
	callq	_ec_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-4(%rbp), %eax
	movq	_MSI_STANDARD_EC_WLAN_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movq	_wlan_s@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movq	_MSI_STANDARD_EC_BLUETOOTH_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movq	_bluetooth_s@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movq	_MSI_STANDARD_EC_3G_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movq	_threeg_s@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	xorl	%eax, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSI_STANDARD_EC_COMMAND_ADDRESS,4,2 ## @MSI_STANDARD_EC_COMMAND_ADDRESS
	.comm	_MSI_STANDARD_EC_WLAN_MASK,4,2  ## @MSI_STANDARD_EC_WLAN_MASK
	.comm	_wlan_s,4,2                     ## @wlan_s
	.comm	_MSI_STANDARD_EC_BLUETOOTH_MASK,4,2 ## @MSI_STANDARD_EC_BLUETOOTH_MASK
	.comm	_bluetooth_s,4,2                ## @bluetooth_s
	.comm	_MSI_STANDARD_EC_3G_MASK,4,2    ## @MSI_STANDARD_EC_3G_MASK
	.comm	_threeg_s,4,2                   ## @threeg_s
	.no_dead_strip	_get_wireless_state_ec_standard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_wireless_state_ec_standard
_get_wireless_state_ec_standard:        ; @get_wireless_state_ec_standard
	.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, _MSI_STANDARD_EC_COMMAND_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSI_STANDARD_EC_COMMAND_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x1, x29, #4
	bl	_ec_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _MSI_STANDARD_EC_WLAN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSI_STANDARD_EC_WLAN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
Lloh6:
	adrp	x9, _wlan_s@GOTPAGE
Lloh7:
	ldr	x9, [x9, _wlan_s@GOTPAGEOFF]
	cset	w10, ne
Lloh8:
	str	w10, [x9]
Lloh9:
	adrp	x9, _MSI_STANDARD_EC_BLUETOOTH_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSI_STANDARD_EC_BLUETOOTH_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh12:
	adrp	x10, _bluetooth_s@GOTPAGE
Lloh13:
	ldr	x10, [x10, _bluetooth_s@GOTPAGEOFF]
Lloh14:
	str	w9, [x10]
Lloh15:
	adrp	x9, _MSI_STANDARD_EC_3G_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSI_STANDARD_EC_3G_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
Lloh18:
	adrp	x9, _threeg_s@GOTPAGE
Lloh19:
	ldr	x9, [x9, _threeg_s@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSI_STANDARD_EC_COMMAND_ADDRESS,4,2 ; @MSI_STANDARD_EC_COMMAND_ADDRESS
	.comm	_MSI_STANDARD_EC_WLAN_MASK,4,2  ; @MSI_STANDARD_EC_WLAN_MASK
	.comm	_wlan_s,4,2                     ; @wlan_s
	.comm	_MSI_STANDARD_EC_BLUETOOTH_MASK,4,2 ; @MSI_STANDARD_EC_BLUETOOTH_MASK
	.comm	_bluetooth_s,4,2                ; @bluetooth_s
	.comm	_MSI_STANDARD_EC_3G_MASK,4,2    ; @MSI_STANDARD_EC_3G_MASK
	.comm	_threeg_s,4,2                   ; @threeg_s
	.no_dead_strip	_get_wireless_state_ec_standard
.subsections_via_symbols
