	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_radio_kill_sw
_ipw_radio_kill_sw:                     ## @ipw_radio_kill_sw
	.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
	testl	%esi, %esi
	sete	%cl
	movq	_STATUS_RF_KILL_SW@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	setne	%dl
	xorl	%eax, %eax
	xorb	%cl, %dl
	jne	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_RF_KILL
	movl	(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	orl	%eax, (%r14)
	leaq	28(%r14), %rdi
	callq	_cancel_delayed_work
	leaq	24(%r14), %rdi
	callq	_cancel_delayed_work
	leaq	20(%r14), %rdi
	callq	_cancel_delayed_work
	leaq	16(%r14), %rdi
	callq	_cancel_delayed_work
	addq	$12, %r14
LBB0_6:
	movq	%r14, %rdi
	callq	_schedule_work
	jmp	LBB0_7
LBB0_3:
	notl	%eax
	andl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_rf_kill_active
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_RF_KILL
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_cancel_delayed_work
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	callq	_round_jiffies_relative
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_7:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addq	$4, %r14
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_RF_KILL_SW,4,2          ## @STATUS_RF_KILL_SW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Manual SW RF Kill set to: RADIO  %s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Can not turn radio back on - disabled by HW switch\n"

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ipw_radio_kill_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_radio_kill_sw
_ipw_radio_kill_sw:                     ; @ipw_radio_kill_sw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w1, #0
	cset	w8, eq
	ldr	w9, [x0]
Lloh0:
	adrp	x21, _STATUS_RF_KILL_SW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STATUS_RF_KILL_SW@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	cset	w9, ne
	eor	w8, w8, w9
	tbz	w8, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
	ldr	w8, [x21]
	cbz	w20, LBB0_5
; %bb.3:
	mov	x20, x19
	ldr	w9, [x20], #16
	orr	w8, w9, w8
	mov	x21, x19
	str	w8, [x21], #12
	add	x0, x19, #28
	bl	_cancel_delayed_work
	add	x0, x19, #24
	bl	_cancel_delayed_work
	add	x0, x19, #20
	bl	_cancel_delayed_work
	mov	x0, x20
	bl	_cancel_delayed_work
	mov	x0, x21
LBB0_4:
	bl	_schedule_work
	b	LBB0_7
LBB0_5:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_rf_kill_active
	cbz	x0, LBB0_9
; %bb.6:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
	add	x19, x19, #8
	mov	x0, x19
	bl	_cancel_delayed_work
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w0, w8, #1
	bl	_round_jiffies_relative
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	add	x0, x19, #4
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_RF_KILL_SW,4,2          ; @STATUS_RF_KILL_SW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Manual SW RF Kill set to: RADIO  %s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Can not turn radio back on - disabled by HW switch\n"

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ipw_radio_kill_sw
.subsections_via_symbols
