	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_set_hw_rfkill_state
_iwl_mvm_set_hw_rfkill_state:           ## @iwl_mvm_set_hw_rfkill_state
	.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
	movl	%esi, %r14d
	callq	_IWL_OP_MODE_GET_MVM
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_READ_ONCE
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_iwl_mvm_has_unified_ucode
	movl	%eax, %r12d
	movq	%rbx, %rsi
	addq	$4, %rsi
	movq	_IWL_MVM_STATUS_HW_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	callq	_set_bit
	jmp	LBB0_3
LBB0_2:
	callq	_clear_bit
LBB0_3:
	movq	%rbx, %rdi
	callq	_iwl_mvm_set_rfkill_state
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_iwl_abort_notification_waits
LBB0_5:
	testl	%r15d, %r15d
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	testl	%r12d, %r12d
	sete	%dl
	andb	%cl, %dl
	andb	%al, %dl
	movzbl	%dl, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_STATUS_HW_RFKILL,4,2   ## @IWL_MVM_STATUS_HW_RFKILL
	.no_dead_strip	_iwl_mvm_set_hw_rfkill_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_set_hw_rfkill_state
_iwl_mvm_set_hw_rfkill_state:           ; @iwl_mvm_set_hw_rfkill_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_IWL_OP_MODE_GET_MVM
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_READ_ONCE
	mov	x21, x0
	mov	x0, x20
	bl	_iwl_mvm_has_unified_ucode
	mov	x22, x0
Lloh0:
	adrp	x8, _IWL_MVM_STATUS_HW_RFKILL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_STATUS_HW_RFKILL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #4
	cbz	w19, LBB0_2
; %bb.1:
	bl	_set_bit
	b	LBB0_3
LBB0_2:
	bl	_clear_bit
LBB0_3:
	mov	x0, x20
	bl	_iwl_mvm_set_rfkill_state
	cbz	w21, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_iwl_abort_notification_waits
LBB0_5:
	cmp	w19, #0
	ccmp	w22, #0, #0, ne
	ccmp	w21, #0, #4, eq
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_STATUS_HW_RFKILL,4,2   ; @IWL_MVM_STATUS_HW_RFKILL
	.no_dead_strip	_iwl_mvm_set_hw_rfkill_state
.subsections_via_symbols
