	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322_free_irq
_qib_7322_free_irq:                     ## @qib_7322_free_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	$-1, (%rax)
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	8(%rax), %rcx
	addq	$16, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rcx
	cmpq	$0, (%rcx,%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
	movq	8(%r14), %rax
	movq	16(%rax), %rax
	movl	8(%rax,%r15), %edi
	callq	_free_cpumask_var
	movl	(%r14), %edi
	movq	8(%r14), %rax
	movq	16(%rax), %rax
	movq	(%rax,%r15), %rdx
	movl	%ebx, %esi
	callq	_pci_free_irq
	movq	8(%r14), %rax
	jmp	LBB0_4
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movl	$0, 8(%rax)
	jmp	LBB0_8
LBB0_6:
	movl	(%r14), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_pci_free_irq
LBB0_8:
	movl	(%r14), %edi
	callq	_pci_free_irq_vectors
	movq	_kr_intgranted@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_qib_read_kreg64
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_write_kreg                 ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_intgranted,4,2              ## @kr_intgranted
	.no_dead_strip	_qib_7322_free_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7322_free_irq
_qib_7322_free_irq:                     ; @qib_7322_free_irq
	.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, x0
	ldr	x8, [x0, #8]
	mov	x9, #-1
	str	x9, [x8]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x9, [x8, #8]
	add	x21, x21, #16
	cmp	x20, x9
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #16]
	ldr	x9, [x9, x21]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x1, #0
	bl	_irq_set_affinity_hint
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_free_cpumask_var
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x2, [x8, x21]
	mov	x1, x20
	bl	_pci_free_irq
	ldr	x8, [x19, #8]
	b	LBB0_2
LBB0_5:
	cbz	w9, LBB0_7
; %bb.6:
	str	wzr, [x8, #8]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
	mov	w1, #0
	mov	x2, x19
	bl	_pci_free_irq
LBB0_8:
	ldr	w0, [x19]
	bl	_pci_free_irq_vectors
Lloh0:
	adrp	x20, _kr_intgranted@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kr_intgranted@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_qib_read_kreg64
	cbz	x0, LBB0_10
; %bb.9:
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_qib_write_kreg
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_intgranted,4,2              ; @kr_intgranted
	.no_dead_strip	_qib_7322_free_irq
.subsections_via_symbols
