	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_handle_rfkill_irq     ## -- Begin function iwl_pcie_handle_rfkill_irq
	.p2align	4, 0x90
_iwl_pcie_handle_rfkill_irq:            ## @iwl_pcie_handle_rfkill_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	leaq	12(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_STATUS_RFKILL_OPMODE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_iwl_is_rfkill_set
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_STATUS_RFKILL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_2:
	cmpq	$0, (%r14)
	movl	%r12d, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_STATUS_RFKILL_OPMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	%eax, %r13d
LBB0_4:
	testl	%r12d, %r12d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_WARN
	incl	16(%r14)
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_iwl_trans_pcie_rf_kill
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.7:
	movq	_STATUS_SYNC_HCMD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_RF_KILL
LBB0_9:
	addq	$8, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_10:
	movq	_STATUS_RFKILL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.12:
	movq	_STATUS_RFKILL_OPMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_RFKILL_OPMODE,4,2       ## @STATUS_RFKILL_OPMODE
	.comm	_STATUS_RFKILL_HW,4,2           ## @STATUS_RFKILL_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RF_KILL bit toggled to %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"disable radio"

L_.str.2:                               ## @.str.2
	.asciz	"enable radio"

	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ## @STATUS_SYNC_HCMD_ACTIVE
L_.str.3:                               ## @.str.3
	.asciz	"Rfkill while SYNC HCMD in flight\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_handle_rfkill_irq     ; -- Begin function iwl_pcie_handle_rfkill_irq
	.p2align	2
_iwl_pcie_handle_rfkill_irq:            ; @iwl_pcie_handle_rfkill_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x25, _STATUS_RFKILL_OPMODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STATUS_RFKILL_OPMODE@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x19
	bl	_test_bit
	mov	x23, x0
	mov	x0, x19
	bl	_iwl_is_rfkill_set
	mov	x22, x0
Lloh2:
	adrp	x26, _STATUS_RFKILL_HW@GOTPAGE
Lloh3:
	ldr	x26, [x26, _STATUS_RFKILL_HW@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x25]
	mov	x1, x19
	bl	_set_bit
	ldr	w0, [x26]
	mov	x1, x19
	bl	_set_bit
LBB0_2:
	ldr	x8, [x20]
	mov	x24, x22
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x25]
	mov	x1, x19
	bl	_test_bit
	mov	x24, x0
LBB0_4:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x2, x9, x8, eq
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	cmp	w23, w24
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x24
	bl	_iwl_trans_pcie_rf_kill
LBB0_6:
	mov	x0, x21
	bl	_mutex_unlock
	cbz	w22, LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATUS_SYNC_HCMD_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RF_KILL
LBB0_9:
	add	x0, x20, #8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wake_up
LBB0_10:
	ldr	w0, [x26]
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x25]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_clear_bit
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_RFKILL_OPMODE,4,2       ; @STATUS_RFKILL_OPMODE
	.comm	_STATUS_RFKILL_HW,4,2           ; @STATUS_RFKILL_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RF_KILL bit toggled to %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"disable radio"

l_.str.2:                               ; @.str.2
	.asciz	"enable radio"

	.comm	_STATUS_SYNC_HCMD_ACTIVE,4,2    ; @STATUS_SYNC_HCMD_ACTIVE
l_.str.3:                               ; @.str.3
	.asciz	"Rfkill while SYNC HCMD in flight\n"

.subsections_via_symbols
