	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_rf_kill
_ipw_rf_kill:                           ## @ipw_rf_kill
	.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, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_rf_kill_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_RF_KILL
	addq	$12, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
	jmp	LBB0_5
LBB0_2:
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_IPW_DEBUG_RF_KILL
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_RF_KILL
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RF Kill active, rescheduling GPIO check\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
L_.str.1:                               ## @.str.1
	.asciz	"HW RF Kill no longer active, restarting device\n"

L_.str.2:                               ## @.str.2
	.asciz	"HW RF Kill deactivated.  SW RF Kill still enabled\n"

	.no_dead_strip	_ipw_rf_kill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_rf_kill
_ipw_rf_kill:                           ; @ipw_rf_kill
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_rf_kill_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
	add	x0, x20, #12
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	bl	_schedule_delayed_work
	b	LBB0_5
LBB0_2:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
	add	x0, x20, #8
	bl	_schedule_work
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RF Kill active, rescheduling GPIO check\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
l_.str.1:                               ; @.str.1
	.asciz	"HW RF Kill no longer active, restarting device\n"

l_.str.2:                               ; @.str.2
	.asciz	"HW RF Kill deactivated.  SW RF Kill still enabled\n"

	.no_dead_strip	_ipw_rf_kill
.subsections_via_symbols
