	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_enable_rfkill_int
_iwl_enable_rfkill_int:                 ## @iwl_enable_rfkill_int
	.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
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_ISR
	cmpl	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	movq	_CSR_MSIX_FH_INT_MASK_AD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_iwl_write32
	movq	_MSIX_HW_INT_CAUSES_REG_RF_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_enable_hw_int_msk_msix
	jmp	LBB0_3
LBB0_1:
	movq	_CSR_INT_BIT_RF_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 4(%r14)
	movq	_CSR_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_write32
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_9000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_CSR_GP_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_set_bit                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling rfkill interrupt\n"

	.comm	_CSR_INT_BIT_RF_KILL,4,2        ## @CSR_INT_BIT_RF_KILL
	.comm	_CSR_INT_MASK,4,2               ## @CSR_INT_MASK
	.comm	_CSR_MSIX_FH_INT_MASK_AD,4,2    ## @CSR_MSIX_FH_INT_MASK_AD
	.comm	_MSIX_HW_INT_CAUSES_REG_RF_KILL,4,2 ## @MSIX_HW_INT_CAUSES_REG_RF_KILL
	.comm	_IWL_DEVICE_FAMILY_9000,8,3     ## @IWL_DEVICE_FAMILY_9000
	.comm	_CSR_GP_CNTRL,4,2               ## @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN,4,2 ## @CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN
	.no_dead_strip	_iwl_enable_rfkill_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_enable_rfkill_int
_iwl_enable_rfkill_int:                 ; @iwl_enable_rfkill_int
	.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	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_ISR
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CSR_MSIX_FH_INT_MASK_AD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_MSIX_FH_INT_MASK_AD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_iwl_write32
Lloh5:
	adrp	x8, _MSIX_HW_INT_CAUSES_REG_RF_KILL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSIX_HW_INT_CAUSES_REG_RF_KILL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_enable_hw_int_msk_msix
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _CSR_INT_BIT_RF_KILL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_INT_BIT_RF_KILL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	str	w2, [x20, #4]
Lloh11:
	adrp	x8, _CSR_INT_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_INT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_write32
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _IWL_DEVICE_FAMILY_9000@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_9000@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x8, _CSR_GP_CNTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CSR_GP_CNTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_set_bit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling rfkill interrupt\n"

	.comm	_CSR_INT_BIT_RF_KILL,4,2        ; @CSR_INT_BIT_RF_KILL
	.comm	_CSR_INT_MASK,4,2               ; @CSR_INT_MASK
	.comm	_CSR_MSIX_FH_INT_MASK_AD,4,2    ; @CSR_MSIX_FH_INT_MASK_AD
	.comm	_MSIX_HW_INT_CAUSES_REG_RF_KILL,4,2 ; @MSIX_HW_INT_CAUSES_REG_RF_KILL
	.comm	_IWL_DEVICE_FAMILY_9000,8,3     ; @IWL_DEVICE_FAMILY_9000
	.comm	_CSR_GP_CNTRL,4,2               ; @CSR_GP_CNTRL
	.comm	_CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN,4,2 ; @CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN
	.no_dead_strip	_iwl_enable_rfkill_int
.subsections_via_symbols
