	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_send_radiosw_update
_tpacpi_send_radiosw_update:            ## @tpacpi_send_radiosw_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_hotkey_get_wlsw
	movl	%eax, %ebx
	movq	_TPACPI_RFK_RADIO_OFF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_tpacpi_rfk_update_hwblock_state
LBB0_2:
	xorl	%eax, %eax
	callq	_tpacpi_rfk_update_swstate_all
	movq	_TPACPI_RFK_RADIO_ON@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_tpacpi_rfk_update_hwblock_state
LBB0_4:
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.5:
	movq	_tpacpi_inputdev_send_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_tpacpi_inputdev@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SW_RFKILL_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	callq	_input_report_switch
	movl	(%r15), %edi
	callq	_input_sync
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hotkey_radio_sw_notify_change  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ## @TPACPI_RFK_RADIO_OFF
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ## @TPACPI_RFK_RADIO_ON
	.comm	_tpacpi_inputdev_send_mutex,4,2 ## @tpacpi_inputdev_send_mutex
	.comm	_tpacpi_inputdev,4,2            ## @tpacpi_inputdev
	.comm	_SW_RFKILL_ALL,4,2              ## @SW_RFKILL_ALL
	.no_dead_strip	_tpacpi_send_radiosw_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_send_radiosw_update
_tpacpi_send_radiosw_update:            ; @tpacpi_send_radiosw_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_hotkey_get_wlsw
	mov	x19, x0
Lloh0:
	adrp	x8, _TPACPI_RFK_RADIO_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPACPI_RFK_RADIO_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_tpacpi_rfk_update_hwblock_state
LBB0_2:
	bl	_tpacpi_rfk_update_swstate_all
Lloh3:
	adrp	x8, _TPACPI_RFK_RADIO_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TPACPI_RFK_RADIO_ON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_tpacpi_rfk_update_hwblock_state
LBB0_4:
	tbnz	w19, #31, LBB0_6
; %bb.5:
Lloh6:
	adrp	x20, _tpacpi_inputdev_send_mutex@GOTPAGE
Lloh7:
	ldr	x20, [x20, _tpacpi_inputdev_send_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh8:
	adrp	x21, _tpacpi_inputdev@GOTPAGE
Lloh9:
	ldr	x21, [x21, _tpacpi_inputdev@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _SW_RFKILL_ALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SW_RFKILL_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	cmp	w19, #0
	cset	w2, ne
	bl	_input_report_switch
	ldr	w0, [x21]
	bl	_input_sync
	mov	x0, x20
	bl	_mutex_unlock
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hotkey_radio_sw_notify_change
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ; @TPACPI_RFK_RADIO_OFF
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ; @TPACPI_RFK_RADIO_ON
	.comm	_tpacpi_inputdev_send_mutex,4,2 ; @tpacpi_inputdev_send_mutex
	.comm	_tpacpi_inputdev,4,2            ; @tpacpi_inputdev
	.comm	_SW_RFKILL_ALL,4,2              ; @SW_RFKILL_ALL
	.no_dead_strip	_tpacpi_send_radiosw_update
.subsections_via_symbols
