	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	sete	%cl
	movq	_STATUS_RF_KILL_SW@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rdi)
	setne	%dl
	xorl	%eax, %eax
	xorb	%cl, %dl
	jne	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	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
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	orl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_ipw2100_down
	jmp	LBB0_6
LBB0_3:
	notl	%eax
	andl	%eax, (%r15)
	movq	%r15, %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
	movq	$0, 16(%r15)
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addq	$8, %r15
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_round_jiffies_relative
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_mod_delayed_work
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_schedule_reset
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_system_wq,4,2                  ## @system_wq
	.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	x22, _STATUS_RF_KILL_SW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STATUS_RF_KILL_SW@GOTPAGEOFF]
	ldr	w10, [x22]
	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	x21, x1
	mov	x20, 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
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x22]
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_ipw2100_down
	b	LBB0_7
LBB0_4:
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_rf_kill_active
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_RF_KILL
Lloh10:
	adrp	x8, _system_wq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
	str	xzr, [x20, #16]
Lloh12:
	ldr	w21, [x8]
	add	x20, x20, #8
Lloh13:
	adrp	x8, _HZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_round_jiffies_relative
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_mod_delayed_work
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_schedule_reset
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_system_wq,4,2                  ; @system_wq
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ipw_radio_kill_sw
.subsections_via_symbols
