	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_pci_func_free_irqs          ## -- Begin function aq_pci_func_free_irqs
	.p2align	4, 0x90
_aq_pci_func_free_irqs:                 ## @aq_pci_func_free_irqs
	.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, %r15
	movq	24(%rdi), %r14
	movl	(%rdi), %eax
	movl	$31, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_free_irq
	notl	%r13d
	andl	(%r15), %r13d
	movl	%r13d, (%r15)
	movl	%r13d, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$-1, %rbx
	jae	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	btl	%ebx, %eax
	jae	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %ecx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r12
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_AQ_CFG_VECS_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
	jmp	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_CFG_VECS_MAX,4,2            ## @AQ_CFG_VECS_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_pci_func_free_irqs          ; -- Begin function aq_pci_func_free_irqs
	.p2align	2
_aq_pci_func_free_irqs:                 ; @aq_pci_func_free_irqs
	.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
	ldr	x20, [x0, #24]
	ldr	w8, [x0]
	mov	w21, #31
	mov	w23, #1
Lloh0:
	adrp	x24, _AQ_CFG_VECS_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AQ_CFG_VECS_MAX@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pci_irq_vector
	mov	x1, x22
	bl	_free_irq
	ldr	w8, [x19]
	bic	w8, w8, w25
	str	w8, [x19]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, #1
	cmn	x21, #1
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w25, w23, w21
	tst	w8, w25
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #16]
	cmp	w9, #0
	ccmp	x21, x9, #0, ne
	mov	x22, x19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x24]
	cmp	x21, x9
	b.hs	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x21, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pci_irq_vector
	mov	x1, #0
	bl	_irq_set_affinity_hint
	b	LBB0_1
LBB0_9:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_CFG_VECS_MAX,4,2            ; @AQ_CFG_VECS_MAX
.subsections_via_symbols
