	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uwb_set_status
_uwb_set_status:                        ## @uwb_set_status
	.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
	movl	%edi, %ebx
	movq	_TPACPI_DBG_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TPACPI_RFK_RADIO_ON@GOTPCREL(%rip), %r15
	cmpl	%ebx, (%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_vdbg_printk
	xorl	%r14d, %r14d
	movl	$0, %r8d
	cmpl	%ebx, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_TP_ACPI_UWB_RADIOSSW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_2:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	xorl	%esi, %esi
	callq	_acpi_evalf
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%r14d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPACPI_DBG_RFKILL,4,2          ## @TPACPI_DBG_RFKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"will attempt to %s UWB\n"

	.comm	_TPACPI_RFK_RADIO_ON,4,2        ## @TPACPI_RFK_RADIO_ON
L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.comm	_TP_ACPI_UWB_RADIOSSW,4,2       ## @TP_ACPI_UWB_RADIOSSW
	.comm	_hkey_handle,4,2                ## @hkey_handle
L_.str.3:                               ## @.str.3
	.asciz	"SUWB"

L_.str.4:                               ## @.str.4
	.asciz	"vd"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_dbg_uwbemul,8,3                ## @dbg_uwbemul
	.comm	_tpacpi_uwb_emulstate,4,2       ## @tpacpi_uwb_emulstate
	.no_dead_strip	_uwb_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uwb_set_status
_uwb_set_status:                        ; @uwb_set_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _TPACPI_DBG_RFKILL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPACPI_DBG_RFKILL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _TPACPI_RFK_RADIO_ON@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TPACPI_RFK_RADIO_ON@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh7:
	adrp	x10, l_.str.1@PAGE
Lloh8:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x2, x10, x9, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vdbg_printk
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _TP_ACPI_UWB_RADIOSSW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TP_ACPI_UWB_RADIOSSW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w4, w9, wzr, eq
Lloh14:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh19:
	adrp	x3, l_.str.4@PAGE
Lloh20:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x1, #0
	bl	_acpi_evalf
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TPACPI_DBG_RFKILL,4,2          ; @TPACPI_DBG_RFKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"will attempt to %s UWB\n"

	.comm	_TPACPI_RFK_RADIO_ON,4,2        ; @TPACPI_RFK_RADIO_ON
l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.comm	_TP_ACPI_UWB_RADIOSSW,4,2       ; @TP_ACPI_UWB_RADIOSSW
	.comm	_hkey_handle,4,2                ; @hkey_handle
l_.str.3:                               ; @.str.3
	.asciz	"SUWB"

l_.str.4:                               ; @.str.4
	.asciz	"vd"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_dbg_uwbemul,8,3                ; @dbg_uwbemul
	.comm	_tpacpi_uwb_emulstate,4,2       ; @tpacpi_uwb_emulstate
	.no_dead_strip	_uwb_set_status
.subsections_via_symbols
