	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_pci_func_alloc_irq          ## -- Begin function aq_pci_func_alloc_irq
	.p2align	4, 0x90
_aq_pci_func_alloc_irq:                 ## @aq_pci_func_alloc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%esi, %r13d
	callq	_pci_irq_vector
	movl	%eax, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
LBB0_4:
	movq	%rbx, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	orl	%eax, (%r12)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_irq_set_affinity_hint
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	movl	%esi, %r13d
	callq	_pci_irq_vector
	movq	_aq_vec_isr_legacy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_aq_vec_isr_legacy,4,2          ## @aq_vec_isr_legacy
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_pci_func_alloc_irq          ; -- Begin function aq_pci_func_alloc_irq
	.p2align	2
_aq_pci_func_alloc_irq:                 ; @aq_pci_func_alloc_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, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x1, x25
	mov	w2, #0
LBB0_3:
	mov	x3, x24
	mov	x4, x23
	bl	_request_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	cbz	x19, LBB0_7
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_pci_irq_vector
	mov	x1, x19
	bl	_irq_set_affinity_hint
LBB0_7:
	mov	x0, x23
	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
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_pci_irq_vector
Lloh0:
	adrp	x8, _aq_vec_isr_legacy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aq_vec_isr_legacy@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_aq_vec_isr_legacy,4,2          ; @aq_vec_isr_legacy
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
.subsections_via_symbols
