	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322_nomsix
_qib_7322_nomsix:                       ## @qib_7322_nomsix
	.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, %r15
	movq	(%rdi), %rax
	movq	$-1, (%rax)
	movl	8(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movl	$0, 8(%rax)
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	leaq	(%rcx,%rcx,2), %rcx
	leaq	-12(,%rcx,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rax
	movl	4(%rax,%rbx), %edi
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	8(%rax,%rbx), %edi
	callq	_free_cpumask_var
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax,%rbx), %esi
	movl	4(%rax,%rbx), %edi
	callq	_free_irq
	cmpq	%rbx, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	addq	$12, %rbx
	jmp	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_qib_nomsix
LBB0_6:
	movq	_kr_intgranted@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_qib_read_kreg64
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qib_write_kreg                 ## TAILCALL
LBB0_7:
	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_nomsix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7322_nomsix
_qib_7322_nomsix:                       ; @qib_7322_nomsix
	.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]
	mov	x9, #-1
	str	x9, [x8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_6
; %bb.1:
	str	wzr, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
	mov	w10, #12
	mul	x9, x9, x10
	sub	x21, x9, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	add	x8, x8, x20
	ldr	w0, [x8, #4]
	mov	x1, #0
	bl	_irq_set_affinity_hint
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_free_cpumask_var
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	add	x8, x8, x20
	ldp	w1, w0, [x8]
	bl	_free_irq
	cmp	x21, x20
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x20, x20, #12
	b	LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_qib_nomsix
LBB0_6:
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_8
; %bb.7:
	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_8:
	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_nomsix
.subsections_via_symbols
