	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_rfk_hook_set_block
_tpacpi_rfk_hook_set_block:             ## @tpacpi_rfk_hook_set_block
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_TPACPI_DBG_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	_TPACPI_RFK_RADIO_OFF@GOTPCREL(%rip), %rbx
	cmoveq	_TPACPI_RFK_RADIO_ON@GOTPCREL(%rip), %rbx
	callq	_dbg_printk
	movq	(%r14), %rax
	movl	(%rbx), %edi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_tpacpi_rfk_update_swstate
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	popq	%rbx
	popq	%r14
	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	"request to change radio state to %s\n"

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

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

	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ## @TPACPI_RFK_RADIO_OFF
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ## @TPACPI_RFK_RADIO_ON
	.no_dead_strip	_tpacpi_rfk_hook_set_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_rfk_hook_set_block
_tpacpi_rfk_hook_set_block:             ; @tpacpi_rfk_hook_set_block
	.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	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x2, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
Lloh9:
	adrp	x8, _TPACPI_RFK_RADIO_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPACPI_RFK_RADIO_OFF@GOTPAGEOFF]
Lloh11:
	adrp	x9, _TPACPI_RFK_RADIO_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TPACPI_RFK_RADIO_ON@GOTPAGEOFF]
	csel	x20, x9, x8, eq
	bl	_dbg_printk
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x20]
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_tpacpi_rfk_update_swstate
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	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	"request to change radio state to %s\n"

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

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

	.comm	_TPACPI_RFK_RADIO_OFF,4,2       ; @TPACPI_RFK_RADIO_OFF
	.comm	_TPACPI_RFK_RADIO_ON,4,2        ; @TPACPI_RFK_RADIO_ON
	.no_dead_strip	_tpacpi_rfk_hook_set_block
.subsections_via_symbols
