	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_sync_irqs
_goya_sync_irqs:                        ## @goya_sync_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	movq	_HW_CAP_MSIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 4(%rdi)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	callq	_synchronize_irq
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_3
LBB0_4:
	movl	(%r14), %edi
	movq	_GOYA_EVENT_QUEUE_MSIX_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_irq_vector
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_synchronize_irq                ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_CAP_MSIX,4,2                ## @HW_CAP_MSIX
	.comm	_GOYA_EVENT_QUEUE_MSIX_IDX,4,2  ## @GOYA_EVENT_QUEUE_MSIX_IDX
	.no_dead_strip	_goya_sync_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_sync_irqs
_goya_sync_irqs:                        ; @goya_sync_irqs
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _HW_CAP_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_CAP_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_pci_irq_vector
	bl	_synchronize_irq
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _GOYA_EVENT_QUEUE_MSIX_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GOYA_EVENT_QUEUE_MSIX_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pci_irq_vector
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_synchronize_irq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_CAP_MSIX,4,2                ; @HW_CAP_MSIX
	.comm	_GOYA_EVENT_QUEUE_MSIX_IDX,4,2  ; @GOYA_EVENT_QUEUE_MSIX_IDX
	.no_dead_strip	_goya_sync_irqs
.subsections_via_symbols
